Hi,
(first of all, thanks for your help Heinz and Sven)
I would like to know if it's possible to resume a specific session with the plugin ?
The goal is to list sessions (with x2golistsessions) on the server, and paste the session id in the x2go.server file in order to resume it.
I don't want to use the resuming form showed by the plugin (my users are confused with it). I'm making a webapp, and I would list sessions in a web page, and make it possible to resume paused sessions just by clicking on a link.
Thanks in advance !
Regards, Guillaume
Salut Guillaume,
I don't want to use the resuming form showed by the plugin (my users are confused with it). I'm making a webapp, and I would list sessions in a web page, and make it possible to resume paused sessions just by clicking on a link. Basically, I'd say this is actually not a plugin specific question. What you need to do is (1) make your webapp talk to the x2go server to get the list of sessions. The webapp should then dynamically create a configuration file that is loaded by the plugin, which then (2) resumes the session.
1: Getting the list of sessions shouldn't be a problem at all: If your webapp is in python, you can use the pyx2go library and only need three lines of code - if not, find an ssh library for your programming language, connect to the x2go host using ssh, execute x2golistsessions and parse the output.
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if you can find something. If not - get the source code for the plugin and the x2goclient and modify it to your needs. It is GPL and it should _theoretically_ be possible to get it.
Jörg
Thanks in advance !
Regards, Guillaume
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
On Wed, 22 Sep 2010 15:56:01 +0200, Jörg Sawatzki <joerg.sawatzki@web.de> wrote:
Basically, I'd say this is actually not a plugin specific question. What you need to do is (1) make your webapp talk to the x2go server to get the list of sessions. The webapp should then dynamically create a configuration file that is loaded by the plugin,
It's already done :)
1: Getting the list of sessions shouldn't be a problem at all: If your webapp is in python, you can use the pyx2go library and only need three lines of code - if not, find an ssh library for your programming language, connect to the x2go host using ssh, execute x2golistsessions and parse the output.
For another reason I already use paramiko (maybe I'll release some code). Then it's exactly what I do.
(is it possible to write a Python plugin for web browser ?)
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if
Indeed, I didn't see any option in the docs and the code.
you can find something. If not - get the source code for the plugin and the x2goclient and modify it to your needs. It is GPL and it should _theoretically_ be possible to get it.
I'm afraid I don't have time to do this now, and I don't want to modify the code before the — official — release. Maybe in one month if the plugin is officially released.
I'll read again the code and see if I find something… Thanks for your reply !
Guillaume
On Wed, 22 Sep 2010 16:17:55 +0200, " (UNTRUSTED, sender <x2go-dev-bounces@lists.berlios.de> is not authenticated)" <contact@gmli.fr> wrote:
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if
Indeed, I didn't see any option in the docs and the code.
It's not mentioned in "x2goclient --help", but the client has the "sessionid" option.
Unfortunately x2goplugin doesn't seem to recognize it. So, I have to try to build the plugin…
Guillaume
Hi Guillaume,
it's nice to hear that you use paramiko. It would be cool if you could have a look at the pyx2go stuff (http://github.com/joerg86/pyx2go) and see if you can use some parts of it or contribute missing things, as we have the paramiko approach as well in there. I know, for the list sessions thing it's not really necessary to use it - but I think it's better to early start discussing ideas/requirements and join our forces to avoid that somebody does work that has already been done!
Thanks,
Jörg
Am Mittwoch, den 22.09.2010, 16:33 +0200 schrieb contact@gmli.fr:
On Wed, 22 Sep 2010 16:17:55 +0200, " (UNTRUSTED, sender <x2go-dev-bounces@lists.berlios.de> is not authenticated)" <contact@gmli.fr> wrote:
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if
Indeed, I didn't see any option in the docs and the code.
It's not mentioned in "x2goclient --help", but the client has the "sessionid" option.
Unfortunately x2goplugin doesn't seem to recognize it. So, I have to try to build the plugin…
Guillaume
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Guillaume,
better get yourself a coffee and relax. Don't try to build the plugin. Yes, it is GPL and you should theoretically have access to the sources but the developers ignore that fact for months now. So better do something productive than trying to modify that plugin. Just got a mail from Heinz saying he is in a train and very busy (as usual) and the plugin sources are not available.
Jörg
Am Mittwoch, den 22.09.2010, 18:16 +0200 schrieb Jörg Sawatzki:
Hi Guillaume,
it's nice to hear that you use paramiko. It would be cool if you could have a look at the pyx2go stuff (http://github.com/joerg86/pyx2go) and see if you can use some parts of it or contribute missing things, as we have the paramiko approach as well in there. I know, for the list sessions thing it's not really necessary to use it - but I think it's better to early start discussing ideas/requirements and join our forces to avoid that somebody does work that has already been done!
Thanks,
Jörg
Am Mittwoch, den 22.09.2010, 16:33 +0200 schrieb contact@gmli.fr:
On Wed, 22 Sep 2010 16:17:55 +0200, " (UNTRUSTED, sender <x2go-dev-bounces@lists.berlios.de> is not authenticated)" <contact@gmli.fr> wrote:
2: This is probably the point where it all breaks: As far as I can see, the x2goplugin does not have an option for this "x2go.server" file that tells it to resume a specified session. Maybe dig through the docs if
Indeed, I didn't see any option in the docs and the code.
It's not mentioned in "x2goclient --help", but the client has the "sessionid" option.
Unfortunately x2goplugin doesn't seem to recognize it. So, I have to try to build the plugin…
Guillaume
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
On Wed, 22 Sep 2010 19:50:20 +0200, Jörg Sawatzki <joerg.sawatzki@web.de> wrote:
Guillaume,
Jörg,
better get yourself a coffee and relax. Don't try to build the plugin.
I'm currently drinking my coffee :)
Yes, it is GPL and you should theoretically have access to the sources but the developers ignore that fact for months now. So better do something productive than trying to modify that plugin. Just got a mail from Heinz saying he is in a train and very busy (as usual) and the plugin sources are not available.
Are you sure that the plugin isn't buildable ? I don't know what is required to build a firefox plugin…
Guillaume
Hi,
Are you sure that the plugin isn't buildable ? I don't know what is required to build a firefox plugin… Heinz, one of the main developers just confirmed it in a private e-mail to me. The sources of the extended x2goclient that is used in the plugin are not available. The only thing we have is two year old sources - but they won't help us! Sorry for that - but the only thing you can probably do is mail Alex or Heinz and tell them that the requirements of the GPL are not voluntary but mandatory. I have been fighting for this for months now (since the plugin's binaries are available) and I am quite exhausted and depressed by the nerver ending excuses of them. They pretend that law and order does not apply to them.
Jörg
Guillaume
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev