Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damiongans/ubuntu-wsl2-systemd-script
[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
https://github.com/damiongans/ubuntu-wsl2-systemd-script
ubuntu wsl2
Last synced: 3 months ago
JSON representation
[Does not work anymore!] Script to enable systemd support on current Ubuntu WSL2 images
- Host: GitHub
- URL: https://github.com/damiongans/ubuntu-wsl2-systemd-script
- Owner: DamionGans
- Archived: true
- Created: 2020-03-19T10:03:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-17T19:44:03.000Z (over 1 year ago)
- Last Synced: 2024-09-26T03:24:23.814Z (3 months ago)
- Topics: ubuntu, wsl2
- Language: Shell
- Homepage:
- Size: 30.3 KB
- Stars: 1,557
- Watchers: 15
- Forks: 384
- Open Issues: 50
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ubuntu-wsl2-systemd-script
## Script is unsupported and will no longer be maintained, but will be up here because it is used by quite some people.Script to enable systemd support on current Ubuntu WSL2 images from the Windows store.
I am not responsible for broken installations, fights with your roommates and police ringing your door ;-).
Instructions from [the snapcraft forum](https://forum.snapcraft.io/t/running-snaps-on-wsl2-insiders-only-for-now/13033) turned into a script. Thanks to [Daniel](https://forum.snapcraft.io/u/daniel) on the Snapcraft forum!
## Usage
You need ```git``` to be installed for the commands below to work. Use
```sh
sudo apt install git
```
to do so.
### Run the script and commands
```sh
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git
cd ubuntu-wsl2-systemd-script/
bash ubuntu-wsl2-systemd-script.sh
# Enter your password and wait until the script has finished
```
### Then restart the Ubuntu shell and try running systemctl
```sh
systemctl```
If you don't get an error and see a list of units, the script worked.Have fun using systemd on your Ubuntu WSL2 image. You may use and change and distribute this script in whatever way you'd like.