|
FreeBSD 4.8 ADSL 汉化 输入法
0. adsl:
set device PPPoE:vr0 # vr0 is my netcard
set mru 1492
set mtu 1492
set dial
set login
set authname *** # adsl account
set authkey *** # adsl password
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
nat enable yes
1. Download ports.tar.gz (freebsd.org)
mv /usr/ports /usr/ports_old
cp ports.tar.gz /usr
tar xvfz ports.tar.gz
cd /usr/ports/chinese/kde3-i18n-zh_CN && make install clean
2. Install simsun
cd /usr/ports/chinese/ttfm && make install clean
cp simsun.ttf /usr/X11R6/lib/X11/fonts/TrueType
cd /usr/X11R6/lib/X11/fonts/TrueType && ttfm.sh --add xttfm simsun.ttf
vi /etc/X11R6/lib/X11/XF86Config
vi /etc/X11/XF86Config
add this line:
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
to above 2 files
and this line:
load "xtt"
to the 1st file
3. Install fcitx:
cd /usr/chines/fcitx && make install clean
then:
make sure your environment variable like this:
declare -x LANG="zh_CN.EUC"
declare -x LC_ALL="zh_CN.EUC"
declare -x LC_CTYPE="zh_CN.EUC"
and
~/.xsession:
export XMODIFIERS="@im=fcitx"
fcitx &
exec startkde
~/.xinitrc:
(the same as .xsession) |
|