Installing WSL on an Engineering Computer
You will want to familiarize yourself with the documentation provided below when setting up and using WSL. Please note:
When setting up a distribution, it is only available to your logon -- this is by design. Each user can have their own distributions.
You only need admin for Step 2) below.
This distribution is not backed up. You will want to copy files to a spot that is backed up, or occasionally backup the distribution.
Security updates and package updates: Please update packages you download on a regular basis for the latest security updates
Installation:
Please verify that you are using the latest version of Windows 10 or 11 -- (Ask ITG)
Open PowerShell as admin and run the following command (Start> PowerShell > run as administrator)
Enable the feature - requires a reboot
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Reboot
This enables WSL and Virtual Machine Platform components, downloads the latest Linux kernel, sets WSL 2 as default
wsl --install
reboot
Install the Linux distribution. To install Ubuntu. DO NOT DO THIS AS ADMIN -- this distribution is for ONLY one user
Open cmd window
wsl --install -d Ubuntu
You can install different distributions
wsl --list --online
wsl --install -d <distribution_name>
Once Ubuntu is installed, you will need to create a user account and password.
See, Best practices for setting up a WSL development environment
Enter new Unix username: <Username of your choice -- this user has root capabilities>
Password: <Password you choose >
Retype new password: < password>
To start up a Linux terminal window
Start > Ubuntu
Update and Upgrade packages regularly
Open Ubuntu
sudo apt update && sudo apt upgrade
Reference Documentation
Windows Subsystem for Linux Documentation
Comparing WSL 1 and WSL 2
Windows Subsystem for Linux Installation Guide for Windows 10
Create a user account and password for your new Linux distribution
File storage - To open your WSL project in Windows File Explorer. Be sure to add the period at the end of the command to open the current directory.
explorer.exe .
Backing up a distribution:
