教程

换源

1
sudo pacman-mirrors  -c China -m rank

AUR

使用 工具 pamac

  • search

    • pamac search -a
  • 安装

    • pamac build <package>

chemacs debug

  • 命令

    1
    
      emacs -q --eval '(setq user-emacs-directory "/home/sawyer/.emacs.d.default")'  -l ~/.emacs.d.default/init.el --debug-init

sshd

  • sshd -t 报错

      # sshd -t
    
      # output error:
      sshd: no hostkeys available -- exiting.
    

解决方法

  • sudo ssh-keygen -A

字体

步骤

  1. 新建文件夹 /usr/share/fonts/your_font_folder
  2. copy font files to your folder
  3. sudo fc-cache -fv

snap FAQ

报错

error: cannot install "code": classic confinement requires snaps under /snap or symlink from /snap to /var/lib/snapd/snap

参考: linux - cannot install "code": classic confinement requires snaps under /snap…

解决方案:

1
sudo ln -s /var/lib/snapd/snap /snap