How to install WSL (Windows Subsystem Linux)
How to install WSL (Windows Subsystem Linux) and MCCE dev tools
WSL
WSL Installation
The official WSL installation instruction can be found on MIcrosoft website. https://learn.microsoft.com/en-us/windows/wsl/install
The following is the my WSL installation on WIndows 10 Pro.
- Open Powershell as Administrator, run
wsl --install
This installation will install Ubuntu under WSL. - Setting up user for Linux. After the reboot, WSL will ask for setting up the first user.
- While wsl is open, right click on the penguine icon on task bar to pin it so that it is easy to start wsl linux next time.
From WSL, to access the files on the host system (Windows 10), use the path /mnt/c for the C drive.
From the host (Windows), to access the files on WSL, use the path \\wsl.localhost\Ubuntu
To check WSL version, run wsl -l -v
under PowerShell.
To check Linux version, run cat /etc/issue
under Linux
Linux customization
- Home directory: Add
cd
to the user .bashrc so the terminal window starts at the home directory. - Update Linux:
sudo apt update
sudo apt upgrade
sudo apt install vim aptitude
- Build essential
sudo aptitude install build-essential
- SSH client under Linux
Conda Python environment and Modules
Miniconda
Python modules
Compiler
Microsoft Visual Code
I am moving from Pycharm to Code due to
- Pycharm crashes at the start on my desktop.
- The ability of Code to code remotely vs ssh and wsl.
Other software under WSL
XLauncher
Pymol