Ubuntu Server
Setup
Fixed IP / No DHCP
sudo nano /etc/netplan/*.yaml
- Below adapter, change
dhcp4: no
and add addresses:
- 192.168.1.100/24
gateway4: 192.168.1.1
nameservers:
addresses: [1.1.1.1, 1.0.0.1]
sudo netplan apply
- Check with
ip addr show
Livepatch service
sudo snap install canonical-livepatch
- Generate a token
sudo canonical-livepatch enable UNIQUE_TOKEN
canonical-livepatch status --verbose
to check status
Snaps
- Bundle application & all dependencies
- App are executed encapsulated
- Automatically updated
- Commands
snap list
snap install APP
snap remove APP
snap logs APP
snap info APP
to list all version of one app sudo snap revert APP
to go one version before sudo snap refresh APP
to install latest version - On services
snap services
snap logs APP.SERVICE
snap stop --disable APP.SERVICE
or systemctl status snap.APP.SERVICE
- On configuration
snap get APP
and snap get APP key1
to go to level key1 snap set APP key1.subkey1=value
- Volumes created
/snap/
: mount point for running snap core/
: virtualFS for snap apps
/var/snap/
: user data & logs /var/lib/snapd/
/home/username/snap/
- Source