Main Content

Installing Windows Subsystem for Linux (WSL2)

Note

This section explains the task to be completed as part of the step—Install Windows Subsystem for Linux (WSL2)—of the Hardware Setup process (using the Hardware Setup screens).

Note

Ensure that your PC is connected to an active internet connection before proceeding with the next step.

To set up a new installation of Windows Subsystem for Linux (WSL2) that is used in UAV Toolbox Support Package for PX4 Autopilots, perform these steps.

  1. Ensure that your computer's virtualization feature is enabled in the BIOS. It is usually referred as "Virtualization Technology", "Intel VT-x" or "AMD-V" respectively.

  2. Open Windows Command prompt as administrator. This can be done by typing cmd in Windows Search, right-clicking on the Command prompt entry and selecting Run as administrator.

  3. Execute the following command on Windows Command prompt to install WSL2.

  4. After the installation is complete, restart the computer.

  5. After computer restarts, launch Windows command prompt again. Run the below command to set Ubuntu distribution as default.