GNU/Linux Desktop Survival Guide
by Graham Williams |
|||||
Setup WSL with Ubuntu |
20190511 The steps to install WSL and then Ubuntu on a Windows 10 system are quite simple. Microsoft's instructions are summarised below.
First, enable the optional Windows 10 feature known as Windows Subsystem for Linux. From a PowerShell this is enabled using the following command:
> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux |
Now download and install the Ubuntu 18.04 distribution from the Microsoft Store. It is a free application. Once you have obtained the app click the Launch button in the Microsoft Store. This will install and configure the Ubuntu distribution, including asking you to create a new username. Once you get to a shell prompt enter the following command to update the operating system:
$ sudo apt update && sudo apt upgrade |
Also install XMing as the X Windows server for Windows 10 so that graphical applications running on Ubuntu can display onto the Windows 10 desktop.
Ubuntu 18.04 can then be started from PowerShell with:
> ubuntu1804 |
Ubuntu is now running within Windows. The following commands then illustrate a GUI based demonstration.
$ export DISPLAY=127.0.0.1:0.0 $ sudo apt-get install wajig $ wajig install python3-pip $ pip3 install mlhub $ ml configure $ ml install animate $ ml configure animate $ ml demo animate |