基本工具
# pacman -S man base-devel
强制更新 系统、软件
# pacman -Syyu
用户配置:
# useradd -m -G wheel qing
# passwd qing
# visudo(修改wheel组的权限)
把wheel ALL=(ALL)ALL 前的“#”去掉
不想用vi把vi替换掉,做vi的软链接
# ln -s /usr/bin/vim /usr/bin/vi
前提条件,已安装(vi、sudo)
安装fish-shell
# pacman -S fish
# which fish
# chsh -s /usr/bin/fish
# curl -L https://get.oh-my.fish| fish
# fish_config
安装yay
# git clone https://aur.archlinux.org/yay.git
# cd yay
# makepkg -si
或
# sudo pacman -S yaourt
# yaourt -S yay
显卡驱动
@ 通用xf86-video-vesa
@intel xf86-video-intel
@Geforce7± xf86-video-nouveau(开源)
@Geforce7± nvidia(闭源)
# pacman -S xf86-video-intel
# pacman -S nvidia nvidia-utils nvidia-settings
切换显卡bumblebee
https://wiki.archlinux.org/index.php/NVIDIA
触摸板驱动
# pacman -S xf86-input-synaptics
添加archlinuxcn源
# vim /etc/pacman.conf
在 /etc/pacman.conf 文件末尾添加两行:
中科大(archlinux、blackarch)
[archlinuxcn]
SigLevel = Optional TrustAll
Server=https://mirrors.ustc.edu.cn/archlinuxcn/$arch
[blackarch]
SigLevel=Never
Server=https://mirrors.ustc.edu.cn/blackarch/$repo/os/$arch
# sudo pacman -S archlinux-keyring
# sudo pacman -S blackarch-keyring
安装中文输入法
# pacman -S fcitx fcitx-im fcitx-configtool
# pacman -S fcitx- xxx pinyin
# vim ~/.xprofile
添加一下内容
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export LC_ALL=zh_CN.UTF-8
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
eval `dbus-launch --sh-syntax --exit-with-session`
exec fcitx &
WIFI-设置
# pacman -S iw wpa_supplicant
# pacman -S NetworkManager nm-connection-editor network-manager-applet
https://wiki.archlinux.org/index.php/NetworkManager
官方中文字体
# sudo pacman -S noto-fonts-cjk