HP-UX
- VNC®
- > Installing and removing
- > HP-UX
The following instructions are valid for HP-UX 11i r3. Instructions may differ slightly for different versions of HP-UX, but the principle is the same. If in doubt, consult the operating system documentation.
Patching HP-UX 11.00
You must first apply HP's most recent linker tool cumulative patch, PHSS_39077, to computers running HP-UX 11.00.
Note this patch is currently only available if you have a support agreement with HP. For more information, visit HP's IT Resource Center.
Removing VNC Enterprise Edition
If VNC Enterprise Edition is installed, you should remove it.
If you have a valid support and
upgrades contract, first preserve your license key. To do this, copy
/etc/vnc/licensekey to a safe location. If you do not have a
valid support and upgrades contract, you need take no action; you will need
to obtain a new license key anyway.
To find out whether you have a valid support and upgrades contract, run the command
vnclicense -list. A contract is valid for one year from the
date of issue of the license key, so in the following example
until 17th November 2012:
1 10 desktops 2011/11/18 [full]
To uninstall VNC Enterprise Edition, run the following command as a user with administrative privileges:
swremove vnc-E
Downloading VNC
Download the VNC for HP-UX depot tarball. VNC Server and VNC Viewer are included as separate installable packages.
Note: VNC Viewer is freely available to download to as many other computers that you wish to exercise control from as you like.
If you wish to script installation of VNC Server and VNC Viewer together, download the VNC for HP-UX generic installer instead.
Installing VNC
At the command line
Installing VNC at the command line or via SSH is quick and convenient
providing defaults are acceptable. To install VNC Server, run the following
command as a user with administrative privileges, and perform the standard
installation procedure:
swinstall -s <absolute path to VNC Server>.depot
Note: This command fails with a relative path.
To install VNC Viewer, repeat this operation for <VNC Viewer>.depot.
Scripting installation
If you want to configure installation, run a script to specify programs and locations.
Licensing VNC Server
VNC Server must be licensed. If it is not, users cannot connect. More information…
Note: VNC Viewer does not require a license key.
Reinstating a valid VNC Enterprise Edition license key
To do this, copy a preserved licensekey file back to /etc/vnc.
At the command line
Obtain a license key, and
then run the following command as a user with administrative privileges:
/usr/local/bin/vnclicense -add <license key>
Additional steps
VNC is installed in /usr/local/bin.
To configure paths for all users, and to provide access to the reference
documentation, add the following to /etc/profile:
Removing VNC
Run the following command as a user with administrative privileges:
swremove realvnc-vnc-server realvnc-vnc-viewer


