Hi Gary,
On 03/18/2009 02:35 PM, Gary Detro wrote:
> I am trying to connect to VNC from a web browser. Everything I read
> says VNC has a built in mini-http server that allows it using the
> following format:
>
> http://servername:580x <http://servername:580x/> (where x is the vnc
> port that is started).
I think there is a difference between distros.
SLES and RHEL provide a VNC server which can be accessed using a VNC client
(that might have to be installed on client side first).
SLES additionally provides an embedded HTTP server serving the tightVNC client
written in Java, so you can use VNC on any client with a Java-capable web
browser without the need for a native VNC client.
Since I was also interested whether RHEL provides such an HTTP served VNC
client, I confirmed that this does not seem to be the case:
RHEL 5.3
Nothing listens on TCP port 580x, only on 590x which requires a VNC client to
connect:
sh-3.2# netstat -al
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:5901 *:* LISTEN
tcp 0 0 *:6001 *:* LISTEN
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 *:6001 *:* LISTEN
tcp 0 0 *:22 *:* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 1822 /tmp/.X11-unix/X1
Xvnc server is started without http options:
sh-3.2# ps ww
PID Uid VmSize Stat Command
1 root 1428 S /bin/sh /init
2 root SW< [migration/0]
3 root SWN [ksoftirqd/0]
4 root SW< [migration/1]
5 root SWN [ksoftirqd/1]
6 root SW< [migration/2]
7 root SWN [ksoftirqd/2]
8 root SW< [events/0]
9 root SW< [events/1]
10 root SW< [events/2]
11 root SW< [khelper]
12 root SW< [kthread]
16 root SW< [kblockd/0]
17 root SW< [kblockd/1]
18 root SW< [kblockd/2]
19 root SW< [cqueue/0]
20 root SW< [cqueue/1]
21 root SW< [cqueue/2]
70 root SW< [cio_chp]
71 root SW< [cio]
72 root SW< [cio_notify]
73 root SW< [kslowcrw]
131 root SW< [appldata]
151 root SW [pdflush]
152 root SW [pdflush]
153 root SW< [kswapd0]
154 root SW< [aio/0]
155 root SW< [aio/1]
156 root SW< [aio/2]
177 root SW< [kmcheck]
357 root 960 S /sbin/xinetd -stayalive -reuse -pidfile
/tmp/xinetd.pid
359 root 1484 S /sbin/sshd
360 root 3208 S sshd: r...@pts/0
362 root 1504 S -loader
363 root SW< [kauditd]
389 root SW< [rpciod/0]
390 root SW< [rpciod/1]
391 root SW< [rpciod/2]
488 root SW< [loop0]
490 root 1504 S -/bin/sh
516 root SW< [kstriped]
567 root SW< [gfs2_scand]
568 root SW< [glock_workqueue]
569 root SW< [glock_workqueue]
570 root SW< [glock_workqueue]
591 root SW< [ksnapd]
602 root SW< [kmpathd/0]
603 root SW< [kmpathd/1]
604 root SW< [kmpathd/2]
605 root SW< [kmpath_handlerd]
633 root 616 S -loader
634 root 54416 S /usr/bin/python /usr/bin/anaconda -m @/tmp/method
--dlabel --graphical --selinux --lang en_US.UTF-8
635 root 22276 S /usr/bin/python /usr/bin/anaconda -m @/tmp/method
--dlabel --graphical --selinux --lang en_US.UTF-8
636 root 4904 S //usr/bin/Xvnc :1 -nevershared -depth 16 -geometry
800x600 -br IdleTimeout=0 -auth /dev/null -once DisconnectClients=false
desktop=Red Hat Enterprise Linux Server 5 installation on host foo.bar -rfbauth
/tmp/vncpasswd_file
638 root 3724 S //usr/bin/mini-wm --display :1
639 root 3204 R sshd: r...@pts/2
641 root 1476 S -/bin/sh
646 root 23000 S /usr/bin/python /usr/bin/anaconda -m @/tmp/method
--dlabel --graphical --selinux --lang en_US.UTF-8
654 root 924 R ps ww
The parameters necessary for providing HTTP access to an HTML-embedded VNC java
client are not set, i.e. it is disabled:
sh-3.2# DISPLAY=:1 vncconfig -desc httpPort
TCP port to listen for HTTP
sh-3.2# DISPLAY=:1 vncconfig -get httpPort
0
sh-3.2# DISPLAY=:1 vncconfig -desc httpd
Directory containing files to serve via HTTP
sh-3.2# DISPLAY=:1 vncconfig -get httpd
The java class files of the VNC client to be served are not part of the install
image:
sh-3.2# find / -name "*Vnc*"
sh-3.2# find / -name "*vnc*"
/mnt/runtime/usr/bin/Xvnc
/mnt/runtime/usr/bin/vncconfig
/mnt/runtime/usr/bin/vncpasswd
/mnt/runtime/usr/lib/anaconda/vnc.py
/mnt/runtime/usr/lib/anaconda/vnc.pyc
/mnt/runtime/usr/lib64/xorg/modules/extensions/libvnc.so
/tmp/vncserver.log
/tmp/vncpasswd_file
Steffen
Linux on System z Development
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390