debian squeeze搭建最简xfce4开发环境(一 Debian简明中文支持)

May 27, 2011 by
Filed under: linux 

1.1 for chinese locale support:
dpkg-reconfigure locales

select all locales like zh_CN.***, zh_TW.***

1.2 how to install chinese fonts

apt-get install ttf-bitstream-vera msttcorefonts  (seems no use)
apt-get install xfonts-wqy ttf-wqy-zenhei

for MS windows fonts, copy Chinese font to /usr/local/share/fonts
sudo cp /data/debian/fonts/* /usr/local/share/fonts
sudo fc-cache

for free fonts:
sudo apt-get install ttf-arphic-*




cp fonts.conf_.txt  ~/.fonts.conf
cp local.conf_.txt  /etc/fonts/local.conf

set firefox Chinese minimal font to 14-15, Western font to 18.

1.3 input method:
apt-get install scim scim-pinyin scim-tables-zh

vi /etc/X11/Xsession.d/95xinput
to create a new file 95xinput with the following content:
/usr/bin/scim -d
export GTK_IM_MODULE=xim

the last line is meant to be able to use scim input method in firefox

1.4 support chinese in jdk gui.
Here is the way (two steps):
1). make a directory fallback under JavaHome/lib/fonts/
2). add a Chinese TrueType or Type 1 font under fallback

An example:
mkdir /usr/lib/j2sdk1.5-sun/jre/lib/fonts/fallback
ln -s /usr/share/fonts/truetype/arphic/gbsn00lp.ttf .
ln -s /usr/local/share/fonts/simhei.ttf .


Digg This
Reddit This
Stumble Now!
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)


2 Comments on debian squeeze搭建最简xfce4开发环境(一 Debian简明中文支持)

    […] Euler的备忘录 About linux, java, search engine, distributed, design Skip to content HomeAbout me ← Debian简明中文支持 […]

  1. richard_ma on Mon, 13th Jun 2011 10:28 pm
  2. 你好,我最近也在搭建Debian + Xfce4的环境,希望和你一起交流。可以通过我的邮件联系我,哈哈。