Linux Mint Notes
Here is a collection of Linux Mint notes on a variety of topics. I only tried these on the amd64 Cinnamon editions, and there may be some mistakes and omissions; please remember to backup your files before making any system changes!
Configure Redshift Manually#
Redshift is great for eye comfort in the evening, and sometimes I use it all day. Sadly, the internet location server it uses to determine dawn and dusk times has been retired in 2024, which makes Redshift crash at launch on Linux Mint 21 and 22.
Luckily, you can set the dawn and dusk times manually in $HOME/.config/redshift.conf
and then Redshift and Redshift-GTK work as expected:
1 2 3 4 5 6 |
|
Disable Swap on Linux Mint 19#
My computer doesn't have a lot of RAM, but I don't run anything too intense either. Since I do not need swap space, I would rather get the storage space back. However small that space is, now it will be put to good use by the SSD's wear leveling system.
The Linux Mint 18 installer lets you choose not to use a swap partition, but Linux Mint 19 always uses a swap file located at /swapfile
instead of a separate file system partition. Here are the steps I used to turn it off:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
At first I only ran sudo swapoff -a
without editing the files. This caused some issues that added 30 seconds to the kernel boot time according to systemd-analyze
! The boot time is back to normal after doing all the others steps.
Fix Oversized Icons in the Cinnamon Panel#
When I upgraded to Cinnamon 4.4.8, I noticed that some of the panel tray icons, like WiFi, Battery, and Sound, were much larger than the others. This started to bother me after a while since Cinnamon otherwise looks so nice; here are the steps to fix this:
- Right-click panel, select Panel settings
- Under the Panel appearance section select the Left/Center/Right Zone
- Edit the Symbolic icon size (px) value as appropriate
Before:
After:
Standard color icons have a handy option to auto-scale, but you have to adjust symbolic icons' size manually to absolute values.
Show the Time and Git Branch on the Shell Prompt#
I customized my Bash prompt to show the current time at the start of every line, and if inside a Git repo also the name of the current branch. This goes at the end of ~/.bashrc
(to override any previously set PS1
, the env var for the prompt's format string),
1 2 3 4 5 6 |
|
The shell prompt should look something like this now:
1 2 3 4 |
|
Convenient Single-Letter Git Command Aliases#
I also keep a few short shell aliases for the Git commands I use the most day to day. All of them are for read-only actions - muscle memory for repetitive things is nice and all, until you get burned that one time at 1am...
1 2 3 4 5 6 |
|