-
Notifications
You must be signed in to change notification settings - Fork 21
How to create an Ubuntu instance in Windows Subsystem for Linux
rowena edited this page Nov 29, 2023
·
30 revisions
- Enable WSL (up to but not including: 'Press Windows key + X')
- Go to the Microsoft Store app and search for Ubuntu:
- Install and open. You may have to install kernel updates and allow Powershell scripts to run.
- Powershell as Administrator
Set-ExecutionPolicy ByPass -scope LocalMachine
- If the text-input screen comes up, use tab and enter to navigate, not mouse-clicks.
- (Optional) Create a password in a password manager, e.g., 1Password
- Take defaults (you will have to manually enter your password)
- (Optional) Make copy/paste easier
- Set in Defaults as well as Properties
- You may still need to use shift-insert to paste password prompts.
PS C:\Users\chris> wsl --set-version Ubuntu 2