Hello,
I'm currently struggling with LXDE to get it localized into German on an English system, which seems to require exporting LANG= into the X session. Nothing works so far, so before I investigate further, a maybe dumb question: Are .xinitrc and/or .xsession used at all when using x2go, or is a different file kicking in then? ;)
Thanks, Florian
Nope. You got to start .xsession as "other" desktop environment.
Morty
Am 30.12.2010 11:58, Florian Effenberger schrieb:
Hello,
I'm currently struggling with LXDE to get it localized into German on an English system, which seems to require exporting LANG= into the X session. Nothing works so far, so before I investigate further, a maybe dumb question: Are .xinitrc and/or .xsession used at all when using x2go, or is a different file kicking in then? ;)
Thanks, Florian
X2go-dev mailing list X2go-dev@lists.berlios.de https://lists.berlios.de/mailman/listinfo/x2go-dev
Hi Morty,
2010/12/30 Moritz Strübe <Moritz.Struebe@informatik.uni-erlangen.de>:
Nope. You got to start .xsession as "other" desktop environment.
is there any other file I can use for adding my export LANG=blahblah to? Or do I have to use the other environment and add startlxde to .xsession then?
Thanks, Florian
Am 30.12.2010 12:38, Florian Effenberger schrieb:
Hi Morty,
2010/12/30 Moritz Strübe <Moritz.Struebe@informatik.uni-erlangen.de>:
Nope. You got to start .xsession as "other" desktop environment. is there any other file I can use for adding my export LANG=blahblah to? Or do I have to use the other environment and add startlxde to .xsession then?
No idea whether there is a "clean" way of doing it. The last line of my .xsession is "gnome-session". Probably there are better ways of ding this, but I've been to lazy. ;-)
Cheers Morty
Hi,
2010/12/30 Moritz Strübe <Moritz.Struebe@informatik.uni-erlangen.de>:
No idea whether there is a "clean" way of doing it. The last line of my .xsession is "gnome-session". Probably there are better ways of ding this, but I've been to lazy. ;-)
I tried to enter startlxde as command, but .xsession was ignored as well. Then I created ~/.x2go-lxde with
#!/bin/bash LANG=de_DE.UTF-8 startlxde
and this seems to work. :) However, I'd suggest adding capability of reading .xsession or maybe .x2gosession where one could put generic stuff in...
Florian
Hi,
2010/12/30 Florian Effenberger <floeff@gmail.com>:
I tried to enter startlxde as command, but .xsession was ignored as well. Then I created ~/.x2go-lxde with
#!/bin/bash LANG=de_DE.UTF-8 startlxde
and this seems to work. :) However, I'd suggest adding capability of reading .xsession or maybe .x2gosession where one could put generic stuff in...
seems it only works partially. I tried the x2go client on Windows 7, and if I run my x2go-lxde script, I have a new Xming window for every program window, the taskbar and the like, so I guess I forgot to start one daemon or set a variable. Works fine with OS X though.
Florian
Am 30.12.2010 16:53, Florian Effenberger schrieb:
seems it only works partially. I tried the x2go client on Windows 7, and if I run my x2go-lxde script, I have a new Xming window for every program window, the taskbar and the like, so I guess I forgot to start one daemon or set a variable. Works fine with OS X though.
Did you choose Window-Manager or Application as Type?
Cheers Morty
Hi,
2010/12/30 Moritz Strübe <Moritz.Struebe@informatik.uni-erlangen.de>:
seems it only works partially. I tried the x2go client on Windows 7, and if I run my x2go-lxde script, I have a new Xming window for every program window, the taskbar and the like, so I guess I forgot to start one daemon or set a variable. Works fine with OS X though.
Did you choose Window-Manager or Application as Type?
hm, don't know - I've chosen the first type that was available, but don't recall what it was (and am right now on my Mac).
Florian
When I choose "desktop environment", it seems to work indeed. :) Thanks!
2010/12/30 Moritz Strübe <Moritz.Struebe@informatik.uni-erlangen.de>:
seems it only works partially. I tried the x2go client on Windows 7, and if I run my x2go-lxde script, I have a new Xming window for every program window, the taskbar and the like, so I guess I forgot to start one daemon or set a variable. Works fine with OS X though.
Did you choose Window-Manager or Application as Type?
Florian Effenberger píše v Čt 30. 12. 2010 v 12:52 +0100:
I tried to enter startlxde as command, but .xsession was ignored as well. Then I created ~/.x2go-lxde with
#!/bin/bash LANG=de_DE.UTF-8 startlxde
I have been struggling with setting the language and path variables, too, and finished with a script sourcing /etc/profile (which was ignored in x2go session otherwise). Arch linux.
Florian Effenberger píše v Čt 30. 12. 2010 v 12:52 +0100:
I tried to enter startlxde as command, but .xsession was ignored as well. Then I created ~/.x2go-lxde with
#!/bin/bash LANG=de_DE.UTF-8 startlxde
I have been struggling with setting the language and path variables, too, and finished with a script sourcing /etc/profile (which was ignored in x2go session otherwise). Arch linux.
Milan I've not been following this thread closely but the reference to the failure to read /etc/profile caught my eye because we struggled with
On Thu, 2010-12-30 at 17:48 +0100, Milan Knížek wrote:
that. I'll share our internal notes in case it helps with the problems
you are facing. It is not an X2Go problem but rather a Desktop
Environment problem, e.g., KDE, perhaps Gnome, and I don't know about
others - they do not read /etc/profile although they do seem to read the
user bash configuration scripts (assuming you are using bash and not
dash). These internal notes also include some notes about PAM and LDAP;
I'll leave them in because they are embedded in the comments and may be
useful to someone else.
Here are our internal notes:
Now we need to fix some pam files. It is critical that the ldap modules are processed first even though that is non-standard. In the X2Go environment, many ssh sessions are fired off in quick succession. Since the pam_unix authentications fail for the LDAP users (as they are not defined locally), all the failed authentications trip the OSSEC auto-response and block the user from access to the host. Thus, LDAP credentials MUST be processed first. We also need a cross platform (e.g., KDE, Gnome) means of establishing environment variables. This can be done within pam by using the env module. By default, it will look to /etc/environment. We will add additional paths which will provide for more centralized management. cd /etc/pam.d edit /etc/pam.d/common-account to read: account sufficient pam_ldap.so account required pam_unix.so account sufficient pam_succeed_if.so uid < 1000 quiet account required pam_permit.so
edit /etc/pam.d/common-session so it reads: session required pam_limits.so session optional pam_ldap.so session required pam_unix.so session optional pam_umask.so umask=007 This last umask line is necessary because KDE does not read the /etc/profile file to set its umask. pam_umask is the lowest priority for umask. If any other file has a umask setting, it will override it, e.g., our setting of 022 for root. We could also do this by setting the value in one of the /etc/environment files
edit /etc/pam.d/common-password so it reads: password sufficient pam_ldap.so password required pam_unix.so nullok obscure md5 #password required pam_deny.so
edit /etc/pam.d/common-auth so it reads: auth sufficient pam_ldap.so auth sufficient pam_unix.so nullok_secure use_first_pass auth requisite pam_succeed_if.so uid >= 1000 quiet auth required pam_deny.so edit /etc/pam.d/login by adding after the line which reads: session required pam_env.so readenv=1 envfile=/etc/default/locale the following two lines: # variables for SimplicITy session required pam_env.so readenv=1 envfile=/data/.Common/etc/environment session required pam_env.so readenv=1 envfile=/data/.CommonClient/etc/environment Do the same for /etc/pam.d/sshd
Hi,
2010/12/30 Milan Knížek <knizek.confy@volny.cz>:
I have been struggling with setting the language and path variables, too, and finished with a script sourcing /etc/profile (which was ignored in x2go session otherwise). Arch linux.
do you have a code snippet? In which file did you do this?
Thanks, Florian
Florian Effenberger píše v Pá 31. 12. 2010 v 00:47 +0100:
Hi,
2010/12/30 Milan Knížek <knizek.confy@volny.cz>:
I have been struggling with setting the language and path variables, too, and finished with a script sourcing /etc/profile (which was ignored in x2go session otherwise). Arch linux.
do you have a code snippet? In which file did you do this?
Similar like you - just a workaround. However, I do not need per-user settings, it is a system wide solution.
$ cat /usr/local/bin/mk-gnome-session.sh #!/bin/bash . /etc/profile exec /usr/bin/gnome-session