April 15, 2021

Adding custom sound effects to macOS

In order to add custom sound effects to macOS, you need to copy the new sound files into the directory "~/Library/Sounds/" located in your home directory. The file name will be used to designate the new sound effect in the Sound panel of the System Preferences dialog. You can then select this new sound effect as the default alert sound.

Note that sound effect files need to be in the AIFF format; files in this format can be created via the iTunes application. Moreover, sample AIFF files can be found in the "/System/Library/Sounds/" which contains the built-in macOS sound effects.

December 23, 2020

File userChrome.css not working for Thunderbird/Firefox

Newer versions of Thunderbird and Firefox (starting around 2019) disable by default the loading of the 'userChrome.css' file used to configure display preferences. To enable it, you must enable via the Config Editor the setting called toolkit.legacyUserProfileCustomizations.stylesheets.

Reference: https://www.userchrome.org/how-create-userchrome-css.html

September 29, 2018

Display unified CJK characters in macOS terminal as Japanese characters

Without some specific language information (such as the "lang" attribute in HTML), unified CJK Unicode characters are displayed by default in a generic manner. However, users of a certain language would prefer to see the particular character version for that language even in the terminal.

This is possible in macOS by adding that language as a preferred one. For example, in order to display unified CJK characters in a macOS terminal as Japanese characters, you have to:
  • Go to System Preferences > Language & Region
  • Add the Japanese language to the "Preferred languages" panel

Note that you will need to restart the Terminal app before changes take effect.

June 24, 2017

Disable password prompting for updates in Ubuntu

If you want to run the Synaptic packet manager in Ubuntu/Lubuntu without it requiring a password, you must add a PolicyKit local definition. For this purpose create a file, named for instance /etc/polkit-1/localauthority/50-local.d/allow-user-update-wo-password.pkla, and add the following content to it:
[Allow User Updates Without Password]
Identity=*
Action=com.ubuntu.pkexec.synaptic
ResultAny=no
ResultInactive=no
ResultActive=yes

February 4, 2017

Customize GRUB2 menu colors in Ubuntu

The procedure for customizing GRUB2 menu colors in Ubunt is as follows:
1) Edit (or create) the file "/lib/plymouth/themes/default.grub" to add the appropriate menu color information.
Example:
# Color of the highlighted menu entry and its background within the menu box
set menu_color_highlight=yellow/dark-gray
# Color of non-selected menu entries within the menu box
set menu_color_normal=black/light-gray
# Color of the text and background outside the menu box
set color_normal=light-gray/black
2) Regenerate the the grub configuration file by running 'sudo update-grub'.