Some Ubuntu Linux Setup Notes
Basic Ubuntu Linux setup notes/steps
Quick Links
"Login" as root
sudo -iAPT Update / Upgrade
apt-get update
apt-get upgradeNetwork Related
IP Address Information
ip a
netplan statusConfigure 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: trueTime Zone
timedatectl set-timezone Asia/SingaporeNodeJS
apt install nodejsnginx
apt install nginx