Friday, 30. December 2005, 15:00:49
(只是随手笔记,没有仔细整理)
1.生成几个配置文件cp /usr/share/examples/etc/make.conf /etc/
cp /usr/share/examples/cvsup/standard-supfile.conf /usr/
cp /usr/share/examples/etc/ports-supfile.conf /usr/
cp /usr/share/examples/etc/doc-supfile.conf /usr/
chmod u+w /etc/make.conf /usr/standard-supfile.conf /usr/ports-supfile.conf /usr/doc-supfile.conf
修改 /usr/standard-supfile.conf 和 /usr/ports-supfile.conf 中的
*default host=cvsup.jp.FreeBSD.org
2. 中文X-Windows的配置安装X.org,Gnome2,fcitx
编辑~/.xinitrc, 内容如下:
export XMODIFIERS=@im=fcitx
fcitx&
/usr/X11R6/bin/gnome-session
编辑 /etc/profile,加入
setenv LANG zh_CN.eucCN
setenv LC_ALL zh_CN.eucCN
如果用bash:
export LANG=zh_CN.eucCN
export LC_ALL=zh_CN.eucCN
NVIDIA显卡的安装
cd /usr/ports/x11/nvidia-driver
make install
cd work
make setup
如果想用windows的中文字体:
mount_ntfs /dev/ad0s1 /mnt/win
cd /mnt/win/WINDOWS/Fonts
mkdir /usr/X11R6/lib/fonts/msfonts
cp simsun.ttc /usr/X11R6/lib/fonts/msfonts/simsun.ttf
cp mingliu.ttc /usr/X11R6/lib/fonts/msfonts/mingliu.ttf
cp tahoma.ttf /usr/X11R6/lib/fonts/msfonts/
cp tahomabd.ttf /usr/X11R6/lib/fonts/msfonts/
同时下载把两个字体描述文件放在同一目录:
1.
fonts.conf2.
fonts.dir生成和编辑xorg.conf,内容如下:
Section "Module"
Load "dbe" # Double buffer extension
Load "extmod"
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "speedo"
Load "bitmap"
Load "glx"
Load "freetype"
Load "dri"
Load "dbe"
Load "xtt"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/msfonts/"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
EndSection
Section "ServerFlags"
Option "NvAGP" "1"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc106"
Option "XkbLayout" "jp"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/sysmouse"
Option "Emulate3Buttons"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
Section "Monitor"
Identifier "HP P910"
VendorName "Hewlett Packard"
ModelName "HP D8910"
HorizSync 29-107
VertRefresh 50-150
# 1024x768 @ 130 Hz, 106.8 kHz hsync
Modeline "1024x768" 150.6 1024 1056 1216 1408 768 782 788 822 -HSync -VSync
# 1280x1024 @ 100 Hz, 106.8 kHz hsync
Modeline "1280x1024" 181 1280 1312 1440 1696 1024 1031 1046 1072 -HSync -VSync
# 1600x1200 @ 85 Hz, 105.77 kHz hsync
Modeline "1600x1200" 220 1600 1616 1808 2080 1200 1204 1207 1244 +HSync +VSync
EndSection
Section "Monitor"
Identifier "IO-DATA LCD"
Option "DPMS"
HorizSync 31.5-110
VertRefresh 28-90
Modeline "1024x768" 162 1920 1984 2176 2480 1200 1201 1204 1250 +hsync +vsync
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vesa"
EndSection
#VideoRam 65536
# Insert Clocks lines here if appropriate
#VideoRam 65536
# Insert Clocks lines here if appropriate
Section "Device"
Identifier "nVidia geForce 4"
Driver "nvidia"
VendorName "NVIDIA"
BoardName "GeForce4 MX"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "nVidia geForce 4"
Monitor "IO-DATA LCD"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
以上的X配置文件,可从此处
下载。该配置文件仅供参考,机器不同,内容也应该有差异。
在这儿找到一个相当不错的 FreeBSD 6.0 的安装配置指南:
http://notes.twinwork.net/freebsd/