Hello.
I mainly use x2goclient-cli to start/resume x2go sessions, for these reasons:
If I've interpreted recent mail traffic (and roadmap in wiki) correctly, x2goclient-cli is deprecated and will no longer be actively develeoped. As far as I can see there currently are two alternatives to using x2goclient-cli:
x2goclient works quite well from the command line (with --hide), but unfortunately you can't create a session only with command line options, it needs a manually (GUI) created session to be able to connect. If you use x2goclient on multiple machines with multiple sessions, it takes a lot of work to set them all up. If you want to change or add anything, all clients will have to be manually updated.
pyhoca-cli supports needed command line options, but can't automatically resume an existing session, you have to manually list existing sessions and manually tell which session you want to reconnect to. Also, closing the window terminates the session, x2goclient and -cli suspend the session, you have to press Ctrl-C to suspend a pyhoca-cli session which is cumbersome if you've put it in the background.
Are there any plans to add command line functionality to x2goclient to make it possible to connect/resume sessions without having to define them in the GUI? As far as I can see, the option --user would need to accept non-LDAP usernames and the options --server and --ssh-key would have to be added.
Alternatively, can pyhoca-cli be updated with:
Cheers, Daniel
Hi Daniel,
On Mi 27 Jul 2011 09:13:35 CEST Daniel Lindgren wrote:
If I've interpreted recent mail traffic (and roadmap in wiki) correctly, x2goclient-cli is deprecated and will no longer be actively develeoped. As far as I can see there currently are two alternatives to using x2goclient-cli:
x2goclient-cli is rather an explicatory proof of concept from now on
and is actually not actively maintained any more. This might change in
the future, but currently, there seems to be noone really interested
in the continuation of the work.
- An option to automatically resume an existing session if there is one or create a new one if there isn't. http://code.x2go.org/horde4/whups/ticket/?id=86
- An option to suspend a running session if the windows is closed, not terminate it. Makes it possible to start pyhoca-cli in the background.
This is actually the case. It now depends on the session mode you use:
desktop, shadow or rootless.
If you close a rootless session window (e.g. a firefox running on the
X2go server), then of course the firefox application gets close and
thus the session terminated.
If you close a desktop session window (e.g. a GNOME desktop) then the
session gets suspended...
If you close a window with a shadow session (option --share-desktop)
then the shadow session gets terminated, but not so the session that
the shadow session was connected to.
Hope that helps, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike,
2011/7/27 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
- An option to automatically resume an existing session if there is one or create a new one if there isn't.
Thanks!
- An option to suspend a running session if the windows is closed, not terminate it. Makes it possible to start pyhoca-cli in the background.
This is actually the case. It now depends on the session mode you use: desktop, shadow or rootless.
If you close a rootless session window (e.g. a firefox running on the X2go server), then of course the firefox application gets close and thus the session terminated.
If you close a desktop session window (e.g. a GNOME desktop) then the session gets suspended...
If you close a window with a shadow session (option --share-desktop) then the shadow session gets terminated, but not so the session that the shadow session was connected to.
OK, thanks for the info. I didn't set the session type at all, the command line I use looks like this (with added "-t desktop"):
pyhoca-cli --server servername -c gnome-session -u username -k ~/.ssh/id_dsa --add-to-known-hosts --sound none --kbd-layout se --kbd-type pc105/se -g 1238x929 --pack 16m-png-9 -t desktop
I'm having trouble closing the window, nothing happens. I've tried clicking the close window control, choosing "Close" from the window menu and hitting Alt+F4 ... nothing. Minimize and maximize window controls work.
If I start a session with x2goclient-cli to the same server I can close the window, i.e. it shouldn't be a server issue.
I'm using pyhoca-cli version 0.1.4.1 on Debian Squeeze, the server is also Debian Squeeze with x2goserver 3.0.99.5.
Cheers, Daniel
On Mi 27 Jul 2011 12:46:39 CEST Daniel Lindgren wrote:
pyhoca-cli --server servername -c gnome-session -u username -k ~/.ssh/id_dsa --add-to-known-hosts --sound none --kbd-layout se --kbd-type pc105/se -g 1238x929 --pack 16m-png-9 -t desktop
How about this:
pyhoca-cli --server <servername> -c GNOME -u <username> --kbd-layout se --kbd-type pc105/se -g 1238x929 --pack 16m-png-9
I'm having trouble closing the window, nothing happens. I've tried clicking the close window control, choosing "Close" from the window menu and hitting Alt+F4 ... nothing. Minimize and maximize window controls work.
I always use the above line... works brilliant for me...
If I start a session with x2goclient-cli to the same server I can close the window, i.e. it shouldn't be a server issue.
Ok...
I'm using pyhoca-cli version 0.1.4.1 on Debian Squeeze, the server is also Debian Squeeze with x2goserver 3.0.99.5.
Both should be fine...
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
2011/7/27 Mike Gabriel <mike.gabriel@das-netzwerkteam.de>:
How about this:
pyhoca-cli --server <servername> -c GNOME -u <username> --kbd-layout se --kbd-type pc105/se -g 1238x929 --pack 16m-png-9
Yep, that did the trick, I can close the window. I copied most of the command line from my x2goclient-cli aliases, where I've used "--command gnome-session", probably been lucky to have it work there.
Are the session type options ("GNOME", "KDE" etc) documented somewhere? I've tried to find them in man pages (x2goclient, pyhoca-cli) and the wiki. BTW, in the man page for pyhoca-cli "-d" is shown as a short form of both "--debug" and "--quiet".
I was wrong about the session terminating when the window is closed, pyhoca-cli writes this to the terminal:
pyhoca-cli[2884] (PyHocaCLI) NOTICE: X2go session <session name> has terminated
But if I run x2golistsessions on the server, the session is suspended, not terminated.
If I press Ctrl+C to suspend the session, pyhoca-cli writes this to the terminal:
pyhoca-cli[2913] (PyHocaCLI) NOTICE: X2go session <session name> has been suspended
That's probably the source of the confusion.
Anyway, with auto resume functionality pyhoca-cli will be able to replace x2goclient-cli for me, perhaps with the added bonus of being available on Windows too?
Cheers, Daniel