发新话题
打印

【原创】ASUS安装FBSD5.4手记

【原创】ASUS安装FBSD5.4手记

今天在自己的ASUS5215AN机器上面安装了FreeBsd5.4-release,下面是安装心得,和大家分享一下。
Asus5215AN的主要机器配置如下:
CPU:Intel 迅驰 Dothan 1.5
内存:512M DDR333
硬盘:IDE 接口 DMA100 40GB硬盘,型号:IC25N040ATMR04-0
显卡:Intel 855GME
声卡:SoundMAX Integrated Dgital Audio
光驱:Auss SCB 2424 外置USB接口Combo

安装Freebsd前的硬盘分配如下:
ad0s1-Asus原厂自建的系统恢复分区
ad0s2-C盘,安装了Winxp Sp1,文件系统Fat32
ad0s3-D盘,文件系统Fat32

安装过程如下:
1.设置Bios从光驱引导,一切顺利,进入Sysinstall界面(据说只有Asus原装的SCB光驱才能从光盘引导系统,本人没有拿别的外置光驱作过试验,如果别的朋友用过可以的话相烦告知,不胜感谢
2.在Sysinstall中选择Custome安装。
3.Partition设置:删除ad0s1和ad0s3(因为我打算装双系统,所有保留了ad0s2,即C盘);将多处的磁盘空间建成一个UFS文件系统的slice,系统提示这个slice为ados1;然后在主引导扇区设置中选择Bootmgr。
4.Label设置:将ad0s2,即C盘Mount到“/winxp”(有不少朋友无光无软安装的时候会将Freebsd安装文件拷贝到C盘中,这一步不要忘了,否则后面选择media的时候系统提示会找不到安装文件);分配5g的“/”,712m的“swap”,剩余的空间全部mount到“/home”。
5.Time zone -略
6.Distribution-略
7.Media设置:选择CD/DVD,FBSD5.4-release支持从USB光驱安装系统,设备名称为cd0,我以前用了5.3BSD-release安装的时候还不支持这个功能,现在爽了,哈哈
8.Commit.......................

安装过程一切顺利,安装完成后重新启动机器,顺利进入FBSD,提示login

下一步是安装X系统:
以下是我的xorg.conf的配置,供大家参考,其中有几个我觉得比较重要的设置点用 粗斜体 标记出来了:

Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath      "/usr/X11R6/lib/X11/rgb"
ModulePath   "/usr/X11R6/lib/modules"
FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load  "extmod"
Load  "glx"
Load  "dri"
Load  "dbe"
Load  "record"
Load  "xtrap"
Load  "speedo"
Load  "type1"
Load  "freetype"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "keyboard"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option     "rotocol" "auto"
#Option      "rotocol" "S/2"
Option     "Device" "/dev/sysmouse"
Option     "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"             # [<bool>]
        #Option     "SWcursor"            # [<bool>]
        #Option     "ColorKey"            # <i>
        #Option     "CacheLines"          # <i>
        #Option     "Dac6Bit"             # [<bool>]
        #Option     "DRI"                 # [<bool>]
        #Option     "NoDDC"               # [<bool>]
        #Option     "ShowCache"           # [<bool>]
        #Option     "XvMCSurfaces"        # <i>
        #Option     "ageFlip"            # [<bool>]
        Option      "DisplayInfo" "FALSE"
Identifier  "Card0"
Driver      "i810"
  #Driver       "vesa"
VendorName  "Intel Corp."
BoardName   "82852/855GM Integrated Graphics Device"
#BusID       "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
DefaultDepth 16
SubSection "Display"
  Viewport   0 0
  Depth     1
EndSubSection
SubSection "Display"
  Viewport   0 0
  Depth     4
EndSubSection
SubSection "Display"
  Viewport   0 0
  Depth     8
EndSubSection
SubSection "Display"
  Viewport   0 0
  Depth     15
EndSubSection
SubSection "Display"
  Viewport   0 0
  Depth     16
              Modes     "1024*768"
EndSubSection
SubSection "Display"
  Viewport   0 0
  Depth     24
EndSubSection
EndSection
有关xorg.conf的几个问题:
1.关于液晶显示器的刷新率以及分辨率设置问题:个人觉得液晶显示器因为其工作原理与CRT显示器不同,所以不能按照计算CRT显示器刷新率的方法计算液晶的刷新率,所以Monitor Section那块我删除了Horizental 和Vertical那两项。我的液晶是12寸的,Windows下在[email="1024*768@60Hz16"]1024*768@60Hz16[/email]位色下可以正常工作,所以在Screen中我的DefaultDepth是16,相关的modes为“1024*768"。
2.关于Option      "DisplayInfo" "FALSE" 这一行,一般的Xorg.conf里面是没有这一行的,但刚开始安装X的时候“i810”驱动无法使用,一打Xorg命令就黑屏,然后左上角有个光标在那里不停的跳,换成“vesa”驱动就可以正常使用,后来查了X启动log,在最后一行系统提示我在Device Section中加入这一行,一试果然管用,哈哈。

有关安装的其他问题:
1.有不少无光无软的朋友安装中在选择Media这里经常遇到问题,我也曾试过将5.4-release ISO Image中的文件拷贝到C:\freebsd下面,然后在选择media时选择Dos或者OtherFileSystem:ad0s2\freebsd,最后结果都是出错。后来在安装label的时候将C盘所在的分区mount到/winxp,然后在设置media时选择Other Filesystem:/winxp/freebsd,成功。
2.有关USB光驱安装系统的问题,据我测试,5.4-release版本中支持这个特性,5.3不支持。

写这偏帖子的时候参考了以下的一些文章,大家对我的帖子不明白的可以去参考原文:
有关xorg.conf的配置,参考自:[url="http://gerda.univie.ac.at/freebsd-laptops/index.pl?action=show_laptop_detail&laptop=443"]http://gerda.univie.ac.at/freebsd-laptops/index.pl?action=show_laptop_detail&laptop=443[/url]
FreeBSd handbook: [url="http://www.freebsd.org.cn/snap/doc/zh_CN.GB2312/books/handbook/"]http://www.freebsd.org.cn/snap/doc/zh_CN.GB2312/books/handbook/[/url]
有关无光无软安装Freebsd的请参考:[url="http://www.vipcn.com/InfoView/Article_40630.html"]http://www.vipcn.com/InfoView/Article_40630.html[/url]      

TOP

好帖子!一个很好的参考。      

TOP

发新话题