FreeBSD 7.0-RELEASE-i386
Install Xorg and KDE on CD (FAST)
# Sysinstall
Configuration-> packages-> select cd-> go to x11-> Find xorg-> select-> install
Configuration-> packages-> select cd-> go to KDE-> Find kde-> select-> install
(Select FTP)
Or compile and install Xorg and KDE (slow speed)
# Cd/usr/ports/x11/xorg & make OPTIONS = NO install clean
# Cd/usr/ports/x11/kde3 & make OPTIONS = NO install clean
(About 20----30 hours, during which compilation may stop due to errors)
Or use
# Pkg_add-r xorg
# Pkg_add-r kde3
(FAST)
If/etc/X11/xorg. conf is not configured, it is automatically configured by the system.
If you want to configure it yourself:
# Xorg-configure
# Xorg-config xorg. conf. new
# Cp xorg. conf. new/etc/X11/xorg. conf
# Startx
Test, Ctrl + Alt + Backspace exit X
Install Chinese Environment
# Cd/usr/ports/chinese/kcfonts & make install clean
# Cd/usr/ports/chinese/arphicttf & make install clean
# Cd/usr/ports/chinese/kde3-i18n-zh_CN & make install clean
# Cd/usr/ports/chinese/koffice-i18n-zh_CN & make install clean
If you want to have a Windows Font, COPY the font above Win to the following directory.
# Cd/usr/X11R6/lib/X11/fonts/TrueType
Install FireFox:
# Cd/usr/ports/www/firefox3 & make install clean
# Cd/usr/ports/www/firefox3-i18n & make install clean
(Enter about: config in the address bar, search for general. useragent. locale, and change it to zh-CN)
Error handling:
# Cd/usr/ports/devel/glib20 & make OPTIONS = NO FORCE_PKG_REGISTER = YES install clean
Http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-10/msg01701.html)
# Cd/usr/ports/x11/pixman & make OPTIONS = NO FORCE_PKG_REGISTER = YES install clean
# Cd/usr/ports/graphics/cairo & make OPTIONS = NO FORCE_PKG_REGISTER = YES install clean
(Http://www.nabble.com/CALL-FOR-TEST:-Updates-to-pixmap,-cairo,-poppler,-and-firefox-3.0! -Td17960163.html)
Install the chat tool gaim
# Cd/usr/ports/net-im/pidgin & make install clean
Installation of Chinese Input Method:
# Cd/usr/ports/chinese/scim-tables/& make install clean # Five
# Cd/usr/ports/chinese/scim-pinyin/& make install clean # pinyin
# Ee ~ /. Cshrc
Setenv LANG zh_CN.eucCN
Setenv LC_CTYPE zh_CN.eucCN
Setenv XMODIFIERS @ im = SCIM
Setenv GTK_IM_MODULE scim
# Echo "exec/usr/local/bin/scim &"> ~ /. Xinitrc
# Echo "exec/usr/local/bin/startkde"> ~ /. Xinitrc
# Startx
Go to KDE.
Find Setting-> Desktop Setting Wizard and select Chinese.
Choose "Control Center"> appearance and subject> font, and set the Chinese font and font size you need. The larger the force font DPI, the larger the word size.
Open FireFox, open about: config, search for layout.css. dpi, set dpi to 0,-1 to FireFox's default DPI, and 0 to KDE System DPI.
Note: if there is a software version conflict during the installation process, add the installation command FORCE_PKG_REGISTER = YES to force the installation.
# Cat/etc/X11/xorg. conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc /"
FontPath "/usr/local/lib/X11/fonts/TTF /"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1 /"
FontPath "/usr/local/lib/X11/fonts/100 dpi /"
FontPath "/usr/local/lib/X11/fonts/75 dpi /"
EndSection
Section "Module"
Load "GLcore"
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"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "vesa"
VendorName "Silicon Integrated Systems [SiS]"
BoardName "661/741/760 PCI/AGP or 662/761 Gx pcie vga Display Adapter"
BusID "PCI: 1: 0: 0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection