Starting the Virtual Network Computing server

To start the Virtual Network Computing (VNC) server, type the following command at the command line and press ENTER:

     CALL PGM(QSYS/QP2SHELL) PARM('/QOpenSys/QIBM/ProdData/DeveloperTools/vnc/vncserver_java' ':n')

where n is the display number that you want to use. Display numbers can be any integer in the range 1-99.

Note: Starting the VNC server displays a message that identifies the iSeries™ system name and display number, for example, "New 'X'desktop is systemname:1." Remember or write down the display number, because you use that value to configure environment variables.

When you have more than one VNC server running at the same time, each VNC server requires a unique display number. Explicitly specifying the display value when you start the VNC server makes it easy to configure the DISPLAY environment variable later. You must configure environment variables every time you want to run Java™ with NAWT.

However, when you do not want to specify the display number, simply remove ':n' from the previous command and the vncserver_java program finds an available display.

The .Xauthority file

The process of starting the VNC server either creates a new .Xauthority file or modifies an existing .Xauthority file. VNC server authorization uses the .Xauthority file, which contains encrypted key information, to prevent applications of other users from intercepting your X server requests. Secure communications between the Java virtual machine (JVM) and VNC REQUIRES that both the JVM and VNC have access to the encrypted key information in the .Xauthority file.

The .Xauthority file belongs to the profile that started VNC. The simplest way to allow both the JVM and the VNC server to share access to the .Xauthority file is to run the VNC server and the JVM under the same user profile. If you cannot run both the VNC server and the JVM under the same user profile, you can configure the XAUTHORITY environment variable to point to the correct .Xauthority file. For more information about secure communications with NAWT, see the following pages:
Related concepts
Installing iSeries Tools for Developers PRPQ
Configuring NAWT environment variables
Related tasks
Install NAWT software fixes
Configuring Java system properties
Verifying your NAWT installation
Configuring the iceWM window manager
Using a VNCviewer or Web browser