和正常安裝 Debian 一樣沒有什麼特別,在安裝過程中選擇 task-chinese-s(簡體) 或 task-chinese-t (繁體)。有一點要注意, potato 安裝時, 有可能出現有些套件選了,但是沒有安裝上,這時需要您手動執行 dselect, 直接進入 Install 選單就可以了。
確認您的 /etc/apt/sources.list 設置正確,執行命令apt-get install task-chinese-s (簡體) 或 apt-get install task-chinese-t (繁體)。
從 libc6 2.2 開始 locale 檔案需要您自己來生成。編輯 /etc/locale.gen, 去掉您需要的 locale 的注釋,然後以 root 身份來執行 locale-gen。
確認您設定了以下參數 (bash) :
$(HOME)/.bashrc
alias ls=``ls -show-control-chars''
export LC_ALL=zh_CN.GB23122
export LC_CTYPE=zh_CN.GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=``@im=Chinput''3
stty cs8 -istrip
stty pass8
$(HOME)/.inputrc
set meta-flag on
set convert-meta off
set output-meta on
炎黃中文平台目前只支援 vt100 終端類型,所以在啟動炎黃平台前先執行 export TERM=vt100,也可以把這條命令放到 $(HOME)/.bashrc �堙C
確認已經安裝並啟動 xfs-xtt 字型伺服器,然後在 /etc/X11/XF86Config 的 Section ``Files'' 小節中加入 FontPath ``unix/localhost:7100''。
XF4.0.2 使用 xtt 的 module 來支援 GB/Big5 的 TrueType 字型,已經不再需要 xfs-xtt 了。
在 /etc/X11/XF86Config-4 的 Section ``Files'' 小節中加入
FontPath ``/usr/lib/X11/fonts/TrueType'',
然後將 Load ``freetype'' 替換成 Load ``xtt'' 就可以了。
可以將 FontPath ``unix/:7100'' 注釋掉。
Contributed by: mailto:foka@debian.orgAnthony Fok 2001/08/23
如果你用的是 woody/sid ,並且 x-ttcidfont-conf 版本是3.5以上,請在 /etc/X11/XF86Config-4的 Section ``Files'' 加上:
FontPath ``/usr/lib/X11/fonts/defoma/TrueType/''
FontPath ``/usr/lib/X11/fonts/defoma/CID/''
Contributed by: mailto:ygh@debian.orgYu Guanghui 2002/01/04
如果您用的是 x-ttcidfont-conf 版本 8 以上,請做如下修改 /etc/X11/XF86Config-4的 Section ``Files'' 加上:
FontPath ``/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType/''
FontPath ``/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID/''
Contributed by: mailto:ygh@debian.orgYu Guanghui 2001/10/20
請注意升級 x-ttcidfont-conf 到版本 7 以上。這個版本修正了在使用 xtt 字型伺服器 的時候只有黑體和斜體字的問題。
這是因為您啟動 X 時沒有加入 -deferglyphs 16 的參數。這樣話 xfs-xtt 就 會試圖產生全部的字型。因此要用 startx -- -deferglyphs 16 來啟動 X。 如果使用 xdm 的話,就要在 /etc/X11/xdm/Xserver �堨[入 -deferglyphs 16。
XCIN 使用的是 XIM 協議,只有支援 XIM 的程式才能接受 XCIN 輸入。 在執行應用程式前,要先運行 XCIN,並且設定 XMODIFIERS=``@im=xcin-zh_CN.GB2312''。可以在 $(HOME)/.bashrc �堨[入 export XMODIFIERS=``im=xcin-zh_CN.GB2312''。 然後就可以用 ctrl+space 來激活輸入法。如果是在 Big5 模式,請設定 XMODIFIERS=``@im=xcin'';後面如果加上 ``-zh_TW.Big5'' 就反而不行了。
Contributed by: mailto:foka@debian.orgAnthony Fok 2000/12/10
更簡單的辦法,是先升級至 Debian 2.2r2 �堛� xcin-2.5.2 版,或 Debian unstable (woody) �堛� xcin-2.5.2.2 版,然後您就可以直接從選單啟動 XShell
XCINterm (Big5) 或 XCINterm (GB2312),或從任何 shell 的提示符運行 xcinterm-big5 或 xcinterm-gb),系統就會自動為您打開可以輸入中文的 xcin 伺服器和 crxvt 終端了。
Chinput 目前還沒有正式納入 Debian,因為 Chinput 要使用 UNICON 的輸入法,
而 UNICON 還需要做進一步的測試。您可以從:
http://master.debian.org/~ygh/unicon-im_3.0-1_i386.deb
http://master.debian.org/~ygh/chinput_3.0.1-1_i386.deb
下載和安裝 unicon-im 和 chinput。
chinput 使用的也是 XIM 協議,只有支援 XIM 的程式才能接受輸入。
在執行應用程式前,要先執行 chinput,並且設定 XMODIFIERS=``@im=Chinput''。可以在 $(HOME)/.bashrc �堨[入 export XMODIFIERS=``im=Chinput''。
然後就可以用 ctrl+space 來激活輸入法。需要注意的是預設的 chinput 套件使用的是 TrueType 字型。
補註:chinput 和 unicon-im 已經順利進入 Debian unstable �堶惜F。各位使用 unstable 的朋友,用 apt-get install chinput unicon-im 就可以了。
Contributed by: mailto:ygh@debian.orgYu Guanghui 2000/10/20
注意: chinput 只能使用16點陣的字型。
你需要手動改一下 icewm 的配置文件,設定一下視窗的文字的大小。可以先將 /etc/X11/icewm/preferences 複製為 $(HOME)/.icewm/preferences, 然後修改 $(HOME)/.icewm/preferences。 找到 #TitleFontName="-adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*", 修改 TitleFontName="-default-song-bold-r-normal--16-160-72-72-c-160-gb2312.1980-0" 或 TitleFontName="-default-ming-bold-r-normal--16-160-72-72-c-160-big5-0"。