Before you begin check to make sure that you have the most recent version of Windows 10.
You are not expected to understand what is taking place as you complete the steps in this guide. It is important that you do not skip ahead. Please follow the instructions line by line.
Windows does not run in a POSIX environment. Much of the software you use as a developer is designed to run in POSIX environments, and many of the web’s servers are also running in some POSIX environment. This causes problems because Windows uses different console commands and not all of those commands translate over to POSIX very well.
Windows has released a feature available to all PCs running on Windows 10 called Windows Subsystem for Linux, otherwise known as WSL. WSL gives you the ability to add a Linux distro like Ubuntu and mount it directly to the Windows File System.
Ubuntu can read and write both Ubuntu and Windows files, Windows can only read and write Windows files, and read Ubuntu Files, but it cannot write Ubuntu files. Knowing which files belong to which FS is important because of this.
Before we dive into how to use the Ubuntu App and WSL, lets talk about one of the most important things, which is knowing your File Systems
There are 2 files systems here:
Follow the instructions line for line, pay attention to detail!!
Turn Windows Features On Or Off
and click on the item that populates in the list.Windows Subsystem for Linux
.This will install the needed files. Follow any directions that pop up and restart when asked. This page might not open after restart, so be sure to make note of the url or bookmark it.
pwd
to see where you currently are in the FS, you should be at /home/<your username>
. This is the root level of your Ubuntu user.sudo apt-get update
.sudo apt-get upgrade
. Press y
when prompted.sudo apt autoremove
. This will remove any packages that are no longer needed.At this point you are now totally setup with WSL and the Ubuntu app.
pwd
. Assumuing you haven’t changed anything yet, you’ll notice that it says something like /home/<your username>
.This /home/
means that you are in the Ubuntu FS.