PROGRAMMING:

How to Install Windows Subsystem for Linux 2 on Windows

Nice and easy tutorials with step-by-step instructions

David Littlefield
Geek Culture

--

Summary:

This article installs Windows Subsystem for Linux 2 (WSL 2) on Windows. It enables Windows Subsystem for Linux and Virtual Machine Platform, updates the Linux kernel, and sets the default version. It downloads, installs, and runs one of several Linux distributions and creates the user account. It also runs Windows Subsystem for Linux using the distribution.

Table of Contents:

  1. Install Windows Subsystem for Linux
  2. Download a Linux Distribution
  3. Install the Linux Distribution
  4. Prepare the Linux Distribution
  5. Run Windows Subsystem for Linux

Appendix:

  1. Tutorials: Artificial Intelligence Set Up
  2. Tutorials: Artificial Intelligence Course
  3. Tutorials: Artificial Intelligence Repositories

Install the Windows Subsystem for Linux:

This section enables the windows subsystem for linux and virtual machine platform features, updates the Linux kernel, and sets the default version.

# open powershell
1. press “⊞ windows”
2. enter “powershell” into the search bar
3. right-click "windows powershell"
4. click “run as administrator”
# enable windows subsystem for linux
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# enable the virtual machine platform
dism.exe /online /enable-feature /featurename:virtualmachineplatform /all /norestart
# check for windows updates
1. press “⊞ windows”
2. enter “check for updates” into the search bar
3. click “check for updates”
4. click “advanced options”
5. click “receive updates for other microsoft products”
6. click “←”
7. click “check for updates”
# restart the computer
restart-computer
# reopen powershell
1. press “⊞ windows”
2. enter “powershell” into the search bar
3. right-click "windows powershell"
4. click “run as administrator”
# update the linux kernel
wsl --update
# set the default version
wsl --set-default-version 2

Download a Linux Distribution:

This section downloads the distribution for Windows Subsystem for Linux.

# download ubuntu 20.04
invoke-webrequest -outfile "$home\downloads\ubuntu_20_04.appx" -uri https://aka.ms/wslubuntu2004
# download ubuntu 18.04
invoke-webrequest -outfile "$home\downloads\ubuntu_18_04.appx" -uri https://aka.ms/wsl-ubuntu-1804
# download ubuntu 16.04
invoke-webrequest -outfile "$home\downloads\ubuntu_16_04.appx" -uri https://aka.ms/wsl-ubuntu-1604
# download debian gnu/linux
invoke-webrequest -outfile "$home\downloads\debian_gnu_linux.appx" -uri https://aka.ms/wsl-debian-gnulinux
# download kali linux
invoke-webrequest -outfile "$home\downloads\kali_linux.appx" -uri https://aka.ms/wsl-kali-linux-new
# download suse linux enterprise server 12
invoke-webrequest -outfile "$home\downloads\suse_linux_enterprise_server_12.appx" -uri https://aka.ms/wsl-sles-12
# download suse linux enterprise server 15 sp2
invoke-webrequest -outfile "$home\downloads\suse_linux_enterprise_server_15_sp2.appx" -uri https://aka.ms/wsl-suselinuxenterpriseserver15sp2
# download opensuse leap 15.2
invoke-webrequest -outfile "$home\downloads\opensuse_leap_15_2.appx" -uri https://aka.ms/wsl-opensuseleap15-2

Install the Linux Distribution:

This section installs the distribution in Windows Subsystem for Linux.

# install ubuntu 20.04
add-appxpackage "$home\downloads\ubuntu_20_04.appx"
# install ubuntu 18.04
add-appxpackage "$home\downloads\ubuntu_18_04.appx"
# install ubuntu 16.04
add-appxpackage "$home\downloads\ubuntu_16_04.appx"
# install debian gnu/linux
add-appxpackage "$home\downloads\debian_gnu_linux.appx"
# install kali linux
add-appxpackage "$home\downloads\kali_linux.appx"
# install suse linux enterprise server 12
add-appxpackage "$home\downloads\suse_linux_enterprise_server_12.appx"
# install suse linux enterprise server 15 sp2
add-appxpackage "$home\downloads\suse_linux_enterprise_server_15_sp2.appx"
# install opensuse leap 15.2
add-appxpackage "$home\downloads\opensuse_leap_15_2.appx"

Prepare the Linux Distribution:

This section runs the distribution and creates the user account.

# run ubuntu 20.04
ubuntu2004.exe
# run ubuntu 18.04
ubuntu1804.exe
# run ubuntu 16.04
ubuntu1604.exe
# run debian gnu/linux
debian.exe
# run kali linux
kali.exe
# run suse linux enterprise server 12
SLES-12.exe
# run suse linux enterprise server 15 sp2
SUSE-Linux-Enterprise-Server-15-SP2.exe
# run opensuse leap 15.2
openSUSE-Leap-15.2.exe
# create the user account
1. enter a username
2. enter a password
3. reenter the password
# exit the linux distribution
exit

Run Windows Subsystem for Linux:

This section runs Windows System for Linux using the distribution.

# open wsl
1. press “⊞ windows”
2. enter “wsl” into the search bar
3. click "wsl"

“Lastly, remember to subscribe and hold down the clap button to get regular updates and help out.”

Appendix:

This blog exists to provide complete solutions, answer your questions, and accelerate your progress related to artificial intelligence. It has everything you need to set up your computer and complete the first half of the fastai course. It will expose you to state-of-the-art repositories in the subfields of artificial intelligence. It will also cover the second half of the fastai course.

Tutorials: Artificial Intelligence Set Up

This section provides everything that’s required to set up your computer.

# linux
01. install and manage multiple python versions
02. install the nvidia cuda driver, toolkit, cudnn, and tensorrt
03. install the jupyter notebook home and public server
04. install virtual environments in jupyter notebook
05. install the python environment for ai and machine learning
06. install the fastai course requirements
# wsl 2
01. install windows subsystem for linux 2
02. install and manage multiple python versions
03. install the nvidia cuda driver, toolkit, cudnn, and tensorrt
04. install the jupyter notebook home and public server
05. install virtual environments in jupyter notebook
06. install the python environment for ai and machine learning
07. install ubuntu desktop with a graphical user interface
08. install the fastai course requirements
# windows 10
01. install and manage multiple python versions
02. install the nvidia cuda driver, toolkit, cudnn, and tensorrt
03. install the jupyter notebook home and public server
04. install virtual environments in jupyter notebook
05. install the programming environment for ai and machine learning
# mac
01. install and manage multiple python versions
02. install the jupyter notebook home and public server
03. install virtual environments in jupyter notebook
04. install the python environment for ai and machine learning
05. install the fastai course requirements

Tutorials: Artificial Intelligence Course

This section contains answers to the questionnaire at the end of each lesson.

# fastai course
01. chapter 1: your deep learning journey q&a
02. chapter 2: from model to production q&a
03. chapter 3: data ethics q&a
04. chapter 4: under the hood: training a digit classifier q&a
05. chapter 5: image classification q&a
06. chapter 6: other computer vision problems q&a
07. chapter 7: training a state-of-the-art model q&a
08. chapter 8: collaborative filtering deep dive q&a

Tutorials: Artificial Intelligence Repositories

This section contains state-of-the-art repositories in the different subfields.

# repositories related to audio
01. raise audio quality using nu-wave
02. change voices using maskcyclegan-vc
03. clone voices using real-time-voice-cloning toolbox
# repositories related to images
01. achieve 90% accuracy using facedetection-dsfd

--

--

David Littlefield
Geek Culture

From: Non-Technical | To: Technical Founder | Writes: To Make It Easier For Everyone | Topics: #Startups #How-To #Coding #AI #Machine Learning #Deep Learning