- 论坛徽章:
- 0
|
在 Google 查 "X-Manager 显示中文" 找到两篇文章,其实是同样内容、后来又重新转帖。
按照里面的办法做,果然 Solaris 的 xfs 没有提供中文字体,自己拷贝字体文件就好了。
http://www.chinaunix.net/jh/6/16449.html
http://www.douzhe.com/docs/bbsjh/3/19325.html
[精华] [转载]关于PC X-server的中文问题(终结篇)
-------------------------------------------------------------------------------
cd /home/postgres/
rm -Rf locale
mkdir locale
cd locale
rm -Rf *
for i in zh_CN.GB18030 zh_CN.GBK zh_CN.EUC; do cp -pr /usr/openwin/lib/locale/$i/X11/fonts/75dpi .; mv 75dpi $i; done
for i in zh_TW.BIG5 zh_TW.EUC; do cp -pr /usr/openwin/lib/locale/$i/X11/fonts/75dpi .; mv 75dpi $i; done
for i in zh_TW.UTF-8 zh_CN.UTF-8; do cp -pr /usr/openwin/lib/locale/$i/X11/fonts/misc .; mv misc $i; done
tar -cvf zh_CN_TW.tar *
gzip zh_CN_TW.tar
ls -la *.gz
gzip -dc zh_CN_TW.tar.gz | tar -tvf -
-------------------------------------------------------------------------------
Packages' Alias Name:
zh is an alias of zh_CN.EUC
zh.GBK is an alias of zh_CN.GBK
zh.UTF-8 is an alias of zh_CN.UTF-8
zh_TW is an alias of zh_TW.EUC
Packages' Dependancy:
zh_CN.GB18030 depends on zh_CN.GBK
zh_CN.UTF-8 depends on zh_CN.GBK and zh_CN.GB18030
zh_TW.UTF-8 depends on zh_TW.BIG-5
-------------------------------------------------------------------------------
The Sun xfs service doesn't provide Chinese fonts, you should check the config.
Modify /usr/openwin/lib/X11/fontserver.cfg, add Chinese font path to catalogue.
We can also copy zh_CN_TW.tar.gz to PC, extract it, add font dirs to X Manager.
Solaris 10 fonts have some small changes to Solaris 9 fonts, most are the same.
If you use X-Win32, first you must extract all .Z files, click add in X-Config
font menu, change type to "All Files" and choose fonts.alias. Now please press
"Make FONTS.DIR" button to take effect, finally click "Apply" to add this font.
bash-2.05# lsof -P | grep 7100
inetd 191 root 27u IPv6 0xd5a17024 0t0 TCP *:7100 (LISTEN)
xfs 585 nobody 0u IPv6 0xd5a17024 0t0 TCP *:7100 (LISTEN)
xfs 585 nobody 1u IPv6 0xd5a17024 0t0 TCP *:7100 (LISTEN)
xfs 585 nobody 4u IPv6 0xd641d724 0t59256 TCP tracyz.gdcm.com:7100->jackyz.gdcm.com:1074 (ESTABLISHED)
-------------------------------------------------------------------------------
在 Google 查 "Solaris xfs 漏洞" 找到好多文章,所以拷贝字体文件更安全。
http://www.chu.edu.tw/~chunpo/solaris/security/docs/20021128.html
Solaris资讯站[ 繁体 ]
Solaris 在默认配置是运行XFS 服务程式(fs.auto)的,并且由于fs.auto 被绑定在TCP高埠
(7100),而在网路中高埠通常没有被过滤,因此内部网一般都存在此安全风险。有此漏洞的
系统: - Sun Solaris 9.0 x86 - Sun Solaris 9.0 SPARC - Sun Solaris 8.0 x86 ...
[ 本帖最后由 wwashington 于 2006-6-8 13:45 编辑 ] |
|