running linux natively inside windows 10 · go to the linux kernel are translated into...
TRANSCRIPT
2
Web location for this
presentation:
http://aztcs.orgClick on
“Meeting Notes”
3
EXECUTIVE SUMMARYAs part of the "Anniversary
Update" of "Windows 10", the beta
"Windows Subsystem for Linux"
("WSL"), lets you run Linux "shell
commands", terminal applications,
graphical applications, and
desktop environments inside
"Windows..)
4
TOPICS• "Windows Subsystem for Linux"
("WSL")
• Advantages of "WSL"
• Installing "WSL"
• Using "WSL"
• Additional Ways to Use "WSL"
• Malware Issues
• Additional Information on "WSL"
5
"WINDOWS SUBSYSTEM FOR
LINUX" ("WSL")
• "Windows Subsystem for Linux"
("WSL") is an optional, beta "layer"
in "Windows 10" that translates
Linux kernel calls to their Windows
NT equivalents
6
"WINDOWS SUBSYSTEM FOR
LINUX" ("WSL") (continued)
• "Windows Subsystem for Linux"
("WSL") is also known as
"Bash on Ubuntu in Windows"
and
"Bash on Windows"
and
"Bash shell on Windows"
7
"WINDOWS SUBSYSTEM FOR
LINUX" ("WSL") (continued)
• When you run Linux desktops and
Linux software programs inside
"Windows Subsystem for Linux",
you do not run the Linux kernel.
Instead, "kernel calls" that normally
go to the Linux kernel are translated
into "Windows NT" kernel calls.
Real computer
8
"Windows 10" with "Anniversary
Update"
"Windows Subsystem for
Linux" ("WSL") is an optional,
beta part of "Windows 10"
Linux bash shell runs Ubuntu
applications & Linux desktops
9
10
11
12
13
14
"WINDOWS SUBSYSTEM FOR
LINUX" ("WSL") (continued)
• When you run Linux desktops and
Linux software programs inside
"Windows Subsystem for Linux",
you do not run the Linux kernel.
Instead, "kernel calls" that normally
go to the Linux kernel are translated
into "Windows NT" kernel calls.
15
ADVANTAGES OF "WSL"
• Much faster than running Linux
inside virtual machines inside
"Windows..":
See
https://www.linux.com/learn/howdy-
ubuntu-windows-how-fast-it
16
INSTALLING "WSL"
• Step 1: Start a Web browser from
your "Windows 10" computer and
go to
https://sourceforge.net/projects/vcxs
rv/
17
18
INSTALLING "WSL" (continued)
• Step 2:
Click on the rectangular green
"Download" button:
19
20
21
INSTALLING "WSL" (continued)
• Step 3:
Click on the "Run" button:
22
23
24
INSTALLING "WSL" (continued)
• Step 4:
If a "User Account Control" box
pops up, click on it's "Yes" box:
25
26
INSTALLING "WSL" (continued)
• Step 5:
Click on the "Next" button of the
"Installation Options" box:
27
28
INSTALLING "WSL" (continued)
• Step 6:
Click on the "Install" button:
29
30
31
INSTALLING "WSL" (continued)
• Step 7:
After the installation process is
complete, click on the "Close"
button:
32
33
INSTALLING "WSL" (continued)
• Step 8:
Double-click on the "XLaunch"
shortcut on the Windows "Desktop".
34
35
36
INSTALLING "WSL" (continued)
• Step 9:
A "Display settings" box will be
displayed:
37
38
INSTALLING "WSL" (continued)
• Step 10:
Select the "One large window"
option in the "Display Settings" box:
39
40
INSTALLING "WSL" (continued)
• Step 11:
Click on the "Next" button:
41
42
INSTALLING "WSL" (continued)
• Step 12:
Make sure that the "Start no client"
option is selected in the "Client
startup" box :
43
44
INSTALLING "WSL" (continued)
• Step 13:
Click on the "Next" button:
45
46
INSTALLING "WSL" (continued)
• Step 14:
Click on the "Next" button:
47
48
INSTALLING "WSL" (continued)
• Step 15:
Click on the "Next" button:
49
50
INSTALLING "WSL" (continued)
• Step 16:
Click on the "Finish" button:
51
52
INSTALLING "WSL" (continued)
• Step 17:
If a "Windows Security Alert" box
pops up, make sure that both the
"Private Networks.." and the "Public
Networks" options are selected:
53
54
55
56
INSTALLING "WSL" (continued)
• Step 18:
Click on the "Allow access" button:
57
58
INSTALLING "WSL" (continued)
• Step 19:
A single large "X Windows" window
will be displayed:
59
60
INSTALLING "WSL" (continued)
• Step 20:
Click on the Minimize button in the
upper-right corner of the "X
Windows" window:
61
62
INSTALLING "WSL" (continued)
• Step 21:
Use the LEFT mouse button to click
on the Windows "Start button":
63
64
65
INSTALLING "WSL" (continued)
• Step 22:
A Windows 10 "Start menu" will be
displayed:
66
67
INSTALLING "WSL" (continued)
• Step 23:
Click on the "Settings" icon:
68
69
INSTALLING "WSL" (continued)
• Step 25:
A "Windows Settings" box will be
displayed:
70
71
INSTALLING "WSL" (continued)
• Step 26:
Double-click on "Update & security":
72
73
INSTALLING "WSL" (continued)
• Step 27:
Click on "For developers":
74
75
76
INSTALLING "WSL" (continued)
• Step 28:
Select the "Developer mode" option:
77
78
79
INSTALLING "WSL" (continued)
• Step 29:
Click on the "Yes" button:
80
81
INSTALLING "WSL" (continued)
• Step 30:
Watch the swirling activity indicator
to the left of "Installing the
Developer Mode package":
82
83
INSTALLING "WSL" (continued)
• Step 31:
Note the warning in red font:
84
85
INSTALLING "WSL" (continued)
• Step 32:
Click on the Windows "Start button"
with your left mouse button:
86
87
INSTALLING "WSL" (continued)
• Step 33:
A Windows "Start menu" will be
displayed:
88
89
INSTALLING "WSL" (continued)
• Step 34:
Click on the "Power" icon:
90
91
INSTALLING "WSL" (continued)
• Step 35:
A pop-up context menu will be
displayed:
92
93
INSTALLING "WSL" (continued)
• Step 36:
Click on "Restart":
94
95
INSTALLING "WSL" (continued)
• Step 37:
The computer will restart:
96
97
98
INSTALLING "WSL" (continued)
• Step 38:
Double-click on the "XLaunch"
shortcut on the "Windows.."
desktop:
99
100
INSTALLING "WSL" (continued)
• Step 39:
Select the "One large window"
option:
101
102
103
104
INSTALLING "WSL" (continued)
• Step 40:
Click on the "Next" button:
105
106
107
INSTALLING "WSL" (continued)
• Step 41:
Made sure that the "Start no client"
option is selected:
108
109
INSTALLING "WSL" (continued)
• Step 42:
Click on the "Next" button:
110
111
112
INSTALLING "WSL" (continued)
• Step 43:
Click on the "Next" button:
113
114
INSTALLING "WSL" (continued)
• Step 44:
Click on the "Finish" button:
115
116
INSTALLING "WSL" (continued)
• Step 45:
A single large "X Windows" window
will be displayed:
117
118
INSTALLING "WSL" (continued)
• Step 46:
Click on the "Minimize" button in the
upper-right corner of the "X
Windows" window :
119
120
121
INSTALLING "WSL" (continued)
• Step 47:
Use the RIGHT mouse button to
click on the Windows.. "Start
button":
122
123
INSTALLING "WSL" (continued)
• Step 48:
A Windows key+x menu will be
displayed:
124
125
INSTALLING "WSL" (continued)
• Step 49:
Click on "Control Panel":
126
127
INSTALLING "WSL" (continued)
• Step 50:
Click on "Programs and Features or
click on "Uninstall a program":
128
129
130
INSTALLING "WSL" (continued)
• Step 51:
Double-click on "Turn Windows
features on or off":
131
132
133
INSTALLING "WSL" (continued)
• Step 52:
A "Turn Windows features on or off"
box will be displayed:
134
135
INSTALLING "WSL" (continued)
• Step 53:
Put a checkmark in "Windows
Subsystem for Linux (Beta):
136
137
138
INSTALLING "WSL" (continued)
• Step 54:
Put a checkmark in "Windows
Subsystem for Linux (Beta):
139
140
INSTALLING "WSL" (continued)
• Step 55:
Click on the "Okay" button:
141
142
143
INSTALLING "WSL" (continued)
• Step 56:
The status of "Applying changes"
will be displayed:
144
145
INSTALLING "WSL" (continued)
• Step 57:
Click on the "Restart now" button:
146
147
148
INSTALLING "WSL" (continued)
• Step 58:
Watch the progress of the update
process:
149
150
INSTALLING "WSL" (continued)
• Step 59:
The Windows.. desktop will be
displayed:
151
152
INSTALLING "WSL" (continued)
• Step 60:
Use the RIGHT mouse button to
click on the Windows "Start button":
153
154
INSTALLING "WSL" (continued)
• Step 61:
A Windows key + x menu will be
displayed:
155
156
INSTALLING "WSL" (continued)
• Step 62:
Click on "Command Prompt
(Admin)":
157
158
INSTALLING "WSL" (continued)
• Step 63:
If a "User Account Control" box is
displayed, click on it's "Yes" button:
159
160
161
INSTALLING "WSL" (continued)
• Step 64:
An "Administrator: Command
Prompt" window will be displayed:
162
163
INSTALLING "WSL" (continued)
• Step 65:
Use the left mouse button to click
once inside the "Administrator:
Command Prompt" window :
164
165
INSTALLING "WSL" (continued)
• Step 66:
Type
bash:
166
167
INSTALLING "WSL" (continued)
• Step 66:
Press the Enter key once or twice:
168
169
INSTALLING "WSL" (continued)
• Step 67:
Type a lower-case
y:
170
171
INSTALLING "WSL" (continued)
• Step 67:
Then press the Enter key once or
twice:
172
173
174
175
176
INSTALLING "WSL" (continued)
• Step 68:
Type in a "Unix username" that you
can remember:
177
178
179
INSTALLING "WSL" (continued)
• Step 69:
Type in a "Unix password" that you
can remember:
180
181
INSTALLING "WSL" (continued)
• Step 70:
Type in the same "Unix password"
that you typed in Step 69:
182
183
INSTALLING "WSL" (continued)
• Step 71:
Press the Enter key once or twice:
184
185
INSTALLING "WSL" (continued)
• Step 72:
Type in
sudo apt-get update
• Step 73:
Press the Enter key once
186
187
INSTALLING "WSL" (continued)
• Step 74:
Type in the password that you typed
in Steps 69 and 70:
• Step 75:
The press the Enter key once or
twice:
188
189
190
191
INSTALLING "WSL" (continued)
• Step 76:
Type in
sudo apt-get upgrade
• Step 77:
Press the Enter key once
192
193
194
INSTALLING "WSL" (continued)
• Step 78:
Type in a lower-case
y
• Step 79:
Then press the Enter key once or
twice:
195
196
197
INSTALLING "WSL" (continued)
• Step 80:
When all activity stops, minimize but
do not close the command prompt
window:
198
199
INSTALLING "WSL" (continued)
• Step 81:
The Windows.. "Desktop" will be
displayed:
200
201
INSTALLING "WSL" (continued)
• Step 82:
Double-click on the "XLaunch"
shortcut on the Windows..
"Desktop":
202
203
INSTALLING "WSL" (continued)
• Step 83:
The "Display settings" box will
appear:
204
205
INSTALLING "WSL" (continued)
• Step 84:
Select the "One large window"
option:
206
207
208
INSTALLING "WSL" (continued)
• Step 85:
Click on the "Next" button:
209
210
INSTALLING "WSL" (continued)
• Step 86:
Make sure that "Start no client" is
selected in the "Client startup box":
211
212
INSTALLING "WSL" (continued)
• Step 87:
Click on the "Next" button:
213
214
INSTALLING "WSL" (continued)
• Step 88:
Click on the "Next" button:
215
216
217
INSTALLING "WSL" (continued)
• Step 89:
Click on the "Finish" button:
218
219
220
INSTALLING "WSL" (continued)
• Step 90:
A large "X Windows" window will be
displayed:
221
222
INSTALLING "WSL" (continued)
• Step 91:
Click on the minimize button the the
upper-right corner of the large "X
Windows" window:
223
224
225
INSTALLING "WSL" (continued)
• Step 92:
Maximize or restore the size of the
command line window by double-
clicking on it's "Task button" on the
"Windows.." Task bar:
226
227
INSTALLING "WSL" (continued)
• Step 93:
Using the left mouse button, click
once inside the command line
window:
228
229
INSTALLING "WSL" (continued)
• Step 94:
Type in
DISPLAY=:0.0
230
231
INSTALLING "WSL" (continued)
• Step 95:
Press the Enter key once or twice.
232
INSTALLING "WSL" (continued)
• Step 96:
Type in
echo "export DISPLAY=:0.0" >> ~/.bashrc
233
234
INSTALLING "WSL" (continued)
• Step 97:
Press the Enter key once or twice.
235
236
INSTALLING "WSL" (continued)
• Step 98:
Type in
sudo sed -i 's/<listen>.*<\/listen>/<listen>tcp:host=localhost,port=0<\/listen>/' /etc/dbus-1/session.conf
(It is best to use copy and past to do the
typing of this complex line since the
command prompt windows in Windows 10
allows you to paste by right clicking.)
237
238
INSTALLING "WSL" (continued)
• Step 99:
Press the Enter key once:
239
INSTALLING "WSL" (continued)
• Step 100:
Type in the same password that you typed in
in Steps 69 and 70.
240
241
INSTALLING "WSL" (continued)
• Step 101:
Type in
sudo apt-get install ubuntu-desktop
242
243
INSTALLING "WSL" (continued)
• Step 102:
Press the Enter key once.
244
INSTALLING "WSL" (continued)
• Step 103:
Type in a lower case y:
245
246
247
INSTALLING "WSL" (continued)
• Step 104:
Press the Enter key once or twice:
248
249
250
251
252
253
254
255
256
INSTALLING "WSL" (continued)
• Step 105:
Type in
sudo apt-get install compiz-core
• Step 106:
Press the Enter key once:
257
258
259
INSTALLING "WSL" (continued)
• Step 107:
Type in sudo apt-get install compizconfig-settings-manager
• Step 108:
Press the Enter key once:
260
261
INSTALLING "WSL" (continued)
• Step 109:
Type in a lower-case y
• Step 110:
Press the Enter key once:
262
263
264
265
266
INSTALLING "WSL" (continued)
• Step 111:
Type in
ccsm
267
268
INSTALLING "WSL" (continued)
• Step 112:
Press the Enter key once:
269
270
INSTALLING "WSL" (continued)
• Step 113:
Click on the "-" minimize button of
the command prompt window:
271
272
273
INSTALLING "WSL" (continued)
• Step 114:
Click on "X Windows" Task button
on the "Task bar":
274
275
276
INSTALLING "WSL" (continued)
• Step 115:
The "X Windows" window will
restore or maximize:
277
278
INSTALLING "WSL" (continued)
• Step 116:
Click on the "OK" button of the
"CCSM is an advanced tool.."
notice:
279
280
281
INSTALLING "WSL" (continued)
• Step 117:
In the "General" section, make sure
the following are selected:
Commands, Composite, Copy to
Texture, and OpenGL
282
283
INSTALLING "WSL" (continued)
• Step 118:
In the "Desktop" section, make sure
that "Ubuntu Unity Plugin" is
selected:
284
285
INSTALLING "WSL" (continued)
• Step 119:
In the "Utilities" section, make sure
that "Compiz Library Toolbox" is
selected:
286
287
INSTALLING "WSL" (continued)
• Step 120:
In the "Window Management"
section, make sure that the
following are selected:
Move Window, Place Windows,
Resize Window, Scale, and
Snapping Windows:
288
289
INSTALLING "WSL" (continued)
• Step 121:
Click on the "Close" button:
290
291
292
INSTALLING "WSL" (continued)
• Step 122:
Click once on the "Task button" of
the command prompt window.
293
294
INSTALLING "WSL" (continued)
• Step 123:
The command prompt window will
restore or maximize.
295
296
INSTALLING "WSL" (continued)
• Step 124:
Click on the "x" close button of the
command prompt window in order
to close the command prompt
window.
297
298
INSTALLING "WSL" (continued)
• Step 125:
Click once on the "Task button" of
the "X Windows" window.
299
300
INSTALLING "WSL" (continued)
• Step 126:
The "X Windows" window will
restore or maximize.
301
302
INSTALLING "WSL" (continued)
• Step 127:
Click on the "x" close button of the
"X Windows" window in order to
close the "X Windows" window.
303
304
INSTALLING "WSL" (continued)
• Step 128:
The installation of "WSL" is now
complete. To use "WSL", follow the
steps starting with "Step 201" in the
next section:
305
USING "WSL"
• Step 201:
Start at the Desktop of a "Windows
10.." computer that has "WSL"
installed into it:
306
307
USING "WSL" (continued)
• Step 202:
Double-click on the "XLaunch"
desktop shortcut that you installed
in the section called "Installing
WSL":
308
309
USING "WSL" (continued)
• Step 203:
A "Display Settings" window will
appear:
310
311
USING "WSL" (continued)
• Step 204:
Select the "One large window"
option:
312
313
314
USING "WSL" (continued)
• Step 205:
Click on the "Next" button:
315
316
317
USING "WSL" (continued)
• Step 206:
Make sure that the "Start no client"
option is selected:
318
319
USING "WSL" (continued)
• Step 207:
Click on the "Next" button:
320
321
USING "WSL" (continued)
• Step 208:
An "Extra settings" window will be
displayed:
322
323
USING "WSL" (continued)
• Step 209:
Click on the "Next" button:
324
325
USING "WSL" (continued)
• Step 210:
A "Configuration complete" window
will be displayed:
326
327
USING "WSL" (continued)
• Step 211:
Click on the "Finish" button:
328
329
USING "WSL" (continued)
• Step 212:
A single black "X Window" window
will fill up the entire monitor screen:
330
331
USING "WSL" (continued)
• Step 213:
Click on the "-" minimize icon in the
upper-right corner of the "X
Window" window:
332
333
334
USING "WSL" (continued)
• Step 214:
The "Windows 10" Desktop will be
displayed:
335
336
USING "WSL" (continued)
• Step 215:
Use the RIGHT mouse button to
click the Start button:
337
338
USING "WSL" (continued)
• Step 216:
A
" 'Windows' key + x" menu
will be displayed:
339
340
USING "WSL" (continued)
• Step 217:
Click on
"Command Prompt (Admin)"
341
342
USING "WSL" (continued)
• Step 218:
If a "User Account Control" dialog
box is displayed, click on it's "Yes"
button:
343
344
USING "WSL" (continued)
• Step 219:
An
"Administrator: Command Prompt"
window will be displayed:
345
346
347
348
USING "WSL" (continued)
• Step 220:
Type
bash
at the command prompt:
349
350
USING "WSL" (continued)
• Step 221:
Then depress the Enter key of the
keyboard once:
351
352
USING "WSL" (continued)
• Step 222:
Type in
ccsm
353
354
USING "WSL" (continued)
• Step 223:
Press the Enter key once:
355
356
USING "WSL" (continued)
• Step 224:
Click on the "-" minimize button of
the command prompt window:
357
358
359
USING "WSL" (continued)
• Step 225:
Click on "X Windows" Task button
on the "Task bar":
360
361
362
USING "WSL" (continued)
• Step 226:
The "X Windows" window will
restore or maximize:
363
364
USING "WSL" (continued)
• Step 227:
Click on the "OK" button of the
"CCSM is an advanced tool.."
notice:
365
366
367
USING "WSL" (continued)
• Step 228:
Click on the "Close" button:
368
369
370
USING "WSL" (continued)
• Step 229:
Click on "Task button" for the
"Command Prompt" window:
371
372
INSTALLING "WSL" (continued)
• Step 230:
Using the left mouse button, click
once inside the command prompt
window:
373
374
USING "WSL" (continued)
• Step 35:
Type
compiz
at the command prompt:
375
377
379
380
382
384
385
386
388
390
391
393
394
395
USING "WSL" (continued)
• You Linux files will be located
at
C:\Users\{username}\AppDat
a\Local\lxss\
where "lxss" probably is an
acronym for "Linux
Subsystem"
396
USING "WSL" (continued)
• https://en.wikipedia.org/wiki/Window
s_Subsystem_for_Linux
397
USING "WSL" (continued)
• Microsoft's documentation is
located at
https://msdn.microsoft.com/comma
ndline/wsl/about
398
ADDITIONAL WAYS TO USE
"WSL"
• http://www.infoworld.com/article/309
9032/microsoft-windows/6-wacky-
hacks-for-linux-on-windows.html
• http://drupal.sh/install-drupal-
windows-subsystem-for-linux-wsl-
ubuntu
399
ADDITIONAL WAYS TO USE
"WSL" (continued)
• http://www.winbeta.org/news/micros
oft-provides-details-ever-wanted-
know-windows-subsystem-linux
• http://react-etc.net/page/installing-
wordpress-on-windows-subsystem-
for-linux-wsl-ubuntu
400
ADDITIONAL WAYS TO USE
"WSL" (continued)
• https://www.variantweb.net/blog/run
ning-fedora-on-windows-10-using-
wsl/
401
ADDITIONAL WAYS TO USE
"WSL" (continued)
• http://www.omgubuntu.co.uk/2016/0
8/upgrade-bash-windows-10-
ubuntu-16-04-lts
402
MALWARE ISSUES
• https://threatpost.com/windows-10-
attack-surface-grows-with-linux-
support-in-anniversary-
update/119778/
• http://www.theinquirer.net/inquirer/n
ews/2467416/linux-subsystem-
could-cause-windows-10-
anniversary-update-to-eat-itself
403
MALWARE ISSUES (continued)
• http://mspoweruser.com/security-
reseacher-explains-security-issues-
related-to-windows-10-linux-
subsystem/
404
ADDITIONAL INFORMATION ON
"WSL"
• https://ayesh.me/ubuntu-bash-
windows-10-wsl
• http://windowsreport.com/windows-
10-linux-subsystem/
• http://www.phoronix.com/scan.php?
page=article&item=windows-10-
lxcore&num=1
405
ADDITIONAL INFORMATION ON
"WSL" (continued)
• https://www.symfony.fi/entry/php-
development-with-windows-
subsystem-for-linux-wsl
• http://www.techrepublic.com/article/
windows-10-meets-nt-why-
microsoft-is-revisiting-the-past-with-
its-support-for-linux/
406
ADDITIONAL INFORMATION ON
"WSL" (continued)
• https://forum.avast.com/index.php?t
opic=185328.15
407
REFERENCES
• https://www.reddit.com/r/Windows10/co
mments/4rsmzp/bash_on_windows_gett
ing_dbus_and_x_server_working/
• http://www.zdnet.com/article/how-to-run-
run-the-native-ubuntu-desktop-on-
windows-10/
• http://www.omgubuntu.co.uk/2016/08/en
able-bash-windows-10-anniversary-
update
408
REFERENCES (continued)
• https://github.com/Microsoft/BashOnWin
dows/issues/637
• https://www.slightfuture.com/technote/lx
ss-lxrun
• http://www.howtogeek.com/249966/how
-to-install-and-use-the-linux-bash-shell-
on-windows-10/
• http://thehackernews.com/2016/07/ubun
tu-gui-windows-10.html