执行 locale 查询
# locale -a | grep zh
输出
zh_CN.hp15CN
zh_CN.utf8
zh_HK.big5
zh_HK.utf8
zh_TW.big5
zh_TW.ccdc
zh_TW.eucTW
zh_TW.utf8
上述为系统所支持的中文语言环境
/(root)#swlist -l fileset International
# Initializing...
# Contacting target "myhost"...
#
# Target: HP5400-1:/
#
# International B.11.11 International
International.ARABIC B.11.11 ARABIC
International.BULGARIAN B.11.11 BULGARIAN
International.CHINESES B.11.11 CHINESES
International.CHINESET
以上操作应该说明我已安装了中文环境。
然后编辑/etc/dt/config/Xconfig文件,修改Dtlogin*language:zh_CN.hp15CN
再/sbin/init.d/dtlogin.rc reset
Set-up a Font Server
It is necessary to set up a font server to provide fonts to the Reflection X Xserver so that CDE and HP-UX applications will work correctly. To determine whether or not a font server is already running on the HP-UX system, execute the following command:
$ ps -ef | grep xfs
If a font server were running, you would see the following process in the process list:
/usr/bin/X11/xfs -config /etc/X11/fs/config -port 7000 -daem
If a font server is already running, continue with the section "Configuring an Existing Font Server"; otherwise, go to the section "Configuring and Starting a New Font Server"
-
CONFIGURING AN EXISTING FONT SERVER
- Append the following font path to the end of the catalogue= line in the font server's config file, /etc/X11/fs/config:
$ /usr/dt/config/xfonts/C/
NOTE: All font paths are separated by a comma (,).
- Stop and restart the font server:
$ /sbin/init.d/xfs stop; /sbin/init.d/xfs start
- Stop and restart the font server:
NOTE: Stopping and restarting the font server while in use by users on Xterminals could potentially reset their Xserver, causing their session to exit.
-
CONFIGURING AND STARTING A NEW FONT SERVER
- Append the following font path to the end of the catalogue= line in the font server's config file, /etc/X11/fs/config:
/usr/dt/config/xfonts/C/ - Set the RUN_X_FONT_SERVER environment variable to 1 in the /etc/rc.config.d/xfs file:
RUN_X_FONT_SERVER=1 - Start the font server:
$ /sbin/init.d/xfs start - Verify that the font server has been started:
$ ps -ef | grep xfs
- Append the following font path to the end of the catalogue= line in the font server's config file, /etc/X11/fs/config:
- RESOLVING "XFontserver error: Cannot open configuration file." ERRORS
If the error, "XFontserver error: Cannot open configuration file." results when trying to start the font server, perform one of the following steps to resolve the problem:
- Install the latest font server patch.
- Add the following line to the end of the /etc/rc.config.d/xfs file:
CONFIG_FILE_NAME=/etc/X11/fs/config
SETUP Xmanager:
1 进入连接属性,点“Configure”:
2 在配置页面,点“Font”――》“Add Font Server”:
Hostname中写刚才设置的Font Server的IP,port写7000。Apply后就可以连接了