[X2go-dev] x2goplugin
John A. Sullivan III
jsullivan at opensourcedevel.com
Mon Jun 28 20:42:28 CEST 2010
On Mon, 2010-06-28 at 20:31 +0200, Mike Gabriel wrote:
> Hi Paul,
>
> thank you for your reply.
>
> On Mo 28 Jun 2010 09:08:36 CEST Paul van der Vlis wrote:
>
> >> Main question is: how do i configure the sessions with the x2go plugin?
> >> I understood that there is a .css file and a javascript file managing
> >> the installation and upgrade of the xpi plugin code in firefox. However,
> >> I couldn't find any hints where the plugin retrieves its configuration
> >> from...
> >>
> >> Hints are very much appreciated as I would like to play with the plugin...
> >
> > I think you can use the html sourcecode of http://plugin.x2go.org
>
> I can't see any hints on configuring the x2go server session from
> within the html framework... There must be another answer...
>
> Mike
>
Here is how we did it.
We created our local web server and, in the root, we placed a file named
x2gobase.html with the following contents:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SimplicITy Data Service</title>
<link rel="stylesheet" type="text/css"
href="http://plugin.x2go.org/media/x2goplugin.css">
<script src="http://plugin.x2go.org/media/x2goplugin.js"
type="text/javascript"></script>
</head>
<body onload="checkPlugin()">
<div id="x2goplugin">
<object src="location"
type="application/x2go"
pluginspage="http://plugin.x2go.org/index.html"
pluginurl="http://plugin.x2go.org/download/x2goplugin_linux32.xpi"
data="config.x2go"
hidden="false"
name="x2goplugin"
palette="background"
height="100%"
hspace="0"
vspace="0"
width="100%">
<!--x2goplugin //-->
</object>
</div>
<div id="description">
<h4>SimplicITy Plugin</h4>
<p>This website will offer you a plugin named "x2goplugin" which
will enable you to start or reconnect to your SimplicITy desktop.</br>
For more information about SimplicITy and other services to simplify
your office, please visit <a
href="http://www.pacifera.com">www.pacifera.com</a></br>
For more information about X2Go, please visit <a
href="http://www.x2go.org">http://www.x2go.org</a>.
</p>
</div>
</body>
</html>
As you can see, this is just slightly customized to our needs - very
simple to adapt.
We then created subdirectories for each user. In each subdirectory, we
created a link to the x2gobase.html named index.html. In the same user
subdirectory, we created a file named config.x2go with contents similar
to the following:
session=SimplicITy (our utility office product name)
server=x2gohost.mycompany.com
user=<we leave this blank as an extra security precaution>
sshport=443(or whatever port the user is using)
command=KDE
rootless=false
It has worked well for us other than the few bugs we reported. Good
luck - John
More information about the x2go-dev
mailing list