0% found this document useful (0 votes)
56 views18 pages

Steps For Installing Ubuntu WSL

This document provides a 17 step guide to install Ubuntu on Windows (WSL) and configure it. The steps include: enabling WSL in Windows features, downloading Ubuntu from the Microsoft Store, setting the WSL version to 2, creating a username and password for Ubuntu, updating and upgrading Ubuntu, optionally installing a text editor like gedit or Xming server, exporting the DISPLAY variable, and verifying the text editor works to open and edit files.

Uploaded by

mohammaddraz22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views18 pages

Steps For Installing Ubuntu WSL

This document provides a 17 step guide to install Ubuntu on Windows (WSL) and configure it. The steps include: enabling WSL in Windows features, downloading Ubuntu from the Microsoft Store, setting the WSL version to 2, creating a username and password for Ubuntu, updating and upgrading Ubuntu, optionally installing a text editor like gedit or Xming server, exporting the DISPLAY variable, and verifying the text editor works to open and edit files.

Uploaded by

mohammaddraz22
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Steps for installing

Ubuntu on
Windows (WSL)
Fundamentals of Computing
Prepared by: Aseel Abu Haq
Edit by: Eng.OmarAlKafaween
Step 1
 Go to the “search”
menu, search for
“Control Panel” and
click on it.
Step 2

 Click on the “programs”


icon.
Step 3
 Go to the “Programs
and Features” icon,
then select “Turn
Windows Features on or
off”.
Step 4
 Put tick on the
“Window Subsystem for
Linux” option.
 Put a tick on each of
the following options
too: "Windows
Hypervisor Platform"
and "Virtual Machine
Platform"
Step 5

 Go to “Microsoft Store”
icon
Step 6
 Search for “Ubuntu”.
 Select “Ubuntu 20.04.5
LTS” Version.
Step 7

 Click on the “Get” icon


then install it.
Step 8
 After installing Ubuntu, download the following program to upgrade it:
https://wslstorestorage.blob.core.windo ws.net/wslblob/wsl_update_x64.msi
 Run the program you just installed to upgrade Ubuntu.
Step 9
 On Windows, run Windows Power
Shell – search for it in the search bar
in Windows as shown in picture 1.
 Type the following command in
Windows Power Shell as shown in
picture 2 and press Enter:
"wsl --set-default-version 2"
Step 10
 Open Ubuntu. Search for
it in the Search bar on
Windows or open it
from the Microsoft
Store.
Step 11
 Choose a username and
a password.

 The password will not


show up when you type it

 Make sure to remember


the username and
password.
Step 12
 Run these two commands
one by one as shown in the
figures.
"sudo apt update"
"sudo apt upgrade"
 We use these two commands
to update and upgrade the
tools in “Ubuntu”.
Step 13
 “gedit” is the text editor
we will use to edit files.

 Download it first as
shown in the first picture.

 Use the “gedit”


command followed by
the name of the file you
want to open as shown in
second picture.
Step 14
 This step is optional if the “gedit”
command doesn’t work.
 Download “Xming ” server.
https://sourceforge.net/projects/xming/
 Install the Xming server from the
file you downloaded.
Step 15

 Run the XLaunch program. Search


for it in the search bar on Windows.
 Click next until you reach the step
in the figure to the right.
 Put a check on "No Access Control"
and click Next then Finish.
Step 16
 Open Ubuntu. Write the command like in picture 1:
"nano ~/.bashrc"
 This will open a text editor that has text inside. Go
to the bottom of the file and add the following line
(on one line):
export DISPLAY=$(grep -m 1 nameserver
/etc/resolv.conf | awk '{print $2}'):0.0
like picture2.

 Use CTRL + O then press Enter to Save.

 Press CTRL + X to Exit.


Step 17
 Exit Ubuntu and open it again.

 Now try using the “gedit”


command followed by the name
of the file you want to open as
shown in picture.
 A text editor should open now.
You can write your code inside
it.
 Now you can just use "gedit"
anytime you want to open a file
to write code.

You might also like