scotty-c / ubuntu-wsl2-systemd-script

Scripts to enable systemd support on current Ubuntu WSL2 images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu-wsl2-systemd-script

These are scripts to add proper systemd support on Ubuntu images of WSL2. Forked from the archived repo of DamionGans for better adaptation.

From the snapcraft forum. Thanks to Daniel on the Snapcraft forum!

Warning

I am not responsible for broken installations, 
fights with your roommates and police ringing your door.
YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.

Usage

Preparation

You need git to be installed.

sudo apt install git

Installation

git clone https://github.com/FiestaLake/ubuntu-wsl2-systemd-script.git ~/ubuntu-wsl2-systemd-script
cd ~/ubuntu-wsl2-systemd-script
bash install.sh

# Enter your password and wait until the script has finished.

Restart your ubuntu shell | WSL2 environment.

Testing

systemctl

If you don't get an error and can see a list of units, the scripts worked fine.

Uninstallation

cd ~/ubuntu-wsl2-systemd-script
bash uninstall.sh

# Enter your password and wait until the script has finished.

Have fun using systemd on your Ubuntu WSL2 image. You may use, change and distribute these scripts by following LICENSE.md.

About

Scripts to enable systemd support on current Ubuntu WSL2 images

License:Apache License 2.0


Languages

Language:Shell 100.0%