My local Ubuntu 20.04 WSL2 setup.
From Windows, as admin:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Install the latest WSL2 kernel.
Restart, then:
wsl --set-default-version 2
- Install X410 from Windows Store
- Launch X410
- Right click tray menu, click "Allow Public Access", then allow through Windows Firewall
- Install Ubuntu 20.04 from Windows Store
- Run the installer and create a username and password
Initial setup inside Ubuntu Bash:
sudo apt-get update
sudo apt-get upgrade
# Installing common deps
sudo apt-get install git gpg vim tasksel
# Set up desktop environment
sudo tasksel
# Select "Ubuntu minimal desktop" in tasksel.
# Install the Dotnet Core framework repository
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
# Install Genie (for creating a pseudo-systemd-compatible environment to run in)
curl -s https://packagecloud.io/install/repositories/arkane-systems/wsl-translinux/script.deb.sh | sudo bash
sudo apt install -y systemd-genie
- Create file
desktop.sh
in user root (below). chmod a+x desktop.sh
- Create a file
launch-desktop.bat
somewhere on the host OS (perhaps Desktop); contents listed below. - Run the batch script to start up.
Shut down the WSL2 instance by running:
wsl -t Ubuntu-20.04
I am not sure whether the comment above still applies, as arkane-systems/genie#122 is closed.and I confirm as of today the previous two steps are still necessary.
the procedure of installing genie has changed and the one shown here no longer works: https://github.com/arkane-systems/genie#debian