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

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

    1. 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 (,).

    1. 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

    1. 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/
    2. Set the RUN_X_FONT_SERVER environment variable to 1 in the /etc/rc.config.d/xfs file:

           RUN_X_FONT_SERVER=1
    3. Start the font server:

           $ /sbin/init.d/xfs start
    4. 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”:

xManager Properties X-Server


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

xManager Default Profile Properties font

Hostname中写刚才设置的Font ServerIPport7000Apply后就可以连接了

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值