1. 更換軟件源
- 編輯
/etc/pacman.d/mirrors
, 在最上方添加兩行源地址
## 阿里雲
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
## 清華大學
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
- 添加
archlinuxcn
軟件源:
編輯/etc/pacman.conf
,在最下方添加:
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
- 更新軟件源並導入公鑰:
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
2. 安裝輸入法
我選擇的是搜狗拼音輸入法
sudo pacman -S fcitx-sogoupinyin
sudo pacman -S fcitx-im
sudo pacman -S fcitx-configtool
- 修改
~/.profile
,在最下方添加:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
3. 安裝zsh
zsh
安裝:
sudo pacman -S zsh git
oh my zsh
安裝:
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- 切換:
chsh -s /bin/zsh
4. 安裝NVIDIA顯卡驅動
我筆記本是雙顯卡,Manjaro雖然自帶硬件管理,但無法在兩個顯卡之間自由切換,按照ArchLinux Wiki給出的方法,只有Bumblebee方案成功,囧rz。。。
- 在確保能進入桌面的情況下安裝:
sudo pacman -S bumblebee bbswitch
- 把用戶添加到bumblebee組裏:
sudo gpasswd -a XXX bumblebee //XXX是用戶名
- 啓動bumblebeed服務
sudo systemctl enable bumblebeed.service
- 安裝依賴
sudo pacman -S bumblebee nvidia opencl-nvidia lib32-nvidia-utils lib32-opencl-nvidia mesa lib32-mesa-libgl xf86-video-intel
- 配置bumblebee:
編輯/etc/bumblebee/bumblebee.conf
,修改以下內容:
Driver=nvidia # 指定nvidia
[driver-nvidia]
PMMethod=bbswitch # 電源管理指定bbswitch
- 重啓
- 開啓NVIDIA顯卡
sudo tee /proc/acpi/bbswitch <<< ON
- 查看顯卡狀態
nvidia-smi
- 關閉NVIDIA顯卡
sudo tee /proc/acpi/bbswitch <<< OFF
5.Steam配置
Manjaro自帶Steam,雙擊打開之後出現一個License界面之後再也沒有反應,通過谷歌之後發現是缺少依賴:
sudo pacman -S steam-native-runtime
steam_install_workaround
等待依賴安裝完成後就可以發現steam已經正常打開