设为首页 收藏本站
查看: 1601|回复: 0

[经验分享] HP-UX.应用HP-UX搭建Fonts Server,结合xManager连接,并在终端显示中文

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-11-5 11:40:18 | 显示全部楼层 |阅读模式
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”:

DSC0000.png
  
2 在配置页面,点“Font”――》“Add Font Server”:
DSC0001.png


Hostname中写刚才设置的Font Server的IP,port写7000。Apply后就可以连接了



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-135395-1-1.html 上篇帖子: 成功的背后!(给所有IT人)----转载:来自CSDN第一名博主 下篇帖子: CCNA CCIE 课程(看贴有用要回)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表