一、分区及基本系统安装
1.分区
/ 512MB
SWAP 356MB
/var 5G
/tmp 1G
/usr 15G
/app 15G
2.基本系统安装
1)FreeBSD安装
安装方式为:7 X-kern-Developer,即安装全部二进制、文档和内核源代码。
安装中,不安装boot-manager(只有1个FreeBSD不需要多重引导),不启用sshd(桌面似乎没必要远程管理吧);安装linux兼容包、cvsup-without-gui、unzip
如果你不会安装FreeBSD请先阅读FreeBSD使用手册中文版
2)更新ports
代码:
--------------------------------------------------------------------------------
#cp /usr/share/examples/cvsup/ports-supfile /root#ee /root/ports-supfile[code](将cvsup站点改为cvsup.freebsdchina.org)[code]/usr/local/bin/cvsup -g -L 2 /root/ports-supfile
--------------------------------------------------------------------------------
(更新到最新ports)
3)Xorg配置
代码:
--------------------------------------------------------------------------------
#Xorg -configure#X -config /root/xorg.conf.new
--------------------------------------------------------------------------------
(看到鼠标显示为x,并且可以移动正常后,按ctrl+alt+BackSpace组合键推回CLI)
代码:
--------------------------------------------------------------------------------
ee /root/xorg.conf.new
--------------------------------------------------------------------------------
(我的xorg.conf.new见附件1)
代码:
--------------------------------------------------------------------------------
cp /root/xorg.conf.new /etc/X11/xorg.conf
--------------------------------------------------------------------------------
附件1
引用:
--------------------------------------------------------------------------------
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/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 "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
#DisplaySize 320 240 # mm
Identifier "Monitor0"
VendorName "TCL"
ModelName "TCL MF767"
### Comment all HorizSync and VertSync values to use DDC:
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
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 "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "82810E DC-133 CGC [Chipset Graphics Controller]"
BusID "PCI:0:1:0"
EndSection
Section "Screen" /*若您为初学者,建议以下部分和我的设置一样*/
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800*600@85" /*分辨率800*600,刷新率85HZ*/
EndSubSection
EndSection