WSL2 Instead of VirtualBox?


Can I use Windows Subsystem for Linux rather than VirtualBox for this course?


I don’t see a reason why you cannot, so give it a try. But I don’t think you will have some features of VB such as creating a snapshot or using the course VM .ova files.


Well everything works great until I get to Ardupilot Installation part 1 (1:55 into the video) to update the submodules. git does not appear to like something:

pweber@DT-0005:~/courseRoot/apm/ardupilot$ git submodule update --init --recursive
Cloning into ‘/home/pweber/courseRoot/apm/ardupilot/modules/ChibiOS’…
fatal: unable to connect to[0:]: errno=Resource temporarily unavailable


I don’t use WSL but I gave it a try and got the SITL running using the steps below. However, neither the console nor map appeared, so need to fix something later.



3 Confirm in Windows Features is checked on

4 system reboot

5 wsl --install -d Ubuntu-20.04

6 un/pw

7 sudo apt update && sudo apt upgrade -y

8 sudo apt install build-essential manpages-dev git -y

9 sudo apt-get install python3-dev python3-pip -y

10 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 (Note: ensure two dashes)

11 sudo apt-get install python3-opencv python3-wxgtk4.0 -y

12 sudo apt install python3-matplotlib python3-lxml -y

13 sudo apt install python3-serial python3-scipy python3-pexpect python3-tk -y

14 sudo apt install screen

15 python3 -m pip install -U pygame --user (Note: ensure two dashes)

16 pip3 install PyYAML mavproxy

17 python -m pip install empy

18 echo “export PATH=$PATH:$HOME/.local/bin” >> ~/.bashrc

19 source ~/.bashrc

20 sudo usermod -a -G dialout $USER

21 sudo apt remove modemmanager -y

22 cd ~

23 mkdir drone

24 sudo echo “export drone= /home/$USER/drone” >> ~/.bashrc

25 source ~/.bashrc

26 mkdir apm

27 cd apm

28 git clone -b Copter-4.2.2

29 cd ardupilot

30 git submodule update --init --recursive (Note: ensure two dashes)

31 sudo -H pip3 install dronekit==2.9.2

32 cd ~

33 sudo -H pip3 install dronekit==2.9.2

34 sudo -H pip3 install dronekit-sitl==3.3.0

35 mkdir drone/dk

36 To launch SITL

cd ~/drone/apm/ardupilot/ArduCopter
…/Tools/autotest/ --console -S 3 --aircraft=Copter1 --out [use host ip]

Course material tested on Ubuntu 16.04 or 18.04
Cannot connect to github for terminal use

Excellent! I have everything working - including the console and map. You may need some form of XServer running on your PC; you might try this freebie: