Saturday, September 06, 2008


Setting up VNC on SNV97 DomU at SNV97 Dom0



Solaris97PVM console login: root
Password:
Last login: Sat Sep 6 11:41:12 on console
Sep 6 17:30:23 Solaris97PVM login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_97 November 2008
# bash
bash-3.2# export TERM=vt100
bash-3.2# export PATH=/opt/SUNWtvnc/bin:/usr/openwin/bin:$PATH
bash-3.2# echo $PATH
/opt/SUNWtvnc/bin:/usr/openwin/bin:/usr/sbin:/usr/bin
bash-3.2# vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
xauth: creating new authority file /root/.Xauthority

New 'X' desktop is Solaris97PVM:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/Solaris97PVM:1.log

bash-3.2# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
xnf0: flags=201000843 mtu 1500 index 2
inet 192.168.1.9 netmask ffffff00 broadcast 192.168.1.255
ether 0:16:3e:1b:cd:91
lo0: flags=2002000849 mtu 8252 index 1
inet6 ::1/128


bash-3.2# ps -ef | grep vnc
root 790 1 0 17:31:25 console 0:00 /opt/SUNWtvnc/bin/Xvnc :1 -desktop X -httpd /opt/SUNWtvnc/bin/../vnc/classes -a


bash-3.2# netstat -a | grep 580
*.5801 *.* 0 0 49152 0 LISTEN
ffffff014aa7d580 stream-ord 00000000 00000000 /var/run/dbus/system_bus_socket
bash-3.2#


Launch browser to http://IP-Dom0:5801, submit password and get graphical console in browser, actually Java applet "VncViewer" loaded from DomU
in browser at Dom0.























As appears vncserver also activates port 5901:-


-bash-3.2# netstat -a | grep 580
*.5801 *.* 0 0 49152 0 LISTEN
ffffff014b9f7580 stream-ord ffffff014bb12480 00000000 /var/run/hald/dbus-9fQYRGL6mm


-bash-3.2# netstat -a | grep 590
*.5901 *.* 0 0 49152 0 LISTEN
Solaris97PVM.5901 192.168.1.7.47087 49640 0 49640 0 ESTABLISHED
ffffff014bd62590 stream-ord 00000000 00000000 /var/tmp/orbit-root/linc-3b1-0-48c30efadf528


providing usual vnc connection to SNV97 DomU via 5901.


Working with with GlassFish V2 at SNV97 Dom0.