As mentioned at the end of a long tread, I got it working!

Browse to http://<machinename>/vnc gives me a java powered vnc session in a
browser without the need to start the vncserver! All just like the setup at
http://www.sourcecodecorner.com/articles/vnc/linux.asp and point the viewer
to <machinename>:5850

Here is the howto (with minor update to the previous message)
The base:
Redhat 7.2 distribution.
http://www.sourcecodecorner.com/articles/vnc/linux.asp setup works.
apache server that works
        in /etc/httpd/conf/httpd.conf:
                set "ServerName" to the (dns-) name of the machine
start apache now: `/etc/init.d/httpd restart`
start apache after reboot:
        `mv /etc/rc.d/rc5.d/K15httpd /etc/rc.d/rc5.d/S85httpd`
Create the vnc page
        mkdir /var/www/html/vnc
        cp /usr/share/vnc/classes/* /var/www/html/vnc
        create /var/www/html/vnc/index.html
<HTML>
<TITLE>
dhcp login with vnc, no vnc password required
</TITLE>
<APPLET CODE=vncviewer.class ARCHIVE=vncviewer.jar\
WIDTH=800 HEIGHT=623>
<param name=PORT value=5951>
</APPLET>
</HTML>

Browse to http://machine/vnc and off you go

Some details that do make a difference:
RedHat 7.2 default installs some firewalling security. I choose NO
firewalling at all. This firewalling can ruin your day to get it working. My
statement on this: If you do need firewalling on this machine, you don't
need vnc on this machine.

If the apache webserver is already configured, don't mingle with the
configuration. Exchange /var/www/html (my "DocumentRoot") with your
"DocumentRoot" in your apache configuration (/etc/httpd/conf/httpd.conf).

If the vnc classes are not in /usr/share/vnc/classes, check your "vncserver"
script (/usr/bin/vncserver) for the "$vncClasses".

The above html page is hardcoded to a vncserver of 800x600 to be served off
port 5951, as with the default setup at sourcecodecorner. If you alter the
size of the server, also change the WIDTH and HEIGHT parameters in the html
code. Add 23 pixels for the buttons on top, otherwise, you miss 23 pixels
off the bottom.

TO serve more sizes and more colordepts, copy index.html to 640x480, change
the WIDTH=640, HEIGHT=503 and value=5950 and browse to
http://<machine>/vnc/640x480 . You can use "index.vnc" as an other base for
index.html. Use your (html-) imagination to create any better page. (I could
not get this part working at once. I had to give the file the extention
.html which I don't like since that's also needed in the call. Then I had
update the ARCHIVE to "ARCHIVE=/vnc/vncviewer.jar", which is no problem to
me.)



BTW: can the editor update the page at
http://www.sourcecodecorner.com/articles/vnc/linux.asp?

NICE: Netscape (4.x) gave a much better view than M$IE!
OOPS: Netscape 4.x on W2K twiggles with the entire W2K display once the
screensaver comes up in the Xvnc/X11 environment... So better turn it off...

USAGE TIP: do NOT reload/refresh the browser! The vnc session is a -once
session!, you just get a new login screen...

Update ideas for the java applet:
- Add a refresh button, make it one of the top buttons.
- Add a "You have lost the session" screen once the server connection
droppes.
- In co-ordination with a -once or -init server: add a Arnold Swartsenegger:
"I'll be back" button.



Success,

CBee
---------------------------------------------------------------------
To unsubscribe, mail [EMAIL PROTECTED] with the line:
'unsubscribe vnc-list' in the message BODY
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------

Reply via email to