标题: 求救:redhat9上安装解决汉字乱码的软件后的问题 [打印本页] 作者: zyly2000 时间: 2004-11-11 17:55 标题: 求救:redhat9上安装解决汉字乱码的软件后的问题 在redhat9上安装了解决汉字乱码的软件后,执行了sm.sh的脚本,就不能用xmanager进行连接了,为什么啊,很急,求那位高手指点一下啊 谢谢作者: 零二年的夏天 时间: 2004-11-11 21:00 标题: 求救:redhat9上安装解决汉字乱码的软件后的问题 也要看看您的脚本作了哪些动作啊。作者: zyly2000 时间: 2004-11-12 08:50 标题: 求救:redhat9上安装解决汉字乱码的软件后的问题 #!/bin/bash
#
#change rh8 chinese fonts to simsun
#This is a GPL sript. The content comes form Xiang Yu. Thanks him.
#usage:
#1, install rh8 and select simplified chinese.
#2, make a temple directory in anywhere you prefer.
# for example /usr/local/temp
# copy 'where/it/has/the/windows_fonts/simsun.ttc' and
#all of these fonts, simsun.ttc&~@~ASimSun18030.ttc&~@~Atahoma.ttf and tahomabd.ttf
# to this temp place /usr/local/temp
#3, copy this shell script into this directory.
#4, run it
#5, set the fonts to your most prefered ones in gnome, kde and xmms and others.
#first, put the fonts to the correct dir.
export CDIR=/usr/X11R6/lib/X11/fonts/TrueType
#export CDIR=/usr/local/btest
###export XFConfig=/etc/X11/XF86Config
#export XFConfig=/usr/local/atest/XF86Config
export GTKRC=/etc/gtk/gtkrc.zh_CN
#export GTKRC=/usr/local/atest/gtkrc.zh_CN
export GNOMERC=/etc/gnome/gtkrc.zh_CN
#export GNOMERC=/usr/local/atest/gnome/gtkrc.zh_CN
export FONTSCONF=/etc/fonts/fonts.conf
#export FONTSCONF=/usr/local/atest/fonts.conf
export CHINPUTAD=/usr/lib/Chinput/Chinput.ad
#export CHINPUTAD=/usr/local/atest/Chinput.ad
export XMMSMO=/usr/share/locale
#export XMMSMO=/usr/local/atest
mkdir $CDIR
#copy the fonts to it
cp simsun.ttc $CDIR/simsun.ttf
cp SimSun18030.ttc $CDIR/SimSun18030.ttf
cp t* $CDIR/