This is a quick reference for various things I've done to install, update, configure, and use Ubuntu 24.04LTS. It is definitely not meant to be comprehensive.
Most things I don't do very often, and since my wetware memory has intermittent problems, this has been a great time-saver for refreshing my knowledge.
https://releases.ubuntu.com/24.04/, download
64-bit PC (AMD64) desktop image, to
Downloads/ubuntu-24.04.1-desktop-amd64.iso.
If drive contains data, unmount it: (e.g. umount /dev/sdb1
):
Configure — System filesbelow for suggestions) into the writable partition on the USB.
Do not enable any internet connection yet. (something breaks later on during the install).
Use USB drive to install Ubuntu.
I used the suggested defaults, including wiping the existing disk and having only one partition. It might be better to have a separate partition for user data though.
Install device drivers (e.g. for WiFi).
Get software that Ubuntu can't install by default for legal reasons.
Update as necessary based on previous incarnation saved on the writable partition on the USB:
Change sudo timeout (e.g. to 60 minutes):
If there is a lot of RAM available:
Put /tmp into RAM (it will be deleted at each reboot):
Discourage swapping:
Verify:
Make the Grub output legible on a 4K screen. (This patch sometimes goes away without warning.)
gnome-tweaks
is a graphical interface for configuring the gnome desktop.
Focus windows without raising them.
There's a lot of room available for the full clock. [???? How ????]
Dock appearance. [??? How ???]
Not-in-use power settings. [??? How ???]
Turn down volume on obnoxious alert sound. [??? How ???]
Add window borders (needed for white-on-black mode). [??? still needed ???]
Remove Trash icon from dock. [??? How ???]
Make dash icon click minimize all related windows.
Make the pointless CapsLock key work as a Ctrl key.
Make NumLock stay on at boot time. [??? doesn't work ???]
Set the compose key (for ~/.XCompose).
Disable search database (resource intensive; I don't use it).
Disable fingerprint daemon.
To purge snapd:
For UW/MFCF commands, copy:
Fetch latest list of software packages, and then upgrade those that need it.
Enable the crontab log.
The cron uses mail to deliver error messages, and complains about "No MTA" if there isn't one. [??? not needed ???]
When the postfix installation asks, select local delivery only.
Find what is available from a server (NFS or SAMBA):
Settings → Sharing → Media → enable Media Sharing
If /net exists, references to /net/hostname/directory will automaticaly perform the NFS mount if it is available.
If /cifs exists, references to /cifs/hostname/folder will automaticaly perform the Samba CIFS mount if it is available.
If Windows shares aren't being detected, StackExchange suggests adding this line:
This method allows quick restores and version comparisons by standard CLI commands.
Run this script once a day from the root crontab:
The available versions are easy to find:
The monthly consolidations (e.g. 2018-12) can be retained for a while, and the daily backups deleted as necessary after a few months.
Jobs more than 3 hours old are automatically cleaned from print queues. Change the 10800 seconds default to 0 seconds to disable this feature. Allow other local network users to use the printer.
Set up daemons:
sane-utils
is for a scanner. Version numbers might vary.
To test input events and devices:
To access the Consumer InfraRed sensor:
For the jot command:
For the urlencode command:
For the jq command:
For the convert command (to allow editing PDFs):