-
Notifications
You must be signed in to change notification settings - Fork 0
Windows Subsystem for Linux
In this guide we will be reviewing how to download, install and setup WSL and Ubuntu (version 20.04 LTS aka Long Term Support).
You need to do a series of steps to enable the linux terminal in your Windows computer;
- To do so follow this video up to timestamp 4:25.
- And if it is not clear enough compliment it with this guide.
*You might need to restart your computer multiple times to make sure you have installed everything correctly.
Once you succesfully follow the steps of the video and guide of step 1 you can open the Ubuntu terminal and start setting it up.
- You need to update it to be able to run commands so type
sudo apt-get update && apt-get update. You can ignore the -get section on the command, since this will be deprecated on the future.
3. Download and install VSCode:
If you have VSCode already installed you can skip this step.
Too make everything easier we are going to use VSCode in cojunction with the Ubuntu terminal, that's why having VSCode installed in your computer is very important.
- You can also watch this VSCode video guide if you are having trouble.
After you succesfully download VSCode you can continue setting up your terminal following this link starting on step N° 7.
¡¡Before following "this link" read step 5!!
5. Notes to make following this link easier:
-
In step N° 13. make sure your download "gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2" not the latest version for your computer.
-
In step N° 13. you can check these basic commands in linux to make the changing of directories easier.
-
In step N° 13. to reach you desktop use the command
cd /mnt/c/Users/your_user/Desktop. -
In step N° 13. if you are having trouble unzipping the file through the terminal you can always do it in your desktop or downloaded files.
-
In step N° 14. you can't just copy your path directly mainly because the slashes are the opposite way, so it is recommended to get to it by using
cdin Ubuntu terminal. -
In step N° 15. if you can't clone the repository from the terminal, clone it from VSCode entering the same text but in the VSCode terminal.
-
In step N° 19 you can use this online extractor.
-
In step N° 21 and 22 are for installing ST-Link and J-Link for debugging microcontrollers so you don't need them for your WSL also, you need access to download the files.
-
If you would like to shorten the path shown click here.
-
You can also personalize the view by downloading the Terminal App.
-
How the
PATHworks.