ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/nawtstartvncserver.htm

93 lines
6.4 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="task" />
<meta name="DC.Title" content="Starting the Virtual Network Computing server" />
<meta name="DC.Relation" scheme="URI" content="nawtinstallpre14.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtinstallfixes.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtprpqinstall.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtenvironmentvariables.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtsystemprops.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtverifyinstall.htm" />
<meta name="DC.Relation" scheme="URI" content="nawticewmwindowmgr.htm" />
<meta name="DC.Relation" scheme="URI" content="nawtvncviewer.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="nawtstartvncserver" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Starting the Virtual Network Computing server</title>
</head>
<body id="nawtstartvncserver"><a name="nawtstartvncserver"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Starting the Virtual Network Computing server</h1>
<div><div class="section"><p>To start the Virtual Network Computing (VNC) server, type the
following command at the command line and press <strong>ENTER</strong>:</p>
<pre> CALL PGM(QSYS/QP2SHELL) PARM('/QOpenSys/QIBM/ProdData/DeveloperTools/vnc/vncserver_java' ':<em>n</em>')</pre>
<p>where <em>n</em> is the display number that you want
to use. Display numbers can be any integer in the range 1-99.</p>
<p><strong>Note:</strong> Starting
the VNC server displays a message that identifies the iSeries™ system
name and display number, for example, "New 'X'desktop is <em>systemname:1</em>."
Remember or write down the display number, because you use that value to
configure environment variables.</p>
<p>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.</p>
<p>However, when you do not want to specify the display number, simply
remove <kbd class="userinput">':n'</kbd> from the previous command and the vncserver_java
program finds an available display.</p>
<p><strong>The .Xauthority file</strong></p>
<p> 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 <strong>REQUIRES</strong> that
both the JVM and VNC have access to the encrypted key information in the
.Xauthority file. </p>
<div class="p">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: <ul><li><a href="nawtenvironmentvariables.htm">Configuring NAWT environment variables</a></li>
<li><a href="nawtwas.htm">Tips for using NAWT with WebSphere<sup>®</sup> Application Server</a></li>
</ul>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="nawtinstallpre14.htm" title="To install Native Abstract Windowing Toolkit (NAWT) for Java 2 Software Development Kit (J2SDK), version 1.3, complete the following tasks.">Installing and using NAWT with J2SDK, version 1.3</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="nawtprpqinstall.htm" title="To run Native Abstract Windowing Toolkit (NAWT), you need to install the iSeries Tools for Developers PRPQ (5799PTL). If you do not have the PRPQ, you must order it.">Installing iSeries Tools for Developers PRPQ</a></div>
<div><a href="nawtenvironmentvariables.htm" title="Any time that you run Java with NAWT, you must set environment variables that tell Java the system name, the display number, and where to find each X server and the associated .Xauthority file.">Configuring NAWT environment variables</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="nawtinstallfixes.htm" title="To install NAWT, you need to ensure that you install the software fix that includes the appropriate NAWT support for the version of Java 2 Software Development Kit (J2SDK), Standard Edition that you want to use.">Install NAWT software fixes</a></div>
<div><a href="nawtsystemprops.htm">Configuring Java system properties</a></div>
<div><a href="nawtverifyinstall.htm">Verifying your NAWT installation</a></div>
<div><a href="nawticewmwindowmgr.htm">Configuring the iceWM window manager</a></div>
<div><a href="nawtvncviewer.htm">Using a VNCviewer or Web browser</a></div>
</div>
</div>
</body>
</html>