当然是正式开启折腾之路啦!!!
添加用户
1 | pacman -S zsh git vim |
添加完成后,编辑sudoers文件,使得添加的用户可以使用sudo:
运行命令visudo
,然后把# %wheel ALL=(ALL) ALL
前面的#
删掉
搞定之后logout
,用新用户登入系统
桌面环境(GNOME)
安装显示服务:sudo pacman -S xorg xorg-xinit xterm
,然后无脑回车
安装登陆管理器:1
2sudo pacman -S gdm
sudo systemctl enable gdm
安装桌面环境:sudo pacman -S gnome wqy-microhei
装完重启后应该就能进入GNOME桌面环境了,现在给系统撸上中文:
编辑/etc/locale.gen
,找到zh_CN.UTF-8
这一行,将之前面的#
去掉,保存退出后运行locale-gen
,即:1
2sudo vim /etc/locale.gen
sudo locale-gen
还要在~/.xprofile
文件中添加一行环境变量:export LANG=zh_CN.UTF-8
(文件不存在就创建之)
这样系统重启后就应该是亲切的中文了
安装中文输入法:sudo pacman -S fcitx fcitx-configtool fcitx-im
在~/.xprofile
添加:1
2
3export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
其他
安装oh my zsh
:1
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
安装yaourt
,编辑/etc/pacman.conf
,在文件末尾添加:1
2
3[archlinuxfr]
SigLevel = Optional TrustAll
Server = http://repo.archlinux.fr/$arch
然后运行sudo pacman -Sy yaourt
完成安装
有了yaourt就可以用它来安装Chrome
了:yaourt -S google-chrome
(yaourt无需用sudo)
另外,其他的一些软件也可以很方便的通过pacman
进行安装,比如Go编程环境:sudo pacman -Sy liteide
(Go会作为依赖一起安装上去)