Skip to main content

安裝Ubuntu流程

筆者是長期的Ubuntu用戶,由2012年至今已連續用了多年Ubuntu,Ubuntu 每兩年會推出一個LTS(長期支援)版本,為了相容性,筆者每兩年皆會重新安裝電腦(我有分開掛載家目錄/home及根目錄/的習慣,根目錄只預留50GB以下,其餘在家目錄之資料不會受到任何影響,連Chrome的session也原封不動),也趁此機會清除電腦多餘無謂的東西。

這份流程之作用,正在於記錄安裝時要做的每一步驟,作自我參考之用。如果可以幫到正在閱讀的你,就再好不過了。

版本: 以下流程是以Ubuntu 24.04 為基準。

Apt 安裝


sudo apt update && sudo apt upgrade

wget https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher_2.2.0-travis995.0f91801.bionic_amd64.deb -O appimagelauncher_latest_amd64.deb
sudo apt install -y ./appimagelauncher_latest_amd64.deb

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb

wget https://update.code.visualstudio.com/latest/linux-deb-x64/stable -O code_latest_amd64.deb
sudo apt install -y ./code_latest_amd64.deb

sudo apt install -y $(check-language-support -l zh-hant) obs-studio vlc zsh\
krita inkscape shotcut audacity gthumb git\
gnome-shell-extension-manager gir1.2-gtop-2.0 gir1.2-clutter-1.0\
menulibre gromit-mpx xournalpp pdfarranger\
openjdk-21-jdk dotnet-sdk-8.0\
php-cgi php-fpm php curl uidmap\
python-is-python3 python3-pip python3-venv\
tlp zram-config evolution bison

sudo apt purge shotwell

sudo curl -fL -o /etc/apt/trusted.gpg.d/zulip-desktop.asc https://download.zulip.com/desktop/apt/zulip-desktop.asc
echo "deb https://download.zulip.com/desktop/apt stable main" | sudo tee /etc/apt/sources.list.d/zulip-desktop.list
sudo apt update
sudo apt install zulip

wget https://zoom.us/client/latest/zoom_amd64.deb
sudo apt install ./zoom_amd64.deb
sudo apt install -f

sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt-get update
sudo apt-get install syncthing

sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-stable
sudo apt install fsearch-stable

Snap 安裝

snap install spotify && snap install color-picker && snap install signal-desktop
snap remove thunderbird

其他安裝及設定

npm install -g forever pnpm yarn ts-node typescript

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
dockerd-rootless-setuptool.sh install

chsh -s $(which zsh)

AppImage 安裝

Home Directory 軟件安裝

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

增加倉頡輸入法

Region and Language中加入ibus cangjie

設定複合鍵

詳情可以參考另一篇文章