Hi Alex,
I noticed that x2goclient.exe can be called with --portable to make it use a session file rather than Windows registry entries.
Is it possible to specify the location of the session file?
Is there a way to export/import sessions from the registry to a sessions file and back?
Is there any kind of documentation as to which command line options are available *specifically with the Windows x2go client*?
By the way, the message that is shown after "x2goclient.exe --help" is too large to fit on my screen. It doesn't have scroll bars, and there's no way to resize that window, either. I have to use Ctrl-A, Ctrl-C to copy the message to the clipboard, then hit space to "click" the OK button that is outside of my screen, then paste the clipboard content into a text editor if I want to read all of it...
Also, is it possible to connect without a session file/registry entry, by specifying all required parameters on the command line?
if so, what are the minimum required parameters for that? Whenever I try to pass parameters, x2goclient.exe simply returns me to the command line. :-( The only parameters that seem to cause a response are "--help", "--maximize" and "--hide"...
-Stefan
Am 14.02.2012 15:29, schrieb newsgroups.mail2@stefanbaur.de:
Hi Alex,
I noticed that x2goclient.exe can be called with --portable to make it use a session file rather than Windows registry entries.
if running with --portable option, x2goclient should not save data in registry. But you should also specify a "--home" parameter.
Is it possible to specify the location of the session file?
Yes, with "--home" parameter you can specify a folder, that should be used as home directory. All X2Go data (ssh files, x2goclient settings, sessions, etc) will be read from this directory and written into this directory. On windows, if using this parameter, for x2goclient settings will be used not registry, but the ini files in "home"/.x2goclient/ (same way as for x2goclient on linux). You can also specify for windows a drive label in brackets instead of drive letter for example:
(x2godrive):/x2goclient/ instead of D:/x2goclient
x2goclient --portable --home=(x2godrive):/x2goclient/
it is useful if you using flash drive with portable x2goclient and you don't know the letter which will be assumed by windows for this drive.
Is there a way to export/import sessions from the registry to a sessions file and back?
no
Is there any kind of documentation as to which command line options are available *specifically with the Windows x2go client*?
sorry, only --help command line option. I plan to change many options and implement some new in next release of x2goclient. The same is for documentation.
By the way, the message that is shown after "x2goclient.exe --help" is too large to fit on my screen. It doesn't have scroll bars, and there's no way to resize that window, either. I have to use Ctrl-A, Ctrl-C to copy the message to the clipboard, then hit space to "click" the OK button that is outside of my screen, then paste the clipboard content into a text editor if I want to read all of it...
Also, is it possible to connect without a session file/registry entry, by specifying all required parameters on the command line?
no, you can only specify the name of preconfigured session with "--session" or id of session (from ini file or registry) with "--session-id". Perhaps I will implement such feature in future.
if so, what are the minimum required parameters for that? Whenever I try to pass parameters, x2goclient.exe simply returns me to the command line. :-( The only parameters that seem to cause a response are "--help", "--maximize" and "--hide"...
there are unary and binary parameters for x2goclient unary: --maximize --no-menu binary: --link=adsl --pack=16m-jpeg-9
the format of binary parameters is not usual for POSIX systems. I will definitive change this in next release.
-Stefan
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev regards, Alex
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Hi Stefan,
On Mi 15 Feb 2012 13:54:47 CET Oleksandr Shneyder wrote:
Am 14.02.2012 15:29, schrieb newsgroups.mail2@stefanbaur.de:
Hi Alex,
I noticed that x2goclient.exe can be called with --portable to make it use a session file rather than Windows registry entries.
if running with --portable option, x2goclient should not save data in registry. But you should also specify a "--home" parameter.
[...]
After receiving all this valuable information, could put that into the
X2Go wiki? That would be fabulous.
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...
Am 15.02.2012 13:54, schrieb Oleksandr Shneyder:
if running with --portable option, x2goclient should not save data in registry. But you should also specify a "--home" parameter.
Is it possible to specify the location of the session file? Yes, with "--home" parameter you can specify a folder, that should be used as home directory. All X2Go data (ssh files, x2goclient settings, sessions, etc) will be read from this directory and written into this directory. On windows, if using this parameter, for x2goclient settings will be used not registry, but the ini files in "home"/.x2goclient/ (same way as for x2goclient on linux). [...] I plan to change many options and implement some new in next release of x2goclient. The same is for documentation.
Thanks for the info, but this brings up a few more questions:
Is there a preferred way to make pre-configured sessions available to all users on the client, especially on Windows? I'm asking because the registry entries are written to "HKEY_CURRENT_USER", and the --portable --home=storage-directory-here options *probably* require write access to the storage directory beause of the cache files - or am I wrong?
I was hoping I could dump the sessions file into a central folder, say, c:\program files\x2goclient\, but that won't work if cache files will be stored in the same directory.
-Stefan
Am 15.02.2012 15:41, schrieb newsgroups.mail2@stefanbaur.de: [.......]
Thanks for the info, but this brings up a few more questions:
Is there a preferred way to make pre-configured sessions available to all users on the client, especially on Windows?
there is no preferred way.
I'm asking because the registry entries are written to "HKEY_CURRENT_USER", and the --portable --home=storage-directory-here options *probably* require write access to the storage directory beause of the cache files - or am I wrong?
I was hoping I could dump the sessions file into a central folder, say, c:\program files\x2goclient\, but that won't work if cache files will be stored in the same directory.
I don't think that it's good idea. You can create a file with session settings and copy it to home folder of each user
-Stefan
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Am 16.02.2012 09:28, schrieb Oleksandr Shneyder:
I was hoping I could dump the sessions file into a central folder, say, c:\program files\x2goclient\, but that won't work if cache files will be stored in the same directory. I don't think that it's good idea. You can create a file with session settings and copy it to home folder of each user
That becomes a royal pain in the lower back when you have to change something in the session file...
-Stefan
Am 16.02.2012 09:31, schrieb newsgroups.mail2@stefanbaur.de:
Am 16.02.2012 09:28, schrieb Oleksandr Shneyder:
I was hoping I could dump the sessions file into a central folder, say, c:\program files\x2goclient\, but that won't work if cache files will be stored in the same directory. I don't think that it's good idea. You can create a file with session settings and copy it to home folder of each user
That becomes a royal pain in the lower back when you have to change something in the session file...
Sorry, in my opinion the session settings are very user specific and should be not saved centrally. You can write a simple shell script to copy template file with session settings into directories of each user on system.
-Stefan
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
Am 16.02.2012 09:38, schrieb Oleksandr Shneyder:
Sorry, in my opinion the session settings are very user specific and should be not saved centrally. You can write a simple shell script to copy template file with session settings into directories of each user on system.
I do disagree somewhat. Depending on your system configuration it might be reasonable to put the configuration at some place and have the .cache at $TEMP. Besides that, adjusting this shouldn't be too much trouble. That said, I do not want to suggest that you, Alex, need to implement this, but should be open to someone (Stefan?) providing a patch.
Cheers Morty
-- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen
Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : struebe@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty
Am 16.02.2012 11:30, schrieb Moritz Struebe:
Am 16.02.2012 09:38, schrieb Oleksandr Shneyder:
Sorry, in my opinion the session settings are very user specific and should be not saved centrally. You can write a simple shell script to copy template file with session settings into directories of each user on system.
I do disagree somewhat. Depending on your system configuration it might be reasonable to put the configuration at some place and have the .cache at $TEMP.
Thank you, thank you, thank you - somebody understands me, it seems. ;-) Storing the session file in a central location makes sense when combined with --no-session-edit, an x2goclient parameter that is already there.
Besides that, adjusting this shouldn't be too much trouble. That said, I do not want to suggest that you, Alex, need to implement this, but should be open to someone (Stefan?) providing a patch.
Sorry, but if I knew enough C/C++ to patch x2goclient I'd do it, instead of asking stupid questions on the list. ;-)
Out of curiousity: How is this solved in thinclient mode on Linux, by the way?
-Stefan
Am 16.02.2012 11:36, schrieb newsgroups.mail2@stefanbaur.de:
Sorry, but if I knew enough C/C++ to patch x2goclient I'd do it, instead of asking stupid questions on the list. ;-)
I'm sure Alex or someone else can be persuaded by money. ;)
Out of curiousity: How is this solved in thinclient mode on Linux, by the way?
The home dir is extracted to Ramdisk. As the x2goclient is the only application running in X there is no way to alter files except through x2goclient.
Cheers Morty
-- Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter) Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme) Friedrich-Alexander-Universität Erlangen-Nürnberg Martensstr. 1 91058 Erlangen
Tel : +49 9131 85-25419 Fax : +49 9131 85-28732 eMail : struebe@informatik.uni-erlangen.de WWW : http://www4.informatik.uni-erlangen.de/~morty
Am 16.02.2012 11:40, schrieb Moritz Struebe:
Am 16.02.2012 11:36, schrieb newsgroups.mail2@stefanbaur.de:
Sorry, but if I knew enough C/C++ to patch x2goclient I'd do it, instead of asking stupid questions on the list. ;-)
I'm sure Alex or someone else can be persuaded by money. ;)
That kind of persuation is currently taking place for another beloved feature request of mine, I was just hoping that a centrally-stored session file might be possible as an interim solution. ;-)
On Thu, 2012-02-16 at 09:38 +0100, Oleksandr Shneyder wrote:
Am 16.02.2012 09:31, schrieb newsgroups.mail2@stefanbaur.de:
Am 16.02.2012 09:28, schrieb Oleksandr Shneyder:
I was hoping I could dump the sessions file into a central folder, say, c:\program files\x2goclient\, but that won't work if cache files will be stored in the same directory. I don't think that it's good idea. You can create a file with session settings and copy it to home folder of each user
That becomes a royal pain in the lower back when you have to change something in the session file...
Sorry, in my opinion the session settings are very user specific and should be not saved centrally. You can write a simple shell script to copy template file with session settings into directories of each user on system. <snip> I wonder if a hierarchical approach is in order as many of the settings may be completely the same for all users and it would be desirable to centrally manage them. The KDE KIOSK is a good model where settings can be set centrally, environment variables can be substituted, settings can be locked, but, if they are not locked, they can be overridden locally with the most local version taking priority. Just a thought. I share Stefan's pain :) - John
<snip> I wonder if a hierarchical approach is in order as many of the settings may be completely the same for all users and it would be desirable to centrally manage them. The KDE KIOSK is a good model where settings can be set centrally, environment variables can be substituted, settings can be locked, but, if they are not locked, they can be overridden locally with the most local version taking priority. Just a thought. I share Stefan's pain :) - John Then you will be happy to learn that Alex will soon start working on a
Am 16.02.2012 20:11, schrieb John A. Sullivan III: paid-for (as in paid-by-me) extension to the X2Go client. Step one, the short-term goal, will be the release of a client that allows for a seperate sessions file location. Step two will be a "published application" mode similar to what you may or may not know from Citrix MetaFrame/Presentation Manager/whatever-their-nom-de-jour-is: A list of applications that will be defined on the server and presented to the user in drop-down-box style after login (right-click the .
Uh, glitch in the matrix? Sorry for the deja-vu, folks, somehow my mail client decided to send two copies of that message, only one being complete, though.
Am 16.02.2012 20:11, schrieb John A. Sullivan III:
<snip> I wonder if a hierarchical approach is in order as many of the settings may be completely the same for all users and it would be desirable to centrally manage them. The KDE KIOSK is a good model where settings can be set centrally, environment variables can be substituted, settings can be locked, but, if they are not locked, they can be overridden locally with the most local version taking priority. Just a thought. I share Stefan's pain :) - John
Then you will be happy to learn that Alex will soon start working on a paid-for (as in paid-by-me) extension to the X2Go client:
Step one, the short-term goal, will be the release of a client that allows for a seperate sessions file location.
Step two will be a "published application" mode similar to what you may or may not know from Citrix MetaFrame/Presentation Manager/whatever-their-nom-de-jour-is: A list of applications that will be defined on the server and presented to the user in drop-down-box style after logging in and right-clicking the X2Go-icon in the task bar.
Of course, feel free to join in with some extra cash - I'm sure Alex won't say no. ;-)
-Stefan
Hi Alex,
another question regarding the Windows client and its portable mode:
Is everything in the C:\Program Files\x2goclient directory "self-contained" and not relying on absolute path names by default, or does a truly portable install require additional pre- or post-install tweaks? In other words, can I copy/move the entire folder to another drive/medium (Network share, USB memory stick, CD-ROM,...) and it should still work?
I don't care about the entries in the start menu, these can easily be (re)created with a script if needed. The reason why I'm asking is that this would allow for a central update location in a LAN when a new client version gets released: Either run the client directly from the network share, or have a script copy the contents onto the client machines.
I'm aware the installer has the /S option for a silent install, but having a single copy on a network share (or simply copying updated files over to the clients using robocopy or xcopy) seems easier than a scripted update on $BIGNUM client machines. (where $BIGNUM in my case is currently roughly 30 LANs with 5-15 client machines each, with more to come each month).
-Stefan
Hi Stefan,
On Fr 17 Feb 2012 01:27:57 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi Alex,
another question regarding the Windows client and its portable mode:
Is everything in the C:Program Filesx2goclient directory
"self-contained" and not relying on absolute path names by default,
or does a truly portable install require additional pre- or
post-install tweaks? In other words, can I copy/move the entire folder to another
drive/medium (Network share, USB memory stick, CD-ROM,...) and it
should still work?
You could try it out and report here?!? And if your experiments fail,
you could ask again?!? Your success stories being documented in the
wiki would be an awesome thing to occur!!!
Thanks, 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...
Am 17.02.2012 07:27, schrieb Mike Gabriel:
Hi Stefan,
On Fr 17 Feb 2012 01:27:57 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi Alex,
another question regarding the Windows client and its portable mode:
Is everything in the C:Program Filesx2goclient directory "self-contained" and not relying on absolute path names by default, or does a truly portable install require additional pre- or post-install tweaks? In other words, can I copy/move the entire folder to another drive/medium (Network share, USB memory stick, CD-ROM,...) and it should still work?
You could try it out and report here?!? And if your experiments fail, you could ask again?!?
Uh, no. "Works for me" when it wasn't designed for it isn't a suitable base for a commercial deployment. I'm not taking any chances here. There's just too much involved that may make it work on my system, yet break at the customers' sites. If Alex says it *should* work, from his knowedge and understanding of x2goclients' internal working, then I will test and report back any errors.
Your success stories being documented in the wiki would be an awesome thing to occur!!!
I *am* updating the wiki with information gathered re: x2goclient.exe as my time permits - but just as in your case, my time is limited and I have to prioritize some tasks over others. So before embarking on an hours-long testing trip, I'd like to know if it's worth my time or if I'm wasting it, because what I'm trying out is not supported anyway.
-Stefan
Am 17.02.2012 08:53, schrieb newsgroups.mail2@stefanbaur.de:
Am 17.02.2012 07:27, schrieb Mike Gabriel:
Hi Stefan,
On Fr 17 Feb 2012 01:27:57 CET "newsgroups.mail2@stefanbaur.de" wrote:
Hi Alex,
another question regarding the Windows client and its portable mode:
Is everything in the C:Program Filesx2goclient directory "self-contained" and not relying on absolute path names by default, or does a truly portable install require additional pre- or post-install tweaks? In other words, can I copy/move the entire folder to another drive/medium (Network share, USB memory stick, CD-ROM,...) and it should still work?
You could try it out and report here?!? And if your experiments fail, you could ask again?!?
Uh, no. "Works for me" when it wasn't designed for it isn't a suitable base for a commercial deployment. I'm not taking any chances here. There's just too much involved that may make it work on my system, yet break at the customers' sites. If Alex says it *should* work, from his knowedge and understanding of x2goclients' internal working, then I will test and report back any errors.
Your success stories being documented in the wiki would be an awesome thing to occur!!!
I *am* updating the wiki with information gathered re: x2goclient.exe as my time permits - but just as in your case, my time is limited and I have to prioritize some tasks over others. So before embarking on an hours-long testing trip, I'd like to know if it's worth my time or if I'm wasting it, because what I'm trying out is not supported anyway.
-Stefan
X2Go-Dev mailing list X2Go-Dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
portable mode was developed for running x2goclient from flash drives or ROM mediums without installation of x2goclient on system.
-- Oleksandr Shneyder Dipl. Informatik X2go Core Developer Team
email: oleksandr.shneyder@obviously-nice.de web: www.obviously-nice.de
--> X2go - everywhere@home
"newsgroups.mail2@stefanbaur.de" <newsgroups.mail2@stefanbaur.de> napsal(a):
I'm aware the installer has the /S option for a silent install, but having a single copy on a network share (or simply copying updated files over to the clients using robocopy or xcopy) seems easier than a scripted update on $BIGNUM client machines. (where $BIGNUM in my case is currently roughly 30 LANs with 5-15 client
machines each, with more to come each month).
I do not know about recent installers, but since the older ones always required admin rights for installation, I have simply opened the installer file with 7zip a copied the relevant files manually to a USB drive.
Runs fine and now with the --portable. and home dir options does not even leave garbage on the host computer.
-Stefan
Milan
-- http://www.milan-knizek.net/ About linux and photography (Czech only) O linuxu a fotografování