首选安装
pacman -S gnome gdm
其它设置:
下面开始安装gnome,如果不喜欢用桌面环境下面的就当是废话。
1 2 3 4 5 | groupadd example1 useradd example2 - s / bin / bash - m - g example1 passwd example2 |
如果不设置用户无法登录gnome
安装dbus
1 | pacman - S dbus |
然后设置xinitrc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | nano ~ / . xinitrc 添加 #!/bin/sh if [ - d / etc / X11 / xinit / xinitrc . d ] ; then for f in / etc / X11 / xinit / xinitrc . d / * ; do [ - x "$f" ] && . "$f" done unset f fi exec $ your_window_manager nano / etc / rc . conf DAEMONS = ( syslog - ng < strong > dbus < / strong > network crond ) |
启动DBUS守护进程: /etc/rc.d/dbus start
加载FUSE内核模块:modprobe fuse
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | pacman - Syu eselect news read news pacman - S xorg - xinit pacman - S xorg - server pacman - S xf86 - video - vesa pacman - S gnome pacman - S gnome - extra --根据自己的需要安装扩展只需要输入数字即可 pacman - S gdm |
如果想每次直接启动图形界面,把gdm加入到DAEMONS
nano /etc/rc.conf 找到DAEMONS 添加:
DAEMONS=(syslog-ng dbus network crond gdm)
startx 相关设置:
安装基础的 Xorg 包:# pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils安装 mesa 以获得 3D 支持: # pacman -S mesa 安装默认的测试环境:# pacman -S xorg-twm xorg-xclock xterm 最后,启动 X 会话:$ startx