注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 科普系列之-使用Windows的..
 帮助

图解安装FreeBSD6.2桌面系统初学者笔记(二)


2007-12-09 11:47:35
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://luhuayan.blog.51cto.com/261482/54276
安装图形界面
1 FreeBSD 基本配置
(1) 更改Root密码
# passwd
Changing local password for root
New Password:
 
(2) 设定时区
# sysinstall
    在“sysinstall Main Menu”中选择“Configure”。如图2.1
2.1
    在“FreeBSD Configuration Menu”中选择“Time Zone”。如图2.2
2.2
    在“Select local or UTC (Greenwich Mean Time) clock”中选择“No”。如图2.3。>选择“5 Asia”——>“选择9 China”。
2.3
    在“China Time Zones”中选择“1 east China – Beijing, Guangdong,Shanghai,etc.”。如图2.4
2.4
(3) 设定鼠标
    在“FreeBSD Configuration Menu”中选择“Mouse”。选择“2 Enable”。
 
(4) 设定网络
    在“FreeBSD Configuration Menu”中选择“Networking”。选择“Interfaces”。如图2.5。
2.5
    在“Network interface information required”中,选择“de0”。如图2.6
2.6
    在“Do you want to try IPv6 configuration of the interface”中,选择“No”。如图2.7
2.7
    在“Do you want to try DHCP configuration of the interface”中,选择“Yes”。如图2.8
2.8
    出现如图2.9所示的“Network Configuration”选择“OK”。
2.9
 
2 Xorg 的安装与配置
(1) 安装Xorg
方法1:通过FreeBSD光盘安装
# sysinstall
在“sysinstall Main Menu”中选择“Configure”。如图2.10。
2.10
 
    在“Configuration Menu”中选择“Distributions”。如图2.11
2.11
    然后选择“X.Org”。如图2.12
2.12
    进入X.Org 的菜单选项,把Basic, Server, Font中的内容全选中,然后按“OK”退出。如图2.13
2.13
    最后,“OK”确认,从“Distributions”退回“Configuration”过程中会安装刚才选中的软件包。
 
方法2:编译安装
# cd /usr/ports/X11/xorg
# make install clean
 
方法3:从Package安装
# pkg_add –r xorg
 
(2) 配置Xorg
第一步:在/root下生成xorg.conf.new文件
# Xorg –configure
执行这条命令将在root用户的根目录下生成一个基本的Xorg的配置文件xorg.conf.new
 
第二步:测试配置文件,以确认Xorg能够正常工作。
# Xorg –configure xorg.conf.new
如果能显示黑灰色的格子和“X”鼠标指针,说明配置成功,按Ctrl+Alt+Backspace键退出测试界面。
如果配置不成功,按照下面的说明对xorg.conf.new文件进行调整。
 
第三步:调整xorg.conf.new配置文件
# 根据自已显示器情况调整刷新率,分辨率及色深。
Section "Monitor"
    Identifier        "Monitor0"
     HorizSync      31.5 - 37.9    #
根据自已显示器情况而定

    VertRefresh 50.0 - 90.0    #
根据自已显示器情况而定
EndSection
Section "Screen"
     Identifier "Screen0"
     Device     "Card0"
     Monitor    "Monitor0"
     DefaultDepth   16   #
根据自已显示器情况而定

    SubSection "Display"
         Viewport   0   0
         Depth      16     #
根据自已显示器情况而定
         Modes      "1024*768"     #
根据自已显示器情况而定
    EndSubSection
EndSection
#鼠标中键滚轮支持
Section “InputDevice”
    Identifier    “Mouse0”
    Driver        “mouse”
    Option       “Protocol” “auto”
    Option       “Device” “/dev/sysmouse”
    Option       “ZAxisMapping” “4 5 6 7”  # 没有这一行请加上
EndSection
 
第四步:配置修改存盘后再进行测试,如没问题后,将xorg.conf.new更名xorg.conf拷贝到/etc/X11目录。
# cp /root/xorg.conf.new /etc/X11/xorg.conf
如仍有问题可查看/var/log/xorg.0.log,然后根据提示修改。
 

本文出自 “陆华艳的博客” 博客,请务必保留此出处http://luhuayan.blog.51cto.com/261482/54276





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: