These steps assume you have already gone through the steps of enabling the Linux Subsystem for Windows 10 and that you have installed a distribution, preferably a Debian-based distribution such as Ubuntu.
- Install VcXsrv Windows X Server, https://sourceforge.net/projects/vcxsrv/
- Enable WSL
- To enable WSL, Open a Powershell as Administrator
- Run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Reboot
- Install WSL on OLDER Versions of Windows
- Open up a "Command Prompt" on Windows.
- Run
lxrun /install /y
- Install WSL on NEWER Versions of Windows (where
lxrun
isn't available)- Open up a "PowerShell" on Windows as the user you want to use WSL as.
- Run
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
- Run
Rename-Item .\Ubuntu.appx .\Ubuntu.zip
- Run
Expand-Archive .\Ubuntu.zip .\Ubuntu
- Run
.\ubuntu2004.exe
- Launch "Command Prompt"
- Type
bash
and hit Enter. - Run
sudo apt-get -y install xfce4-terminal
- Wait until completed.
- Run
sudo apt-get -y remove snapd
- Run
sudo apt-get update
- Run
sudo apt-get -y upgrade
- Create a Shortcut that launches the following command:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -Command "iex \"Ubuntu -c 'SHELL=/bin/bash DISPLAY=:0 xfce4-terminal'\" "
- Launch VcXsrv.
- When prompted for "Select display settings", select Multiple Windows.
- Select "Display Number" as
-1
. - Click Next.
- Select "Start no client" and then click Next.
- On the page for "Extra Settings," make sure the following are checked:
- "Clipboard"
- "Primary Selection"
- "Native opengl"
- Leave "Disable access control" unchecked.
- Click Next.
- On the "Configuration complete" page, you may choose to save it or just click Next.
- Launch the shortcut you just created.
- ???
- PROFIT
Comments
comments powered by Disqus