This is a quick reference for various things I've done to install, update, configure, and use Ubuntu 18.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/18.04/, download
64-bit PC (AMD64) desktop image, to
Downloads/ubuntu-18.04.1-desktop-amd64.iso.
If drive contains data, unmount it: (e.g. umount /dev/sdb1
):
Use USB drive to install Ubuntu.
I used the suggested defaults, including wiping the existing disk and having only one partition.
Get software that Ubuntu can't install by default for legal reasons.
Get software that Ubuntu can't install by default for legal reasons.
Install device drivers (e.g. for WiFi).
Update as necessary based on previous incarnation:
Change sudo timeout (e.g. to 60 seconds):
We have lots of RAM, so put /tmp there:
Create a new 8 GB swap file:
Reduce the need to swap:
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.
Dock appearance and power settings.
Make dash icon click minimize all related windows.
Add window borders (needed for white-on-black mode).
Make the pointless CapsLock key work as a Ctrl key.
Make NumLock stay on at boot time.
Set the compose key (for ~/.XCompose).
Fetch latest list of software packages, and then upgrade those that need it.
Enable the crontab log.
gsd-housekeepin[2188]: Failed to enumerate children of /tmp/systemd-private-...: Error opening directory '/tmp/systemd-private-...': Permission denied
Janne Snabb recommends disabling the service:
The cron uses mail to deliver error messages, and complains about "No MTA" if there isn't one.
When the postfix installation asks, select local delivery only.
Find what is available from a server (NFS or SAMBA):
Settings → Sharing → Media):
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 is good for convenient restores using the Files GUI, but it uses a lot of space, and the saved data is not kept in a format that is easily acessible by other means.
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:
sane-utils
is for a scanner. Version numbers might vary.
To test input events and devices:
To access the Consumer InfraRed sensor:
To allow Chrome to access phone dialer.
For the jot command:
For the urlencode command:
For the jq command:
For displaying jpeg metadata.
For displaying mp3 metadata.
Most of these are of the everyone knows that
category.
But when one does something only once a year or so, it's nice to have a reminder that one really does know it.
Format ctime:
Show drives and partitions:
If file is guaranteed not to contain whitespace:
If file might contain whitespace:
(%
is any character not contained in the ...
s.)