Ubuntu postinstall
Things to do after installing
Make software repo point to NCHC for faster network speed
You can replace archive.ubuntu.com with a closer mirror, e.g., tw.archive.ubuntu.com or free.nchc.org.tw in /etc/apt/sources.list.d/ubuntu.sources. After you are done, run:
sudo apt clean && sudo apt update && sudo apt full-upgrade -yInstall 3rd party apps
First, install required package
sudo apt update && sudo apt install -y apt-transport-https ca-certificates curl git gnupg-agent software-properties-commonBrave browser
Setup Brave browser
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list > /dev/null
sudo apt update && sudo apt install -y brave-browserqBittorrent
sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
sudo apt update && sudo apt install -y qbittorrentTelegram messenger
Download and run the official binaries.
Xanmod Linux kernel
Xanmod is a general-purpose Linux kernel distribution with custom settings and new features.
curl -fsSL https://dl.xanmod.org/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/xanmod-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/xanmod-keyring.gpg] http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list > /dev/null
sudo apt update && sudo apt install -y linux-xanmodAMD and Intel open-source GPU library (Mesa)
Install the latest Mesa open source GPU drivers from the kisak PPA
sudo add-apt-repository -y ppa:kisak/kisak-mesa
sudo apt update && sudo apt full-upgrade -yWine and 32-bit games support
sudo dpkg --add-architecture i386sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.keysudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/noble/winehq-noble.sources
sudo apt update && sudo apt install wineKubuntu backports
Kubuntu backports: Latest versions of KDE framework and APPs
sudo add-apt-repository -y ppa:kubuntu-ppa/backports
sudo apt-get update && sudo apt full-upgrade -yLatest kernel
Install Hardware Enablement (HWE) kernels: https://ubuntu.com/kernel/lifecycle
sudo apt install --install-recommends linux-generic-hwe-$VERSIONWhere $VERSION is the Ubuntu version.
Update your system and install packages
sudo apt update && sudo apt full-upgrade -yUbuntu:
sudo apt install -y git git-lfs cifs-utils ssh nala gnome-shell-extension-manager parallel baobab ncdu synaptic apt-xapian-index ppa-purge ubuntu-restricted-extras ffmpeg vlc mcomix fonts-wqy-microhei fonts-wqy-zenhei fonts-open-sans ttf-mscorefonts-installer zsh btrfs-compsizeKubuntu:
sudo apt install -y git git-lfs cifs-utils ssh nala parallel ncdu kio-extras gnome-keyring ppa-purge kubuntu-restricted-extras ffmpeg vlc fonts-wqy-microhei fonts-wqy-zenhei fonts-open-sans ttf-mscorefonts-installer zsh btrfs-compsize synaptic apt-xapian-indexSystem tweaks
- [[linux-input-methods]]
- [[linux-themes]]
Fix locales
Uncomment the zh_TW line in /etc/locale.gen. Then run:
sudo locale-genFinally, install the Traditional Chinese locale in Language Support and then set locale to Taiwan.
(Optional) Remove snap
List snap packages
snap listUninstall each Snap package
sudo snap remove --purge $PKGStop the snapd service and uninstall it
sudo systemctl stop snapd
sudo apt remove --autoremove --purge snapd
sudo apt-mark hold snapdTerminal
- Nerd fonts
- https://github.com/denysdovhan/one-gnome-terminal : One Dark color theme for gnome-terminal
Temporary files in RAM disk
Setting tmpfs (RAM disk) for /tmp folder:
sudo cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/
sudo systemctl enable tmp.mountDisable Extended Security Maintenance (ESM)
sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf /etc/apt/apt.conf.d/20apt-esm-hook.conf.disabledDisable cloud-init
sudo touch /etc/cloud/cloud-init.disabledAutomatic updates
sudo apt install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgradesGnome shell extensions
YOu can also search and install extensions via gnome-shell-extension-manager
- User themes
- Lock Keys
- Applications Menu : a category-based menu for applications.
- Dash to panel : an icon taskbar for Gnome Shell.
- Arc Menu an application menu for GNOME Shell
- Material shell tiling windows.
Kubuntu System Settings
- Double click to open files instead of single clicks:
Workspace behavior=>General behavior=>click behavior. - Start with an empty session in
Desktop session.
Making system more responsive
Replace the line in /etc/default/grub
Gaming:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash preempt=full"Virtualization:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash preempt=full Nohz_full=all"Then run:
sudo update-grub