2009年7月6日 星期一

install xwindows

1.install xorg packages
#whereis xorg
#cd /usr/ports/x11/xorg
#make install clean
or
#sudo pkg_add -r -v xorg

2.create xorg.conf
#Xorg -configure

3.modify xorg.conf.new
#vim xorg.conf.new
add new line in ServerLayout
Option "DontZap" "Off"
Option "AutoAddDevices" "false"

add new line in Monitor
HorizSync 50-82
VertRefresh 50-85
Option "DPMS"

add new line in Screen
DefaultDepth 24
Modes "1024*768"

5.add new line to /etc/rc.conf
#vim /etc/rc.conf
hald_enable="YES"
dbus_enable="YES"

6.Testing xorg configuration
#Xorg -config xorg.conf.new -retro
if you see an x mouse cursor and move it to confirm it is ok

7.copy xorg.conf.new to /etc/xorg.conf
#cp xorg.conf.new /etc/xorg.conf

8.install gnome2 windows manager
#pkg_add -r -v gnome2

9.add new line to start gnome2
#echo "exec gnome-session" >> ~/.xinitrc

10.testing xwindows
#startx

沒有留言:

張貼留言