My personal Linux environment setup for a new computer. It might be useful for you.
Depend on each section, there are some specific files in this repo which guide you in detail.
Update package information from Internet.
Fedora:
# FEDORA
sudo dnf update
# UBUNTU
sudo apt update
# MANJARO
# choose the best system mirrorlist
sudo pacman-mirrors --fasttrack
# or using specific countries
sudo pacman-mirrors --country Singapore,Philippines,Taiwan,China,South_Korea,Japan,Australia,Global
sudo pacman -Syy
Adjust wrong time between Linux and Windows (dual boot).
timedatectl set-local-rtc 1 --adjust-system-clock
Remove unwanted fonts:
- Noto suite.
- Adobe Source Han.
- Terminus.
Chosen method: ibus-bamboo.
Follow instructions from this link:
https://github.com/BambooEngine/ibus-bamboo
Goto system settings:
- Add ibus-bamboo to "input source".
- Config keyboard shortcut for switching between input sources.
Note: Goto system settings.
- Ctrl + Alt + T: terminal.
- Super + E: file manager (or home folder).
- Super + W: web browser.
- Super + T: text editor (mousepad).
- Super + Y: text editor (gedit).
- Ctrl + Shift + Esc: launch system monitor.
- Super + D: hide all windows.
- Super + I: system settings.
- Alt + Tab: switch between windows.
- Super + Tab: switch between applications.
- Super + Left: view split on left.
- Super + Right: view split on right.
- Super + Up: maximize window.
- Alt + Space: activate the window menu.
Fedora: Edit file /etc/dnf/dnf.conf
fastestmirror=True
max_parallel_downloads=10
App: Variety.
Homepage: https://peterlevi.com/variety
Notes for Manjaro GNOME:
To run Variety correctly, we run it in terminal to see all output messages.
Before installing Variety, we may install its dependencies: package python-pip
Variety might not display its icon on topbar, to fix this:
- Make sure the GNOME app
Extensionswas installed- Fedora:
sudo dnf install gnome-extensions-app
- Fedora:
- Check GNOME shell version:
gnome-shell --version - Download GNOME extension "AppIndicator" that matches the GNOME shell version
- Link: https://extensions.gnome.org/extension/615/appindicator-support
- Extract compressed file. Note the
uuidfield in themetadata.json, it will be the name of directory of the extension - Move extracted data to
$HOME/.local/share/gnome-shell/extensions/appindicatorsupport@rgcjonas.gmail.com - Turn on the extension via app
Extensions(may need to logout/login)
- (Optional) Run Variety with
GDK_BACKEND=x11:GDK_BACKEND=x11 variety, orenv GDK_BACKEND=x11 variety
INTERNET BROWSERS:
- Chrome
- Brave
- Firefox
FONTS:
-
List of fonts:
- Monospace: JetBrains Mono, Roboto Mono, Consolas
- Noto suite (to support multiple languages)
- DejaVu suite (great display font)
- Droid suite (to support multiple languages, a lightweight alternative of Noto suite)
- Liberation suite (a "standard font suite" for many Linux distros)
- Sans: Source Sans
- Serif: Source Serif
-
Note: After installing fonts, rebuild font cache:
fc-cache -f -v -
List of softwares:
- gnome-font-viewer
- font-manager (https://github.com/FontManager/font-manager)
OFFICE:
- Libre Office
GRAPHICS:
- GIMP
- inkscape
AUDIO AND VIDEO:
- Player:
- VLC media player (
vlc) - SMPlayer (
smplayer)
- VLC media player (
- Audio:
- Video:
- AviDemux
- MKVToolNix
- Inviska MKV Extract
- Lib:
- ffmpeg
DISK DRIVE:
- GParted
- baobab (Disk Usage Analyzer)
UTILITIES:
- Text editor:
mousepad,gedit - Editor (cmd):
vim - Archiver:
file-roller, peazip - Archiver (cmdline):
p7zipor7z,unrar - Clipboard tool:
wl-clipboard - PDF reader: Okular, Evince
- Photos: Eye of Gnome (
eog), gThumb - System monitor & info:
gnome-system-monitor,bpytop,htop,neofetch - Nautilus context menu manager:
actions-for-nautilus(deprecated:filemanager-actions) - List directory/file tree:
tree - Encryption:
openssl - Multimedia:
ffmpeg,ffmpeg-libs- Fedora:
sudo dnf install --allowerasing ffmpeg ffmpeg-libs x265-libs libde265
- Fedora:
- Nautilus video thumbnail generation:
ffmpegthumbnailer - Dconf editor:
dconf-editor - File/dir diff comparison tool: meld
- Hex editor: Okteta
- Prevent computer from sleeping: caffeine
- Remote desktop: AnyDesk
- Screen recorder: OBS, vokoscreenNG
- wine & winetricks
- Clean disk:
bleachbit - Photo management and enhancement:
darktable - Locate file fast:
mlocate- Run command:
locate file-name - Note:
sudo updatedbfirst
- Run command:
AUTHENTICATOR:
- (Chrome extension) Authenticator
- Author: authenticator.cc
- Link
Read zsh.md.
Read terminal.md.
Read dev.md.
-
Fedora/Manjaro:
- Prevent suspend when lid close.
- Edit file
/usr/lib/systemd/logind.conf(remember to backup first), set 3 config lines:- HandleLidSwitch=ignore
- HandleLidSwitchExternalPower=ignore
- HandleLidSwitchDocked=ignore
- Edit file
- Avoid frustrating when user enters incorrect password for many times.
- First, have a look at the output from
cat /etc/pam.d/loginto make sure that you usepam_faillock.so. - Edit file
/etc/security/faillock.conf - Set
deny = 0
- First, have a look at the output from
- Prevent suspend when lid close.
-
Web browser:
- Home page: turn off unwanted things.
- Languages ⟶ spell checking: turn off.
-
File manager:
- Add entries into context menu in Nautilus.
- References: actions-for-nautilus
-
Libre Office:
- Disable spell checking (Tools ⟶ Automatic Spell Checking).
-
Settings:
- Set default apps:
- Web: Chrome
- Music, Video: VLC media player
- Photos: Eye of Gnome (Image Viewer)
- Text Editor: mousepad (command:
xdg-mime default org.xfce.mousepad.desktop text/plain)
- Power:
- Blank Screen: Never
- Automatic Suspend: Off
- Power Button Behavior: Nothing
- Lid-closing behaviour (systemd):
- Edit this file using root:
/etc/systemd/logind.conf - Set config
HandleLidSwitch=ignore(may uncomment the line first) - Restart computer
- Edit this file using root:
- Set default apps:
Theme:
-
Theme directory location:
- Global:
/usr/share/themes - Local:
~/.themes
- Global:
-
Icon directory location:
- Global:
/usr/share/icons - Local:
~/.icons
- Global:
For GNOME: Execute app "Extensions" and config as my taste.
- Extension "Dash to Dock": Decrease size, make it transparent.
To change font weight of GTK theme, especial file manager, we need to edit or create file: ~/.config/gtk-3.0/gtk.css.
* { font-weight: 500; }
.nautilus * { font-weight: 500 }
.thunar * { font-weight: 500 }
XfdesktopIconView.view { font-weight: 500 }
Read x11-compatibility-in-wayland.md.
Create directory $HOME/app/shscript
Create file $HOME/.profile with this contents:
export JAVA_HOME=....
export GRADLE_HOME=...
export MYAPP_SH_HOME=$HOME/app/sh
export PATH="$MYAPP_SH_HOME:$JAVA_HOME/bin:$GRADLE_HOME/bin:$PATH"Create file $HOME/.zprofile with this contents:
source $HOME/.profilelsblk -o name,mountpoint,label,size,uuid to get partition info.
Edit file /etc/fstab by root, add these lines:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=... /d1 ntfs defaults,noatime 0 0
UUID=... /d2 ntfs defaults,noatime 0 0
UUID=... /lidata ext4 defaults,noatime 0 0