EBC Exercise 02 Setting Up Windows Subsystem for Linux

From eLinux.org
Revision as of 06:56, 7 September 2020 by Yoder (talk | contribs)
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder


The Beagle can run standalone with a monitor and keyboard and mouse, but we use it in an iot mode where it's accessed through the network. When used this way an Linux host is used that is either a native install on a laptop (or desktop) or a virtual machine running under Windows.

The purpose of this wiki is to introduce a third option, running in the Windows Subsystem of Linux (wsl).

The Windows Subsystem of Linux

wsl lets developers run a GNU/Linux environment directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. Details about wsl can be found here: https://docs.microsoft.com/en-us/windows/wsl/about, or just googling for it. Here I'll highlight how to install and use is for the class.

Installing WSL

Simply got to the Microsoft Store and search for ubuntu. Select the newest one and follow the directions. If you want wsl 2, go to: https://docs.microsoft.com/en-us/windows/wsl/install-win10.

Sharing the network

We used ip masquerading to have the host compute share the network with the Beagle. Here you need to set up Windows to do the sharing.

... to be continued ...

thumb‎ Embedded Linux Class by Mark A. Yoder