Skip to content

Instantly share code, notes, and snippets.

@myano
Last active February 20, 2020 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myano/a64637a9cb6370068b8ca06157c792e6 to your computer and use it in GitHub Desktop.
Save myano/a64637a9cb6370068b8ca06157c792e6 to your computer and use it in GitHub Desktop.

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, prferrably a Debian-based distribution such as Ubuntu.

  1. Install VcXsrv Windows X Server, https://sourceforge.net/projects/vcxsrv/
  2. Install WSL
    1. To install WSL, Open a Powershell as Administrator
    2. Run Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    3. Reboot
  3. Open up a "Command Prompt" on Windows.
  4. Run lxrun /install /y
  5. Reboot
  6. Launch "Command Prompt"
  7. Type bash and hit Enter.
  8. Run sudo apt-get -y install xfce4-terminal
    1. Wait until completed.
  9. Run sudo apt-get -y remove snapd
  10. Run sudo apt-get update
  11. Run sudo apt-get -y upgrade
  12. Create a Shortcut that launches the following command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -Command "iex \"Ubuntu -c 'SHELL=/bin/zsh DISPLAY=:0 xfce4-terminal'\" "
  13. Launch VcXsrv.
    1. When prompted for "Select display settings", select Multiple Windows.
    2. Select "Display Number" as -1.
    3. Click Next.
    4. Select "Start no client" and then click Next.
    5. On the page for "Extra Settings," make sure the following are checked:
      1. "Clipboard"
      2. "Primary Selection"
      3. "Native opengl"
    6. Leave "Disable access control" unchecked.
    7. Click Next.
    8. On the "Configuration complete" page, you may choose to save it or just click Next.
  14. Launch the shortcut you just created.
  15. ???
  16. PROFIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment