FreeBSD9.2安裝X11和GNOME

[1] 安裝xorg和gnome

輸入:
bsdconfig

選擇:
packages -> cd/dvd -> x11 -> xorg-7.7(第1個)
packages -> cd/dvd -> x11 -> gnome2-2.32.1_5(第1個)
然後,選擇Back按回車,移動到第1個(> Review ...),回車再回車,即可安裝!

###############################################################################

[2] 設置/etc/rc.conf

輸入:
edit /etc/rc.conf

添加:
hald_enable="YES"
dbus_enable="YES"

###############################################################################

[3] 在ROOT目錄創建或修改文件以下文件

輸入:
cd ~
edit .xinitrc

添加:
exec gnome-session

###############################################################################

[4] 配置xorg

輸入:
cd ~
Xorg -configure
edit xorg.conf.new

在 Section "Monitor" 和 EndSection 中加入:
HorizSync 30.0-50.0
VertRefresh 40.0-90.0

在 Section "Screen" 和 SubSection "Display" 中加入:
DefaultDepth 24

在 SubSection "Display" \n Viewport 0 0 \n Depth 24 和 EndSubSection 中加入:
Modes "1024x768"

保存退出後,輸入:
cp xorg.conf.new /etc/X11/xorg.conf

###############################################################################

[5] 設置主機名稱

edit /etc/hosts

把:
::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain

改爲(lzqfreebsd是主機名,一定要跟安裝系統時設置的主機名相同):
::1                     localhost localhost.my.domain lzqfreebsd
127.0.0.1               localhost localhost.my.domain lzqfreebsd

###############################################################################

[6] 重啓系統

輸入:
reboot

系統啓動後,並且登陸後,輸入:
startx
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章