系统版本

更换国内源

1
sudo pacman-mirrors -i -c China -m rank

添加 archlinuxcn 源,antergos源,arch4edu源

  • 编辑 /etc/pacman.conf 添加以下内容

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    [archlinuxcn]
    SigLevel = Optional TrustedOnly
    #中科大源
    Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
    #清华源
    Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch

    [antergos]
    SigLevel = TrustAll
    Server = https://mirrors.tuna.tsinghua.edu.cn/antergos/$repo/$arch

    [arch4edu]
    SigLevel = TrustAll
    Server = https://mirrors.tuna.tsinghua.edu.cn/arch4edu/$arch
  • 防止签名错误

    1
    sudo pacman -S archlinuxcn-keyring

更新源列表

1
sudo pacman-mirrors -g

更新系统

1
sudo pacman -Syyu

安装软件

  • sudo pacman -S base-devel

  • 包管理工具 yay sudo pacman -S yay

  • 显示有关相应系统的简要信息工具 neofetch yay -S neofetch

  • 谷歌浏览器 yay -S google-chrome

  • neovim yay -S neovim

  • 中文输入法 fcitx-im yay -S fcitx-im

    • 设置 IM 环境变量

    • nvim ~/.pam_environment 添加以下内容

      1
      2
      3
      GTK_IM_MODULE DEFAULT=fcitx
      QT_IM_MODULE DEFAULT=fcitx
      XMODIFIERS DEFAULT=\@im=fcitx
    • 重启电脑

  • 安装 fcitx 的GUI配置工具 yay -S kcm-fcitx fcitx-configtool

  • Fcitx 自带剪贴板,其快捷键为 Ctrl + ;, 小小功能拯救世界。

  • 云拼音 fcitx-cloudpinyin yay -S fcitx-cloudpinyin

    • 安装好后重启fcitx,进入配置切换云拼音来源为百度,默认是Google
  • 终端文件管理器 ranger yay -S ranger

  • windows模拟器 wine yay -S wine wine-gecko wine-mono

  • ocs-url yay -S ocs-url

  • nodejs yay -S nodejs npm

  • deb包转换工具 debtap yay -S debtap

  • dmenu rofi feh picom w3m python-pip bat

  • deepin-wine-qq 安装好后是一个安装包,安装包安装好后重启系统或者等一会才能打开,不然会报错,报错就重启系统就行了

  • ffmpegthumbnailer

  • mpv ttf-font-awesome ttf-font-icons

  • xorg-xrandr

  • gvim

  • pip install quickswitch-i3 i3-py 在用demu的时候使用的脚本

  • yay -S wqy-microhei wqy-bitmapfont wqy-zenhei wqy-microhei-li

  • yay -S adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts

配置zsh

安装oh-my-zsh

  • git clone https://gitee.com/huang_jian_hua/oh-my-zsh.git
  • 运行 oh-my-zsh/tools/install.sh
  • 安装完毕删除 oh-my-zsh 文件夹
  • 使用konsole的需手动更改bash为zsh

安装语法高亮和自动建议插件

  • oh-my-zsh插件安装方法

    1. 将插件放到~/.oh-my-zsh/custom/plugins/
    2. 在配置文件~/.zshrc里添加插件名称
  • 进入 ~/.oh-my-zsh/custom/plugins/

  • 自动建议 git clone https://gitee.com/huang_jian_hua/zsh-autosuggestions.git

  • 语法高亮 git clone https://gitee.com/huang_jian_hua/zsh-syntax-highlighting.git

  • 配置文件 71行 修改为plugins=(git zsh-syntax-highlighting zsh-autosuggestions)

  • 重启终端

配置zsh主题

  • .zshrc 文件第11ZSH_THEME="robbyrussell"
  • 修改成random为随机主题
  • 可填参数在~/.oh-my-zsh/themes文件夹里面可自行查看
  • 自定义的主题应该放在~/.oh-my-zsh/custom/themes

配置ranger

  • 生成配置文件
    • ranger --copy-config=all
  • 安装文件图标
    • 终端字体需换成Nerd Font字体
    • 运行以下两句命令
      • git clone https://gitee.com/huang_jian_hua/ranger_devicons.git ~/.config/ranger/plugins/ranger_devicons
      • echo "default_linemode devicons" >> $HOME/.config/ranger/rc.conf
    • 重启ranger
  • 修改配置文件 rc.confscope.sh

美化折腾

动态壁纸

  1. 右键桌面
    gYPh0f.png

  2. 获取新插件
    gYPRXt.png

  3. 安装插件
    gYPfnP.png

  4. 选择壁纸类型
    gYP26I.png

  5. 选择视频文件
    gYPg1A.png

如果是在vmware的话,安装open-vm-tools

yay -S open-vm-tools
systemctl enable vmtoolsd.service
systemctl start vmtoolsd.service