当前位置: 技术问答>linux和unix
HP-UX.应用HP-UX搭建Fonts Server,结合xManager连接,并在终端显示中文
来源: 互联网 发布时间:2015-12-25
本文导语: 还有些助于理解的图片资料,详细访问: http://blog.csdn.net/ccnp_Server/archive/2006/11/10/1376944.aspx 几位工作伙伴的结晶,不敢独享,特此声明! 特别鸣谢:HP-800 1st 确认系统支持中文语言环境 执行 locale 查询 # locale -a...
还有些助于理解的图片资料,详细访问:
http://blog.csdn.net/ccnp_Server/archive/2006/11/10/1376944.aspx
几位工作伙伴的结晶,不敢独享,特此声明!
特别鸣谢:HP-800
1st 确认系统支持中文语言环境
执行 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
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
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后就可以连接了
http://blog.csdn.net/ccnp_Server/archive/2006/11/10/1376944.aspx
几位工作伙伴的结晶,不敢独享,特此声明!
特别鸣谢:HP-800
1st 确认系统支持中文语言环境
执行 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
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
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后就可以连接了
|
沙发,收藏。
|
其实通过NFS可以更简单的解决这个问题。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。