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
HEIC support
Ubuntu rolls with old versions of the libheif library, which is deprecated as of iOS 18. Imagemagick has libheif as a dependency and will fail.
The library is maintained on GitHub, with the corresponding official PPA at libheif. Installation instructions:
root# add-apt-repository ppa:strukturag/libheif root# apt install libheif1 heif-gdk-pixbuf heif-thumbnailer
Print temperatures
user:~$ paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/' # gives something like: cpu-thermal 67.6°C
Custom terminal
Custom terminal on GNOME (Nautilus), from https://askubuntu.com/questions/1351228/change-default-terminal-with-right-click-option-open-in-terminal-in-file-manag and https://github.com/Stunkymonkey/nautilus-open-any-terminal:
> sudo apt install python3-nautilus > pip3 install nautilus-open-any-terminal > sudo apt remove nautilus-extension-gnome-terminal > nautilus -q # Check that button replaced with "Open gnome-terminal here" # Now change to desired terminal, e.g. terminator > gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal terminator > gsettings set com.github.stunkymonkey.nautilus-open-any-terminal keybindings '<Ctrl><Alt>t' > gsettings set com.github.stunkymonkey.nautilus-open-any-terminal new-tab true > glib-compile-schemas ~/.local/share/glib-2.0/schemas/ > nautilus -q # Alternative to these esoteric commands, settings can be configured using 'dconf-editor' > sudo apt install dconf-editor > dconf-editor > nautilus -q
Four-grid tiling (for GNOME)
For four grid tiling, use GNOME extensions: https://extensions.gnome.org/extension/1723/wintile-windows-10-window-tiling-for-gnome/ Note not necessarily compatible with Ubuntu 21.
Local connector needs to be installed, package listed as chrome-gnome-shell
or gnome-browser-connector
.
Note that this seems to already be natively implemented in Ubuntu 24.04.