The following is a collection of handy commands for the Ubuntu 20.04 server administration:
Changing network configuration
Most of the network configuration is stored in /etc/netplan/00-installer-config.yaml
. In my configuration, the server is configured to a static IP address:
1 2 3 4 5 6 7 8 9 10 |
# This is the network configuration written by 'subiquity' network: ethernets: enp03s: addresses: [192.168.4.65/24] gateway4: 192.168.4.1 nameservers: addresses: [192.168.4.1,172.104.136.243,192.71.245.208] dhcp4: no version: 2 |
After editing the file, validate it with sudo netplan apply
.
Solution comes from the official Ubuntu server documentation.
Changing tty keyboard layout
Changing your keyboard layout is a piece of cake: Just issue the command sudo dpkg-reconfigure keyboard-configuration
.
Solution comes from askubuntu.com.