Some Ubuntu Linux Setup Notes

Basic Ubuntu Linux setup notes/steps

"Login" as root

APT Update / Upgrade

Network Related

Time Zone

NodeJS

nginx


"Login" as root

sudo -i

APT Update / Upgrade

apt-get update
apt-get upgrade

IP Address Information

ip a
netplan status

Configure Network / IP Address

Create / Update a .yaml file in /etc/netplan/ folder. By convention, start the filename with a 2-digit number, followed by a dash.

For example, the file 01-static.yaml with the following contents configures a static IP address on Ubuntu Server (which uses the renderer: networkd to denote the server's networking subsystem).

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: no
      addresses: [192.168.100.101/24]
      gateway4: 192.168.100.1
      nameservers:
        addresses: [8.8.8.8,8.8.8.4]

Here's another example for a file named 02-dynamic.yaml that configures a dynamic IP address on Ubuntu Desktop (which uses a different renderer: NetworkManager used by the desktop's networking subsystem).

network:
  version: 2
  renderer: NetworkManager
  ethernets:
    eth1:
      dhcp4: true

Time Zone

timedatectl set-timezone Asia/Singapore

NodeJS

apt install nodejs

nginx

apt install nginx