Arch 重裝記錄
最近因疏忽,在更新 bios 時選錯啓動 U 盤,導致我的迷你主機操作系統被格式化,世事難料,大意失荊州。
無奈只能重裝,爲了防止後續不停查找資料,也爲了方便可能幫到的讀者,特記錄一遍 Arch + Labwc 環境的打造過程。
桌面環境最終效果截圖:
1. 下載 Arch 鏡像文件,並刻錄到 U 盤
去 Arch 官網下載 iso 文件,Windows 下使用 Rufus,Linux、macOS 下使用 dd 命令製作啓動盤。
1dd if=/path/to/arch.iso of=/dev/sdX bs=4M status=progress
網上有很多類似資料(小心:sdX 替換成你的U盤設備名,誤操作會格式化硬盤)。
2. 安裝 Arch
電腦從 U 盤啓動後,會進入一個簡單 shell 交互界面,先連上網絡,假設是無線網絡環境:
1iwctl # 進入無線工具
2device list # 查無線網卡名(如 wlan0)
3station wlan0 scan # 掃描WiFi
4station wlan0 get-networks # 列WiFi列表
5station wlan0 connect "WiFi名" # 輸入密碼連接
6exit # 退出工具
7ping archlinux.org # 驗證聯網
確認網絡連接正常,運行 archinstall 根據 TUI 界面的指引配置安裝 Arch,沒什麼難度。
3. 環境打造
光有操作系統,沒有各種軟件也是枉然。
Labwc 窗口管理器
Labwc 窗口管理器,我已經使用好幾年了,相見恨晚。
1sudo pacman -S labwc
paru
方便安裝各種第三方包,比如 wechat-bin。
11. 克隆 Paru 倉庫
2git clone https://aur.archlinux.org/paru.git
3cd paru
4
52. 編譯並安裝(makepkg 會自動處理依賴)
6makepkg -si
快速隱藏/呼出終端
快速隱藏/呼出終端,參考這個文章 使用 wlrctl 配合 labwc 的配置實現,非常好用,誰用誰知道,最高頻。
1git clone https://git.sr.ht/~brocellous/wlrctl
2meson setup --prefix=/usr/local build
3ninja -C build install
科學上網
科學上網利器,沒有這個,不翻牆寸步難行。
1paru -S sing-box
默認 shell 設置
切換默認 shell 爲 fish
1sudo pacman -S fish
2chsh -s /usr/bin/fish
輸入法
東亞人非英語母語,輸入法是剛需, 這部分其實比較複雜,需要單獨寫個文章
1sudo pacman -S fcitx5-rime
2sudo pacman -S noto-fonts-emoji
3paru -S rime-ice-pinyin-git
4fc-cache -fv
5fcitx5 -rd
瀏覽器
平時主要使用 Firefox 和 Chromium
- firefox
1sudo pacman -S firefox
Automatic proxy configuration URL: http://192.168.1.5/proxy.pac
配置網絡代理,這個是我自己習慣的,http://192.168.1.5/proxy.pac 爲樹莓派上跑的自動代理,非常好用,可以搜索我往期資料。
- chromium
1sudo pacman -S chromium
配置自動代理:
1➜ ~ cat ~/.config/chromium-flags.conf
2--proxy-pac-url="http://192.168.1.5/proxy.pac"
剪切板
剪切版工具,寫過相關推薦文章, clipcat 很好用。
1sudo pacman -S clipcat
labawc 皮膚
參考這個文章:https://mephisto.cc/tech/labwc-theme/
截圖等工具
1sudo pacman -S ksnip flameshot
登出和鎖屏界面
wlogout swaylock
1paru -S wlogout
2sudo pacman -S swaylock
壁紙
使用 wpaperd, 也寫過相關文章
1sudo pacman -S wpaperd
其它
waybar 狀態欄、啓動器 rofi、各種開發工具等,懶得寫了,不是每個人都需要
1sudo pacman -S waybar alacritty rust go atuin ttf-hack-nerd git rofi tmux cmake meson less obsidian hugo man-db man-pages strace
遊戲
- SuperTuxKart
一個休閒賽車遊戲
1sudo pacman -S supertuxkart
- steam
1sudo pacman -S steam
2首次啓動steam,請翻牆,否則更新客戶端奇慢
圖片編輯
- 命令行工具
imagemagick
1sudo pacman -S imagemagick
- 圖形化工具
Gimp 和 Inkscape
1sudo pacman -S gimp inkscape
直播錄屏
obs-studio 依賴 xdg-desktop-portal
1sudo pacman -S xdg-desktop-portal
2sudo pacman -S xdg-desktop-portal-wlr
3sudo pacman -S obs-studio
git 代理設置
現在 Github 被牆,需要設置全局代理。
1git config --global https.proxy http://192.168.1.5:1081
2git config --global https.proxy https://192.168.1.5:1081
網絡設置
此部分需要單獨寫個文章
1sudo pacman -S networkmanager dnsmasq
未完,待續.....
版權申明:
- 未標註來源的內容皆為原創,未經授權請勿轉載(因轉載後排版往往錯亂、內容不可控、無法持續更新等);
- 非營利為目的,演繹本博客任何內容,請以'原文出處'或者'參考鏈接'等方式給出本站相關網頁地址(方便讀者)。
相關文章:
- Rofi試用
- 我的工具箱
- Arch linux下iNode客戶端的安裝和使用方法
- Labwc更換定製皮膚
- 網站導航欄防止插入Adsense自動廣告
- MangoHud性能監控
- Arch Linux SSL VPN 客戶端配置
- Linux環境下維護公衆號記錄
- Linux環境按鍵檢測
- Ubuntu 切換系統語言