Wednesday 15 June 2011

Setup VNC Server in Solaris Sparc

Steps to Follow
The following steps are performed on the Solaris 10 update 5 system and the remote system which will be accessing the VNC desktop (the remote system does NOT have to be Solaris 10 update 5)
NOTE: This procedure configures a session that can be accessed via HTTP in a browser such as Mozilla, FireFox, Internet Explorer, etc.

ON THE SERVER (the system you wish to gain remote access to)
=============================================
1. ensure that Solaris 10 Update 5 is installed on the system:

root@solarishost33# more /etc/release
Solaris 10 5/08 s10s_u5wos_10 SPARC
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 24 March 2008

2. ensure that the $PATH variable includes /usr/X11/bin and /usr/openwin/bin:

root@solarishost33# echo $PATH
/usr/bin:/usr/sbin:/usr/ucb:/etc:/usr/platform/sun4u/sbin:/usr/lib/nis:/usr/l
n:/export/install/bin:/usr/X11/bin:/usr/openwin/bin:.

3. execute the vncserver(1) command:

/usr/bin/vncserver -httpd

(screen output)

You will require a password to access your desktops.

Password:
Password must be at least 6 characters - try again
Password:
Verify:

New '10.30.21.33:1 (root)' desktop is10.30.2133:1

Starting applications specified in //.vnc/xstartup
Log file is //.vnc/10.30.21.33:1.log

ON THE CLIENT (the system from which you are making the connection to the server)
===========================================================


1. on remote system browse to:

http://(SERVER):(port started)

(where SERVER is the system where /usr/bin/vncserver -httpd was run and "port started" is 5800 plus the ID specified vncserver startup message on SERVER)

e.g. if the vncserver startup messages says:

"New '10.30.21.33:1 (root)' desktop is10.30.2133:1"

then the URL for the browser window is:

http://10.30.21.33:5801/

in this case since the desktop was started on "1:" vncserver will start on port 5800

"http://10.30.21.33:5801" in a browser to see a VNC remote desktop to SERVER.

2. The "VNC Viewer: Connection Details" window will open. Click "OK" and enter the password that was set in #3 from the "ON THE SERVER" section.

3. A simple session with a terminal window will appear.


Cheers!!

No comments: