OK, I have all that working... sort of.

I have edited the file in my /usr/bin/classes and looked at the browser. I
have used a size of 1024/768

I then did the Xvnc line, (whilst logged on as root), used my browser to
connect to linux:8080 and presto. I got a screen, with a login box (the vnc
login, not linux login). When the screen came up, I have got a lot of space,
outside the screen. (I mean, the VNC class is taking the 1024, but it looks
like the display is only showing 800/600)

Once I have this working, I will publish it.

My question at this point...

I want to be able to use the Linux login instead of the VNC login. (At the
moment, I get both). I assume I need to get nobody to execute the Xvnc line.
How do I do that?

BTW, I got a font path not found error.

Regards.
Dave Colliver.

----- Original Message -----
From: "David Colliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 5:11 PM
Subject: Re: Browswer / Java access to Xvnc without the need to start vnc
serve r in advance!


> Further to my last (which I haven't received yet...
>
> I have found index.vnc in /usr/bin/classes
>
> This has...
>
> <!-- index.vnc - default html page for Java VNC viewer applet.  On any
file
>      ending in .vnc, the HTTP server embedded in Xvnc will substitute the
>      following variables when preceded by a dollar: USER, DESKTOP,
DISPLAY,
>      APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT.  Use two dollar signs
>      ($$) to get a dollar sign in the generated html. -->
>
> <HTML>
> <TITLE>
> $USER's $DESKTOP desktop ($DISPLAY)
> </TITLE>
> <APPLET CODE=vncviewer.class ARCHIVE=vncviewer.jar
>         WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT>
> <param name=PORT value=$PORT>
> </APPLET>
> </HTML>
>
> Am I able to edi this file to make it work?
> Would I have to restart something to make it work?
>
> Any other questions that readers might ask?
>
> Regards.
> Dave Colliver.
> ~~
> All I ask is a chance to prove that money can't make me happy.
>
> Collectible dolls from http://www.collectorsdolls.com
> Web design? Web hosting? http://www.revilloc.com is the answer.
> Tips, tricks and articles for programmers of all languages on
> http://www.sourcecodecorner.com
> Planning a wedding? http://www.bmcweddings.com
> Advertise your car for free on http://www.drivingseat.com
>
>
> ----- Original Message -----
> From: "Beerse, Corni" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 11, 2002 4:14 PM
> Subject: RE: Browswer / Java access to Xvnc without the need to start vnc
> serve r in advance!
>
>
> > David,
> >
> > From my (nerd-ish) view, I wanted to describe all and say it all. Since
I
> > needed a webserver, I started describing the apache setup, wich is not
> > needed at all, we have Xvnc, which can do it too. So add to your setup
the
> > next steps:
> >
> > exchange the /usr/share/vnc/classes/index.vnc file with the next file:
> > ------start of new index.vnc file-----
> > <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>
> > ------end of new index.vnc file-----
> >
> > Now start `vncserver`. IF you view it with a vncvierer, you get the
normal
> > setup (static session). If you view it with your browser, you get the
new
> > login.
> >
> > Otherwise, start `Xvnc :99 -httpd /usr/share/vnc/classes -httpport 8080`
> and
> > browse to http://<machine>:8080/ and off you go.
> >
> >
> > CBee
> >
> >
> > btw: the above just gets it going. The Xvnc :99... is just used for
> > webserver. Other options can be added to minimize the other usability.
> >
> > > -----Original Message-----
> > > From: David Colliver [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 11, 2002 3:08 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Browswer / Java access to Xvnc without the need to start
> > > vncserve r in advance!
> > >
> > >
> > > I am the editor of the page at sourcecodecorner.com. I don't quite
> > > understand what you have written, though reading between the
> > > lines, it is
> > > for the Java applet to work.
> > >
> > > If you can re-iterate this thread, with the changes neccesary to make
> > > everything work in a fairly simple manner (that the readers
> > > can understand),
> > > then I will only be too happy.
> > >
> > > Best regards.
> > > Dave Colliver.
> > > ~~
> > > All I ask is a chance to prove that money can't make me happy.
> > >
> > > Collectible dolls from http://www.collectorsdolls.com
> > > Web design? Web hosting? http://www.revilloc.com is the answer.
> > > Tips, tricks and articles for programmers of all languages on
> > > http://www.sourcecodecorner.com
> > > Planning a wedding? http://www.bmcweddings.com
> > > Advertise your car for free on http://www.drivingseat.com
> > >
> > >
> > > ----- Original Message -----
> > > From: "Beerse, Corni" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, April 11, 2002 1:46 PM
> > > Subject: Browswer / Java access to Xvnc without the need to
> > > start vncserve r
> > > in advance!
> > >
> > >
> > > > 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
> > > >
> > > ---------------------------------------------------------------------
> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > ~~~~~~~~~~~~~~
> > > To download your own free RevilloC mailserver, visit
> > http://www.revilloc.com/mailserver
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > ---------------------------------------------------------------------
> > 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
> > ---------------------------------------------------------------------
> > ---------------------------------------------------------------------
> > 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
> > ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> 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
> ---------------------------------------------------------------------
---------------------------------------------------------------------
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