Wednesday, September 26, 2007

Install VNC on Solaris DomU at CentOS 5 or Debian Etch Dom0 (64 bit)

This posting follows up [2] and gives step by step instruction how to
set up VNC on OpenSolaris DomU. In general everything seems to be already
told in [1], however as Linux person I can hardly imagine OpenSolaris
to compete Linux anywhere out of Enterprise Environment and at the same time
OpenSolaris might be not the best choice for Enterprise.

1.Enable sshd tcp port forwarding.

a) Configure the remote Solaris Secure Shell server to allow port forwarding.
Change the value of AllowTcpForwarding to yes in the /etc/ssh/sshd_config file.

# Port forwarding
AllowTcpForwarding yes

b) Restart the Solaris Secure Shell service.

# svcadm restart network/ssh:default

2.Install VNC (Tightvnc 1.3.9 for UNIX)
a)Download tightvnc-1.3.9_unixsrc.tar.gz from
b)Install Sun Studio 12 C,C++ components to compile TightVNV 1.3.9 source without problems.I used "installer" script . Just fixed one thing:-

Installer script is expecting pl=`uname -i` to return "i86pc",
actually it returns "i86xpv" on Solaris DomU

Then take care of PATH environment variable before compiling TightVNC.
If Sun Studio has been installed under /opt :-

# export PATH=/opt/SUNWspro/bin:/usr/dt/bin:usr/X/bin:/usr/openwin/bin:$PATH

before running "make World" in directory ,where VNC tar file was extracted,then
follow README instructions.

Set up VNC to auto start on boot following [1].
Starting up graphical console :-

1.Bring up Solaris DomU

2.Establish SSH connection from Linux Dom0 to Solaris DomU:-

3. Run vncviewer from another Linux Dom0 shell:-

Several snapshots on Debian Etch (x86_64):-

Connecting to Oracle 10g R2 instance running on Solaris DomU from Linux Dom0:-