Table of Contents

Ubuntu

As of 2022-12-26, the latest Long Term Support version is 22.04 LTS.

Install Microsoft fonts

For installation of Microsoft fonts, e.g. Arial, Helvetica, use the following set of commands (note, an EULA needs to be accepted interactively):

user:~$ sudo apt install ttf-mscorefonts-installer
user:~$ sudo apt install --reinstall ttf-mscorefonts-installer
user:~$ sudo fc-cache -fv | grep msttcorefonts
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60 fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: skipping, looped directory detected

The reinstallation is necessary, since during the first run, an attempted install of fonts is performed before the EULA agreement has been accepted. Some online solutions suggest the msttcorefonts package - this is an alias of ttf-mscorefonts-installer. For automated installs, consider running this prior:

user:~$ echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections

If using matplotlib, delete the font cache:

user:~$ rm -rf ~/.cache/matplotlib

Network in 24.04

24.04 uses systemd-networkd for DHCP. To renew lease: sudo networkctl renew eth0