Extra - HowTo Linux notes

Notes and tips

This page is a seried of helpful notes that have been gathered as a result of HoverGames and other feedback from users with NavQPlus.

HowTo: Remove unattended upgrades

<TODO> Add a simple explanation on why to remove unattended upgrades

apt remove unattended-upgrades

HowTo: Install nano

GNU nano is an easy to use command line text editor for Unix and Linux operating systems. It includes all the basic functionality you’d expect from a regular text editor, like syntax highlighting, multiple buffers, search and replace with regular expression support, spellchecking, UTF-8 encoding, and more.

Note: There are other text editors that can be used, Nano is a popular one. Some of the HowTo below will use Nano as the editor.

To install:

sudo apt install nano

HowTo: Edit hostname

Run the following command to change your hostname. Assuming you want to use the hostname "compcom42".

sudo nano /etc/hostname compcom42 

Change the hostname in hosts file

(TODO - Clarify all the text below this point)

sudo nano /etc/hosts 


127.0.1.1 compcom42 

Add the additional entries 



192.168.42.11   compcom<id> 
192.168.42.5    navq<id>-d2x 
192.168.42.2    t1eth8 
192.168.42.6    d2xmodem 
192.168.42.21   radar1 
192.168.42.22   radar2 
192.168.42.23   radar3 

HowTo: Set static ip configuration

Network manager is used for network config. See steps below

Determine the interface to be used

nmcli con show 

From <https://askubuntu.com/questions/246077/how-to-setup-a-static-ip-for-network-manager-in-virtual-box-on-ubuntu-server>

Set static ip

Wired connection 2 = 1000base-TX / eth1 Wired connection 1 = 100base-T1 / eth0

nmcli con mod "Wired connection 2" 
  ipv4.addresses "192.168.42.11/24" 
  ipv4.gateway "IP_GATEWAY" (needs to be blank on static ip) 
  ipv4.dns "1.1.1.1,8.8.8.8" 
  ipv4.method "manual"  

From <https://askubuntu.com/questions/246077/how-to-setup-a-static-ip-for-network-manager-in-virtual-box-on-ubuntu-server>

HowTo: Install ROS

ROS is already installed on the pre-built Ubuntu 20.04 with ROS2 Galactic image

See ROS2 installation script docs

HowTo: Install VPN

See 20220509 - Openvpn client user

Last updated