Follow the instructions here.
Note: use wsl.exe -l -o
to check available Linux distro before wsl --install -d <Distribution Name>
Follow the instructions here, starting 7:39.
For IPv4 configuration in .bashrc
, follow the instructions below instead.
- Open Powershell or Command Prompt from Windows start menu
- Type
ipconfig
and press enter - Take a note of the native IPv4 address of your Windows (NOT WSL), which typically starts with
192.168.
- Back to your
.bashrc
file, addexport DISPLAY=:192.168.D.D:D
at the end - In the Ubuntu terminal, type
source ~/.bashrc
and press enter
Now, go to Windows desktop to configure VcXsrv display.
- Find the VcXsrv shortcut, right click and choose
Properties
from the context menu - Select the tab
Compatibility
and then clickChange high DPI settings
- Under
High DPI scaling override
, checkOverride high DPI scaling behavior
and selectApplication
in the drop-down menu labeledScaling performed by:
.
- Run VcXsrv. Select
One large window
in display settings and checkDisabled access control
in extra settings. - In the Ubuntu terminal, type command
startxfce4
(with VcXsrv already running) and press enter
- Run Firebox in the Ubuntu desktop
- Get IntelliJ IDEA
- After it is installed, configure the PATH variable in WSL so that it is more convenient to launch IDEA.
In the IDEA installation folder, there should be a file namedInstall-Linux-tar.txt
, which suggests addingexport PATH=$PATH:"{IDEA installation folder}/bin"
at the end of.bashrc
- In a new Ubuntu Terminal, type
idea.sh
and press enter to run IDEA.
In Project Structure-Platform Settings,
- The SDKs section can be used for setting the JDK version
- The Global libraries section can be used for setting other languages (e.g., Scala, OCaml)
- The SDKs installed in the native Windows environment cannot be used by the Ubuntu environment