How to install vnc server on aix

Since IBM adopted Linux, promoting it as a fully featured, enterprise ready OS it started devoting some of it's resources to port a lot of useful Linux applications on to its power (PPC) platform not only for Linux on power but also AIX.

On AIX's installation media you will find the "Linux toolbox for AIX" CD that contains the VNC package.
If that CD isn't available you should do the following to get VNC up and running:

-- Download the rpm for you AIX version from:
ftp://ftp.software.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/vnc/vnc-...
* the aix 5.1 package worked for me on aix 5.3 too so I guess it's 5.\* *
Update: This rpm package also works for aix 6.1

-- Install the rpm :

rpm -Uhv vnc-3.3.3r2-3.aix5.1.ppc.rpm

-- Edit the vncserver script that launches the application:

Replace this: $cmd .= " -auth $xauthorityFile";
with: $cmd .= " -ac";
(a reader pointed out that the above could be a security risk, so if $xauthorityFile is where the vncserver scripts expects it to be [1], you could ignore that replacement and issue this "xhost +localhost" to bypass X security restrictions and allow Xvnc to connect to the X server on localhost)

This: # $cmd .= " -fp /usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/";
With: $cmd .= " -fp /usr/lib/X11/fonts/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/";

And this: $vncClasses = "/usr/local/vnc/classes";
with this: $vncClasses = "/opt/freeware/vnc/classes";

-- As the user that you are going to login remotely, run the vncserver command, insert your desired password and rerun the vncserver command to start the daemon.

-- Point your favorite java-enabled browser (use firefox) to http://'your-server':'port'/ and log in.

When you started the vncserver it replied with a displayID that was 1, 2 or 3 depending on which one you got you must use one of the following port numbers: 5801, 5802, 5803.

I'm sure you figured out which displayID goes with which port number.

[1] ($xauthorityFile = "$ENV{XAUTHORITY}" || "$ENV{HOME}/.Xauthority";)

Tags:

Comments