源设置
-
首先更换源地址为国内地址,执行完会弹出一个框选择,一般选择前3个即可
1 2 3
sudo pacman -Syy sudo pacman-mirrors -i -c China -m rank sudo pacman -Syyu
-
添加aur的源,aur就是各种第三方软件包的源,正是因为aur,arch linux才有如此多的软件可供下载
1 2 3 4
编辑/etc/pacman.conf文件,加入下面的内容: [archlinuxcn] SigLevel = Optional TrustAll Server = https://mirrors.sjtug.sjtu.edu.cn/archlinux-cn/$arch
执行
sudo pacman -S archlinux-keyring && sudo pacman -Syyu
此时系统更新完毕,接下来需要安装必需软件
必需软件
输入法
-
安装fcitx5:
1
sudo pacman -S fcitx5-im fcitx5-chinese-addons fcitx5-pinyin-zhwiki
-
设置环境变量,在
~/.pam_environment
文件(如果文件不存在就新建一个)末尾加上:1 2 3 4 5
GTK_IM_MODULE DEFAULT=fcitx QT_IM_MODULE DEFAULT=fcitx XMODIFIERS DEFAULT=\@im=fcitx SDL_IM_MODULE DEFAULT=fcitx export QT_IM_MODULE=fcitx5
- 在
~/.xprofile
文件中添加1 2 3
export GTK_IM_MODULE=fcitx5 export QT_IM_MODULE=fcitx5 export XMODIFIERS="@im=fcitx5"
-
安装系统依赖库
pacman -S --needed base-devel
-
卸载iBus
pacman -Rs iBus
- 重启电脑后打开fcitx5的设置,添加输入法
git
- git config –global credential.helper store
- git config –global https.proxy 127.0.0.1:7890
Shell
-
安装oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
-
安装powerline shell
1 2
sudo pacman -S python-pip pip install powerline-shell
然后在.zshrc文件中添加以下内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
function powerline_precmd() { PS1="$(powerline-shell --shell zsh $?)" } function install_powerline_precmd() { for s in "${precmd_functions[@]}"; do if [ "$s" = "powerline_precmd" ]; then return fi done precmd_functions+=(powerline_precmd) } if [ "$TERM" != "linux" ]; then install_powerline_precmd fi
执行
source .zshrc
安装自动补全和高亮插件
1 2
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
编辑.zshrc,添加
plugins=(zsh-autosuggestions zsh-syntax-highlighting)
独显驱动
- 查询可用驱动
mhwd -l -d --pci
- 安装驱动
sudo mhwd -i pci video-nvidia
- 重启
科学上网
- 下载ShadowSocks-qt5
- 添加代理服务器
- 浏览器下载switchyOmega插件,设置代理地址端口为软件里配置的地址
-
在/etc/profiles或者.zshrc里添加
1 2
export http_proxy="socks5://127.0.0.1:7890" export https_proxy="socks5://127.0.0.1:7890"
或者
- 下载Clash for windows
- 导入配置文件
- 设置系统代理
-
在/etc/profiles或者.zshrc里添加
1 2
export http_proxy="https://127.0.0.1:7890" export https_proxy="https://127.0.0.1:7890"
其他配置
- Gnome-tweaks里设置合盖不睡眠(如果硬件睡眠会导致无法唤醒)
- Gnome-extension里设置dock栏位置和大小
- Gnome-extension里开启places status indicator
- Gnome-extension安装Clipboard Indicator
- Gnome-extension开启ArcMenu
- Gnome-extension安装Vitals
常用软件
- Firefox(自带)
- Java11
- Docker
Electron-ssr// 已不维护- ShadowSocks-qt5
- Clash for windows(推荐)
- Typora
- Vlc
- Telegram
- Jetbrains toolbox
- Data grip
- Dbeaver
- Apifox
- Deepin-wine-wechat
- Chrome
- Albert
- Onedrive
- Wps
Flameshot