Ubuntu Linux distribution notes
Versions
Section titled “Versions”Pick the LTS (long term support) version to avoid the automatic package management from becoming out of date and unsupported.
Ubuntu 20.04 LTS (Focal Fossa) was released on 2020-04-23.
Network
Section titled “Network”Ubuntu 20.04 uses netplan for network configuration.
Static IP
Section titled “Static IP”My installation automatically configured the box with DHCP. To change from dynamic to static, edit
/etc/network/interfaces and type in your static IP.
Originally I had:
# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).
# The loopback network interfaceauto loiface lo inet loopback
# The primary network interfaceauto eth0iface eth0 inet dhcpI changed the last line to
iface eth0 inet staticaddress 192.168.100.20netmask 255.255.255.0gateway 192.168.100.138mtu 1500address is your static IP address.
gateway is the router.
Kernel
Section titled “Kernel”You can install the precompiled kernel via apt-get (package manager). There are 2 packages to pick from:
- linux-image-server or linux-image-generic is the same since release 12.04.
- linux-image-virtual, for use within a virtual machine. I installed linux-image-server to a dedicated server.
# apt-get install linux-image-serverReading package lists... DoneBuilding dependency treeReading state information... DoneThe following extra packages will be installed: crda iw linux-image-3.2.0-27-generic wireless-regdb ...........Generating grub.cfg ...Warning: update-grub_lib is deprecated, use grub-mkconfig_lib insteadFound linux image: /boot/bzImage-3.2.13-xxxx-grs-ipv6-64Found linux image: /boot/vmlinuz-3.2.0-27-genericFound initrd image: /boot/initrd.img-3.2.0-27-generic No volume groups founddoneIn the above example kernel linux-image-3.2.0-27-generic was installed.
Next, we need to tell grub (the boot loader) to load the new kernel image next reboot.
First determine the image number for your new kernel. It starts from 0.
# cat /boot/grub/grub.cfg | grep menuentrymenuentry "Ubuntu 12.04, 3.2.13-xxxx-grs-ipv6-64" {menuentry 'Ubuntu, with Linux 3.2.0-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {menuentry 'Ubuntu, with Linux 3.2.0-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {The above output shows 3 menu entries to pick from. They are in order, and the count starts from 0. In my case I’d like the 2nd option, ‘Ubuntu, with Linux 3.2.0-27-generic’. This would be option 1.
Edit /etc/default/grub, change the value of GRUB_DEFAULT to your option number.
GRUB_DEFAULT=1run update-grub
# update-grubGenerating grub.cfg ...Warning: update-grub_lib is deprecated, use grub-mkconfig_lib insteadFound linux image: /boot/bzImage-3.2.13-xxxx-grs-ipv6-64Found linux image: /boot/vmlinuz-3.2.0-27-genericFound initrd image: /boot/initrd.img-3.2.0-27-generic No volume groups founddonereboot and check your kernel has been updated by running the uname command:
# uname -aLinux 3.2.0-27-generic #43-Ubuntu SMP Fri Jul 6 14:25:57 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux