How To Install Windows Subsystem For Linux

Download as pdf or txt
Download as pdf or txt
You are on page 1of 40

H

o
w
t
o
i
n
s
t
a
l
l
W
i
n
d
o
w
s
S
u
b
s
y
s
t
e
m
f
o
r
L
i
n
u
x

c
o
m
p
l
e
t
e
G
u
i
d
e
BY
GENIUSCLUB
·
PUBLISHED
21
MARCH
2021
·
UPDATED
28
MARCH
2021
source:

from
kali.org

Windows
Subsystem
for
Linux
(WSL)
allows
users
to
run
a
Linux
terminal
environment.
Also,
install
packages
from
the
Kali
archive,
and
run
Linux
applications
and
workflows
on
Windows
10.

You
may
want
to
run
Kali
Linux
or
Ubuntu
on
your
Windows
10.
In
this
article,
we
are
going
to
see
how
you
can
run
Kali
Linux
or
Ubuntu
in
Windows
10.

In
the
previous
article
we
saw
how
to
install
kali
Linux
properly
on
your
computer
in
2021,
now
let
us
see
how
to
run
it
on
Windows
10.

W
h
a
t
i
s
W
i
n
d
o
w
s
S
u
b
s
y
s
t
e
m
f
o
r
L
i
n
u
x
(
W
S
L
)
?
The
Windows
Subsystem
for
Linux
lets
developers
run
a
GNU/Linux
environment.
Then,
as
you
know
already
what
is
WSL
now
let
us
see
what
is
WLS
2.

W
h
a
t
i
s
W
S
L
2
?
WSL
2
is
a
new
version
of
the
Windows
Subsystem
for
Linux
architecture
that
powers
the
Windows
Subsystem
for
Linux
to
run
ELF64
Linux
binaries
on
Windows.

W
h
a
t
a
r
e
t
h
e
p
r
e
r
e
q
u
i
s
i
t
e
s
t
o
I
n
s
t
a
l
l
W
i
n
-
K
e
x
?
First,
let
us
see
what
are
prerequisites
before
jump
on
installing
Win-
Kex.

To
install
Win-
Kex
you
need
to
have
Windows
10
version
2004
or
higher
running
on
your
computer.
Also,
using
windows
Terminal.

You
may
also
like
How
to
install
Kali
NetHunter
on
an
Android
device.
I
n
s
t
a
l
l
a
t
i
o
n
o
f
W
i
n
d
o
w
s
S
u
b
s
y
s
t
e
m
f
o
r
L
i
n
u
x
There
are
2
options
available
for
installing
Windows
Subsystem
for
linux
(WSL):

Simplified
install:
The
wsl
–install
simplified
install
command
requires
that
you
join
the
Windows
Insiders
Program
and
install
a
preview
build
of
Windows
10.
Manual
install:
It
follows
the
six
steps
that
will
discuss
in
this
article.

Also,
if
you
run
into
an
issue
during
installation,
Windows
provide
the
Troubleshooting
installation .

In
this
article,
we
are
going
to
discuss
Manual
Installation.

I
n
s
t
a
l
l
K
a
l
i
L
i
n
u
x
i
n
W
i
n
d
o
w
s
S
u
b
s
y
s
t
e
m
o
n
L
i
n
u
x
2
S
t
e
p
1
-
E
n
a
b
l
e
t
h
e
W
i
n
d
o
w
s
S
u
b
s
y
s
t
e
m
f
o
r
L
i
n
u
x
.
In
order
to
install
Kali
Linux,
you
must
first
enable
the
“Windows
Subsystem
for
Linux”,
then,
open
Windows
PowerShell
as
administrator
and
run:

d
i
s
m
.
e
x
e

/
o
n
l
i
n
e

/
e
n
a
b
l
e
-
f
e
a
t
u
r
e

/
f
e
a
t
u
r
e
n
a
m
e
:
M
i
c
r
o
s
o
f
t
-
W
i
n
d
o
w
s
-
S
u
b
s
y
s
t
e
m
-
L
i
n
u
x

/
a
l
l

/
n
o
r
e
s
t
a
r
t

Then,
after
running
this
command,
Restart
windows
PowerShell,
then
reopen
it
again,
and
run:

S
t
e
p
2

C
h
e
c
k
r
e
q
u
i
r
e
m
e
n
t
s
f
o
r
r
u
n
n
i
n
g
W
S
L
2
To
update
to
WSL
2,
you
must
be
running
Windows
10.

For
x64
systems: Version
1903 or
higher,
with Build
18362 or
higher.
For
ARM64
systems: Version
2004 or
higher,
with Build
19041 or
higher.
Builds
lower
than
18362
do
not
support
WSL
2.
Use
the Windows
Update
Assistant to
update
your
version
of
Windows.

To
check
your
version
and
build
number,
select
Windows
+
R
type
winver,
select
ok.
or
you
can
enter
ver
command
in
windows
command
prompt.

S
t
e
p
3
-
E
n
a
b
l
e
v
i
r
t
u
a
l
M
a
c
h
i
n
e
f
e
a
t
u
r
e

Before
installing
WSL
2,
you
must
enable
the Virtual
Machine
Platform optional
feature.
Your
machine
will
require virtualization
capabilities to
use
this
feature.

d
i
s
m
.
e
x
e

/
o
n
l
i
n
e

/
e
n
a
b
l
e
-
f
e
a
t
u
r
e

/
f
e
a
t
u
r
e
n
a
m
e
:
V
i
r
t
u
a
l
M
a
c
h
i
n
e
P
l
a
t
f
o
r
m

/
a
l
l

/
n
o
r
e
s
t
a
r
t

Then,
Restart
your
machine
to
complete
the
WSL
install
update
to
WSL2.

S
t
e
p

4
D
o
w
n
l
o
a
d
t
h
e
L
i
n
u
x
K
e
r
n
e
l
u
p
d
a
t
e
p
a
c
k
a
g
e
After
you
finished
restarting
your
pc,
then
download
and
install
the
WSL2
Linux
Kernel
from
here:
https://aka.ms
/wsl2kernel .

S
t
e
p
5

S
e
t
W
S
L
2
a
s
y
o
u
r
d
e
f
a
u
l
t
v
e
r
s
i
o
n
Then
open
PowerShell
as
administrator
and
run:

w
s
l

-
-
s
e
t
-
d
e
f
a
u
l
t
-
v
e
r
s
i
o
n

S
t
e
p
6

I
n
s
t
a
l
l
y
o
u
r
L
i
n
u
x
d
i
s
t
r
i
b
u
t
i
o
n
o
f
c
h
o
i
c
e
This
last
step
is
the
installation
of
Kali
Linux
from
the
Microsoft
Store.
Also,
to
upgrade
an
existing
WSL1
kali-
linux
installation,
type: wsl
--set-
version
kali-
linux
2

After
you
have
installed
Kali
Linux
from
Wicrosoft
Store,
Then
run
kali
and
finish
the
initial
setup:
set
up
your
username
and
password

I
n
s
t
a
l
l
W
i
n
-
K
e
x

k
a
l
i
@
k
a
l
i
:
~
$

s
u
d
o

a
p
t

u
p
d
a
t
e
k
a
l
i
@
k
a
l
i
:
~
$

s
u
d
o

a
p
t

i
n
s
t
a
l
l

-
y

k
a
l
i
-
w
i
n
-
k
e
x

Refer
to
the Win-
KeX
Win
usage
documentation for
further
information.
This document was created with the Win2PDF “print to PDF” printer available at
http://www.win2pdf.com
This version of Win2PDF 10 is for evaluation and non-commercial use only.
This page will not be added after purchasing Win2PDF.
http://www.win2pdf.com/purchase/

You might also like