Windows Only: Ubuntu on Windows

Every operating system has a terminal (sometimes referred to as a shell or console), which is a text-based program used to run low-level commands. The terminals on Mac (Terminal) and Linux (bash, zsh, etc.) are compatible with the RACECAR-MN, but the terminals on Windows (cmd or PowerShell) unfortunately are not.

In order to program the RACECAR-MN on a Windows machine, you will need to install Ubuntu on Windows. This will allow us to use bash, a Linux terminal program.

Installation

  1. Before you install Ubuntu, you will need to enable Windows Subsystem for Linux (WSL). Open Control Panel and type “Windows Features” in the search bar. Select Turn Windows features on or off.
../../_images/WSL1.png
  1. This will bring up a new window titled “Windows Features”. Scroll to the very bottom of the list and check the box next to Windows Subsystem for Linux. Select OK to save your changes.
../../_images/WSL2.png
  1. Restart your computer to install these changes.
  2. Install Ubuntu from the Windows Store.
../../_images/Ubuntu1.png
  1. Launch Ubuntu from the start menu, which will open a bash terminal. The first time you open bash, it will need to install.
../../_images/Ubuntu2.png
  1. Finally, you will be asked to create a username and password. This will be the password that you use whenever bash asks you for your sudo password.
../../_images/Ubuntu3.png ../../_images/Ubuntu4.png

You are now ready to use bash on Windows. Whenever you are asked to use a terminal program in the RACECAR-MN course, always use bash (by launching Ubuntu from the start menu). Never use PowerShell or cmd for anything related to the racecar.

Troubleshooting

I forgot my Ubuntu password

This article explains how to reset your Ubuntu password.