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
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值