Skip to content

Operating System (OS)

Linux Distributions

The modifield Hangfa Discovery Q2 platform by INESC TEC uses the Robot Operating System (ROS) set of software libraries to facilitate the development of robot-oriented applications. As a result of using ROS, you should take attention to the compatibility of the Linux distributions with specific ROS versions. The following list provides a summary on the Linux compatibility with ROS:

Still, the remaining of the Operating System tutorial will focus on Ubuntu Focal Fossa 20.04 LTS due to its compatibility with both ROS 1 and ROS 2 versions.

Create Bootable USB

Rufus (Windows)

  1. Download and install Rufus
  2. Download the Ubuntu Focal Fossa 20.04 LTS image file
  3. Select your USB stick for the Device option
  4. Select the Ubuntu image file for the Boot selection option
  5. (optional) Disable quick format and/or Enable check device for bad blocks
  6. Press the Start button

Linux

  1. Open the Make Startup Disk application
  2. Select the Ubuntu image file for the CD-Drive/Image option
  3. Select your USB stick for the Device option
  4. Make Startup Disk

Installation

  1. Power on or reboot the Single Board Computer (SBC)
  2. Press Del or Esc key continuously (for LattePanda SBCs) to enter into BIOS menu
  3. BIOS Setup Boot Select the USB drive as the first boot option
  4. Save the changes and exit the boot screen
  5. Select Install Ubuntu
  6. Language Ubuntu Installation Welcome
  7. Keyboard layout Ubuntu Installation Keyboard Layout
  8. Select Minimal installation, and enable Download updates while installing Ubuntu and Install third-party software for graphics and Wi-Fi hardware Ubuntu Installation Updates and other software
  9. Select Something else to create and resize partitions yourselft Ubuntu Installation Type

    • Remove all pre-existing partitions Ubuntu Installation Type Empty Partitions
    • SSD (/dev/nvme0n1)

      • 512MB EFI System Partition

        Ubuntu Installation Type EFI

      • 8192MB swap area

        Ubuntu Installation Type Swap

      • / root (remaining of the disk free available size)

        Ubuntu Installation Type Root

    • eMMC (/dev/mmcblk2)

      • /media/data partition

        Ubuntu Installation Type Data

      Tip

      SSD is set as the boot loader and to have the OS's root partition due to being faster that eMMC memory. As a result, the latter can be used as additional data storage, following the preivous steps.

    • Final partition scheme

      Ubuntu Installation Type eMMC

      Ubuntu Installation Type SSD

    • Confirm disk changes

  10. Timezone Ubuntu Installation Timezone

  11. User and computer information settings Ubuntu Installation User and PC Information

    Warning

    If you have more than 1 robot, it is advisable for you to use different computer's name for network discoverability purposes and alias definitions.

    Tip

    Use user as the username for all your robots to facilite when connecting remotely to the robot (e.g., ssh user@<robot_name>, assuming that <robot_name> is defined as a valid network alias).

  12. Press Continue to finish the installation of the OS

  13. Reboot the Single Board Computer (SBC)

Setup

Keyboard Shortcuts

  1. Open Settings
    • Task Bar Settings
    • Dock Show Applications Settings
  2. Privacy Screen Lock
    • Set Blank Screen Delay to Never
    • Disable Automatic Screen Lock
  3. Power
    • Set Power Saving: Blank Screen to Never
  4. Keyboard Shortcuts
    • Home folder: Super+E

File Explorer

  1. Open File Explorer (Super+E)
  2. Open the Menu Preferences
  3. Views Enable List View: Allow folders to be expanded

Getting Started

sudo apt update
sudo apt dist-upgrade

sudo apt install build-essential git net-tools nmap terminator vim xclip