build details

Show: section status errors & todos local changes recent changes last change in-page changes feedback controls

Developer Basics: Linux

Modified 2020-05-26 by Andrea F. Daniele

Andrea F. Daniele

Maintainer: Andrea F. Daniele

This section of the book will introduce Linux distributions and specifically the Ubuntu distribution. We will provide guides for installing Ubuntu in dual-boot mode or inside a virtual machine.

Linux

Modified 2020-05-26 by Andrea F. Daniele

Linux is a group of free and open-source software operating systems built around the Linux kernel first released in 1991. Typically, Linux is packaged in a form known as a Linux distribution such as Fedora or Ubuntu.

Ubuntu is the Linux distribution officially supported by the Duckietown community.

Ubuntu

Modified 2020-05-26 by Andrea F. Daniele

As of this writing, the most recent version of Ubuntu is 20.04 LTS (Long Term Service) which will be supported until April 2025.

Installation

Modified 2020-05-26 by Andrea F. Daniele

It is highly recommended to install Ubuntu directly on your laptop or as a dual boot operating system alongside your existing OS. However we also provide some guidance on installing Ubuntu within a Virtual Environment on your laptop.

Dual Boot

Modified 2020-05-26 by Andrea F. Daniele

  • First you need to download a .iso image file which contains the version of Ubuntu you want. Here is 20.04 LTS make sure to download the desktop image.
  • Next, you need a free USB drive with at least 2GB of space. The drive will be completely written over.
  • You need some software to write the .iso to the USB. If on Windows you can use Rufus
  • Create the bootable USB drive, disconnect the USB then reconnect to your computer.
  • Restart your computer
    • If your computer simply boots into the existing operating system you need to change the boot order in your BIOS.
    • Restart your computer again and press the button during startup which lets you into the BIOS. It may say on your computer what this button is but you may need to Google depending on your laptop model. For example Lenovo might be F1 or F2.
    • Look for an option to change boot order and put priority on your USB drive.
  • Your computer should now boot into Ubuntu installation and you can follow the instructions for dual boot.

Virtual Machine

Modified 2020-06-09 by Aleksandar Petrov

  • First you need to download a .iso image file which contains the version of Ubuntu you want. Here is 20.04 LTS make sure to download the desktop image.
  • Download your desired Virtual Machine platform (popular choices are Virtual Box and VMWare).

Using a Virtual Machine might require some particular settings for you networking settings. The virtual machine should appear as a device on your local network. For example, in VirtualBox, you need to set up a Bridged Network. This might differ in other hypervisors.

Terminal

Modified 2020-05-26 by Andrea F. Daniele

Some pointers:

  • Open a terminal with Ctrl + Alt + T
  • / is the top level root directoy which contains your
  • ~ refers to your home folder located in /home/username

Hands on

Modified 2020-05-26 by Andrea F. Daniele

We suggest that you install a Linux distribution on your computer and get familiar with it before proceeding to the next sections.

Ask the community

Modified 2020-05-26 by Andrea F. Daniele

If you have any questions about good practices in installing Ubuntu on your computer or other questions about Ubuntu, join the Slack channel #help-laptop.