Skip to content

System

Linux Bookmarks

Stuff related to GNU/Linux.

Install Linux

USB burning tools

The following tools make installation USB keys from ISO files.

  • Ventoy : an open source tool to create a bootable USB drive loading ISO files in the partition.
  • Rufus : flashing Linux/Windows ISOs in Windows.
  • Etcher : flashing Linux ISOs in Linux/Windows.
  • Gnome disks

Linux Wikis and forums

Command lines and shell scripting

Linux Input Methods

Input methods enable multilingual inputs, including CJK (Chinese, Japanese, and Korean).

Fcitx5

Fcitx is a lightweight input method framework that provides environment-independent language support for Linux. The development energy mainly focuses on the release of the new version 5.

Install

command -v apt && sudo apt install fcitx5 fcitx5-chewing fcitx5-material-color
command -v pacman && sudo pacman -S fcitx5-im fcitx5-chewing fcitx5-material-color

Setup

Add the following lines to ~/.xprofile or ~/.profile if fcitx does not load on startup.

/etc/profile
export INPUT_METHOD=fcitx5
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=\@im=fcitx5

Ibus

ibus is an input method framework using DBUS. ibus integrates better with the GNOME desktop environment.

Install

command -v apt && sudo apt install ibus ibus-chewing
command -v pacman && sudo pacman -S ibus ibus-chewing

Setup

Add these lines to ~/.xprofile or ~/.profile if ibus does not load on startup.

.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=\@im=ibus
ibus-daemon -drx

Linux Themes

Best GTK themes from Its FOSS

Papirus icon theme and Kvantum SVG engine

Install (Ubuntu)

sudo add-apt-repository -y ppa:papirus/papirus           # Papirus icon theme
sudo apt update && sudo apt install -y papirus-icon-theme qt5-style-kvantum qt5ct

Materia theme

A clean theme for both KDE and Gnome.

Install (Ubuntu)

sudo add-apt-repository -y ppa:papirus/papirus
sudo apt update && sudo apt install materia-gtk-theme materia-kde

Set fonts

Fonts for materia theme:

  • To properly display the theme, use a font family that includes Medium weight (e.g. Roboto or M+).
  • Set the font size to 9.75 (= 13px at 96dpi) or 10.5 (= 14px at 96dpi).

Qogir theme

vinceliuice/Qogir-theme is a flat Design theme for GTK.

Install (Ubuntu)

Download and run the install script from vinceliuice/Qogir-theme.

Change user directory

Use sudo and at to schedule the usermod command, which changes the user's home dir.

sudo at "now +5 minutes"  # Run the following commands in 5 minutes

In the at interface

pkill -u UID            # kill user processes
usermod -m -d /new/home # Change user home dir (-d) and move (-m) the content into the new folder

Ctrl+D to exit the at interface. Logout, wait 10 minutes, and login.

See also

heredoc: Passing multiple lines of string

Use heredoc to pass the string as-is between two delimiters (e.g. EOF)

cat << "EOF" >> ~/.xprofile
# ~/.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon -drx
EOF

Will append the following lines to ~/.xprofile:

.xprofile
export GTK_IM_MODULE=ibus
export QT_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
ibus-daemon -drx