doc/guides/getting-started/install-wsl.mdx
:::note The following guide is for Windows users only.
It explains the process of installing Ubuntu LTS via Windows Subsystem for Linux (WSL) on a Windows machine.
If you are using a different operating system, please refer to the general guide on how to use RIOT. :::
It will take a while for Ubuntu LTS to be installed.
Eventually, the installation completes.
:::caution If the Windows Subsystem for Linux (WSL) has not yet been enabled, an error such as below will show. Not to worry, the next section got you covered. :::
:::note If an Ubuntu terminal opened just fine, proceed directly to the next section. This section will show how to enable WSL for those who hit the error. :::
wsl --install and confirm with the return-key.The reboot will take longer than usual due to the installation of WSL. You may see a screen like above for some time. Once the reboot is completed, an Ubuntu terminal should open automatically.
You should now see an Ubuntu terminal such as:
<details> <summary> If no Ubuntu terminal has opened, click here to see how to open it </summary>:::caution
When typing passwords in the Ubuntu terminal, the chars entered will not
appear on the screen and neither will appear *. You will have to type
"blindly". This is an intentional security feature.
:::
:::note If you fail to repeat the password correctly, the setup will just again. So no need to worry. :::
:::caution
When typing the password, you will no get any visible feedback such as the
typed password or * chars. This is an intentional security feature.
:::
:::note
The command sudo apt update only updates the list of available software
packages in Ubuntu. Updating the installed software requires to additionally
run sudo apt upgrade
:::
sudo apt upgrade and confirm with the return-key:::note
This time you likely will not need to confirm with your password again. The
sudo command that allows you to run administrative commands such as
apt update will skip the password entry, when heuristics indicate that
you have not left your machine since you last confirmed a command with your
password.
:::
:::note
It is recommended to regularly update the installed software in Ubuntu
using sudo apt update followed by sudo apt upgrade
:::
vs code in the search barwsl in the search field:::note
The installation of the WSL extension will complete the next time you open
Ubuntu terminal. If the Ubuntu terminal was still open, close it using the
exit comment and launch it again.
:::
usbipd-winusbipd-win.msi) of the most recent releaseOnce the download is completed:
The setup of usbipd-win opens.
Eventually, the setup will inform you of the completion of the installation.
:::note Attaching a USB device to WSL needs to be repeated after any of the following happens:
:::note You do not need to install the Windows USB drivers, Linux will use its own anyway. All supported board run on Linux out of the box without the need of drivers to be installed. :::
powershell in search field in the task barusbipd list and confirm with the return-keyusbipd bin --busid <BUSID>, but replace <BUSID> with the correct
BUSID. E.g. 2-5 for the CP2104 identified in step 2.usbipd attach --wsl --busid <BUSID>
:::note
If you have trouble identifying the USB device to attach, unplug before
running usbipd list. Run it again with the USB device plugged in. The new
entry in the list is the device you want to attach to WSL.
:::
Now that you have successfully installed Ubuntu LTS and enabled WSL on your Windows we can proceed with the next steps to setup our development environment.