Simplified Chinese Solaris User's Guide

Appendix C Running Networked Applications

Introduction

You can run Simplified Chinese localized applications on a remote machine as explained in Appendix C, "Networked Applications," in Solaris Advanced User's Guide. That guide describes the advanced features of the OpenWindows environment that enable you to run applications that reside on another machine on your network.


Note -

Most users do not need to read this appendix. If you want to explore running networked applications, ask your system administrator if there are any special applications available on your network.


Applications running on Simplified Chinese OpenWindows 2.x can be displayed remotely on an Simplified Chinese OpenWindows 3.x system. Simplified Chinese OpenWindows 3.x applications may not be able to be displayed remotely in an Simplified Chinese OpenWindows 2.x environment because not all 3.x system fonts are available in 2.x environments.

Instructions for Running Networked Applications

You must follow the information and directions in Appendix C, "Networked Applications," in Solaris Advanced User's Guide, which you should read thoroughly. You must additionally make the following adjustments to enable operation of the Simplified Chinese features of the Chinese OpenWindows environment.

Setting Required Environment Variables

To run a networked application on a remote machine you must set your environment variables correctly, as follows:

Typically, an application uses the value of the LANG environment variable to set each category that has not been set explicitly using LC_XXX.

Sample Command Sequences for Remote Operation

How to Display Remote OpenWindows V2.x on a Local OpenWindows V3.x System

The following sequence of commands is an example of starting a Shell Tool on a remote Simplified Chinese Solaris 1.x (including Simplified Chinese OpenWindows 2.x) machine. In this example, your local machine is running Solaris 2.x (including Simplified Chinese OpenWindows 3.x) , and the remote machine (where you start the Shell Tool) has Simplified Chinese Solaris 1.x, including Simplified Chinese OpenWindows 2.x:

  1. Type the following command.


    local_machine% xhost +remote_machine
    
  2. Log in on the remote machine.


    local_machine% rlogin remote_machine
    

    or


    local_machine% telnet remote_machine 
    
  3. Set the language locale on the remote machine.


    remote_machine% setenv LANG chinese
    
  4. Set the remote machine to display on your local machine.


    remote_machine% setenv DISPLAY local_machine:0.0 
    
  5. Set the OpenWindows environment home directory.


    remote_machine% setenv OPENWINHOME /usr/openwin
    
  6. Set the path to the OpenWindows LD library.


    remote_machine% setenv LD_LIBRARY_PATH $OPENWINHOME/lib
    
  7. Start an OpenWindows application, for example, a Shell Tool:


    remote_machine% $OPENWINHOME/bin/xview/shell tool -lc_basiclocale    oldlocale
     -lc_inputlang oldlocale -lc_displaylang oldlocale
    

    To run a different application, use that application's command in place of shelltool.