FreeBSD 8.1 DVD, 安装.
distribution选的all.
pakages选的Xorg meta port, 和 Gnome 2 meta port
桌面, 先搞定X11
1.ee /etc/rc.conf里面加
hald_enable="YES"
dbus_enable="YES"
这样X11可以找到键盘鼠标
2. 运行
Xorg -configure
$home里面生成一个xorg.conf.new文件
3.测试Xorg -config xorg.conf.new -retro
会看到一个黑白格的桌面和中央一个X
用Ctrl-Alt-F1调出tty0, 按Ctrl-C推出X测试
(先按F1后按Ctrl-Alt 要等一会就出现tty0,按Ctrl-C推出X测试)
4. 编辑xorg.conf.new文件, 在"Section Screen"区里, 加上DefaultDepth 24; 在SubSection Display区里, 加上Modes 屏幕宽x屏幕高. 像下面这样:
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSe5. copy编辑好的conf文件到指定位置:
cp xorg.conf.new /etc/X11/xorg.conf
X11大写
最后
echo "/usr/local/bin/gnome-session" >~/.xinitrc
startx
转载于:https://blog.51cto.com/chaohu/495160