Re: [X2Go-User] Keyboard issues
Actually it works with any Bourne Shell derivative as far as I've been able to determine, /bin/sh, /bin/bash, /bin/dash, /bin/ksh, /bin/zsh, but not any csh derivative. I had this problem too, my work around was to load Ubuntu onto my Mac and stop using MacOS (which solved many other issues such as not being able to cut-n-paste between X and non-X applications). -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting. Knowledgeable human assistance, not telephone trees or script readers. See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874. On Thu, 29 Oct 2015, Vicker, Darby (JSC-EG311) wrote: Date: Thu, 29 Oct 2015 22:05:41 + From: "Vicker, Darby (JSC-EG311)" To: "x2go-user@lists.x2go.org" Subject: [X2Go-User] Keyboard issues Hello, I'm having the same issues as described here: http://lists.x2go.org/pipermail/x2go-user/2015-May/003171.html In my case its a OSX client (4.0.5.0 ? from x2go.org) and a CentOS 7 server (4.0.1.19 ? from EPEL). I'm trying to fire up a MATE session and the keyboard is not set properly when using tcsh as my login shell but it does work properly for bash. There wasn't a solution in the above thread, other than switching to bash. Has anyone found a workaround for tcsh? More info on my investigation. I would greatly appreciate any help in figuring out the problem or a good workaround. Thanks, Darby In either case I get a message on login that says: Error activating XKB configuration. It can happen under various circumstances: a bug in libxklavier library a bug in X server (xkbcomp, xmodmap utilities) X server with incompatible libxkbfile implementation X server version data: The X.Org Foundation 7000 If you report this situation as a bug, please include: The result of xprop -root | grep XKB The result of gsettings list-keys org.mate.peripherals-keyboard-xkb.kbd I'm sure this is related but since my keyboard is fine on base I don't think this is the root cause. From a session that works (bash): ~/.x2go/session.log says "keyboard file created" ~/.x2go/keyboard: rules=base model=empty layout=empty variant= options= $ setxkbmap -print xkb_keymap { xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat{ include "complete" }; xkb_symbols { include "pc+us" }; xkb_geometry { include "pc(pc104)" }; }; From a session that doesn't work (tcsh): ~/.x2go/session.log says "keyboard file not created: Is a directory" ~/.x2go/keyboard file missing % setxkbmap -print xkb_keymap { xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat{ include "complete" }; xkb_symbols { include "pc+us" }; xkb_geometry { include "pc(pc104)" }; }; ___ x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Keyboard issues
Using Linux instead of OSX on my MBP isn't an option for me as I need OSX for several applications in my work environment that aren't supported under Linux. The bottom line is that the xmodmap when logging in under tcsh is messed up. I have found a good workaround though that I thought I'd share, which is based on this: http://stackoverflow.com/questions/7018775/keymap-issues-with-nx-from-mac-o s-x-lion-to-ubuntu - Changed my default linux shell on the x2go server machine to bash - Login via the x2go client and save the good xmodmap via 'xmodmap -pke > xmodmap.bash' - Changed my login shell back to tcsh on the server - Created a shell script that loads the correct key mappings by running 'xmodmap xmodmap.bash' - Login via x2go and run the shell script to restore the proper keyboard mappings As in the stackoverflow thread above, my modifier keys were still not working so I had to add this to the end of xmodmap.bash: ! ! Now reset all the modifiers too ! clear shift clear lock clear control clear mod1 clear mod2 clear mod3 clear mod4 clear mod5 add shift = Shift_L Shift_R add lock = Caps_Lock add control = Control_L Control_R add mod1 = Alt_L Alt_R add mod2 = Meta_L Meta_R Since the keyboard is still messed up when first logging in, I had to move the the shell script to the desktop so I can double click to run it. I've had limited testing so far but now everything seems to be working well. I'm guessing I could automate loading the xmodmap file somehow but its not immediately obvious to me how to detect that the login is under x2go and not a native login. Any thoughts on that would be appreciated. And longer term, it would be great if the x2go developers could make this independent of the user's shell. But please don't take that as a complaint - I do very much appreciate having the capability x2go provides! Thanks, Darby -Original Message- From: Robert Dinse Date: Thursday, October 29, 2015 at 6:19 PM To: Darby Vicker Cc: "x2go-user@lists.x2go.org" Subject: Re: [X2Go-User] Keyboard issues > > Actually it works with any Bourne Shell derivative as far as I've >been >able to determine, /bin/sh, /bin/bash, /bin/dash, /bin/ksh, /bin/zsh, but >not any csh derivative. > > I had this problem too, my work around was to load Ubuntu onto my >Mac >and stop using MacOS (which solved many other issues such as not being >able >to cut-n-paste between X and non-X applications). > >-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ >-_-_- > Eskimo North Linux Friendly Internet Access, Shell Accounts, and >Hosting. >Knowledgeable human assistance, not telephone trees or script readers. > See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) >246-6874. > >On Thu, 29 Oct 2015, Vicker, Darby (JSC-EG311) wrote: > >> Date: Thu, 29 Oct 2015 22:05:41 + >> From: "Vicker, Darby (JSC-EG311)" >> To: "x2go-user@lists.x2go.org" >> Subject: [X2Go-User] Keyboard issues >> >> Hello, >> >> I'm having the same issues as described here: >> >> http://lists.x2go.org/pipermail/x2go-user/2015-May/003171.html >> >> In my case its a OSX client (4.0.5.0 ? from x2go.org) and a CentOS 7 >>server (4.0.1.19 ? from EPEL). I'm trying to fire up a MATE session and >>the keyboard is not set properly when using tcsh as my login shell but >>it does work properly for bash. There wasn't a solution in the above >>thread, other than switching to bash. Has anyone found a workaround for >>tcsh? More info on my investigation. >> >> I would greatly appreciate any help in figuring out the problem or a >>good workaround. >> >> Thanks, >> Darby >> >> >> In either case I get a message on login that says: >> >> >> >> >> Error activating XKB configuration. >> It can happen under various circumstances: >> a bug in libxklavier library >> a bug in X server (xkbcomp, xmodmap utilities) >> X server with incompatible libxkbfile implementation >> >> X server version data: >> The X.Org Foundation >> 7000 >> >> If you report this situation as a bug, please include: >> The result of xprop -root | grep XKB >> The result of gsettings list-keys org.mate.peripherals-keyboard-xkb.kbd >> >> >> >> >> I'm sure this is related but since my keyboard is fine on base I don't >>think this is the root cause. >> >> >> >> >>> From a session that works (bash): >> >> ~/.x2go/session.log says "keyboard file created" >> ~/.x2go/keyboard: >> rules=base >> model=empty &
Re: [X2Go-User] Keyboard issues
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 30.10.2015 um 16:28 schrieb Vicker, Darby (JSC-EG311): > I'm guessing I could automate loading the xmodmap file somehow but > its not immediately obvious to me how to detect that the login is > under x2go and not a native login. Any thoughts on that would be > appreciated. Hmm, I think we have a place for autorunning scripts ... let's see if one of the Devs chimes in. > And longer term, it would be great if the x2go developers could > make this independent of the user's shell. But please don't take > that as a complaint - I do very much appreciate having the > capability x2go provides! Of course, if you want to accellerate feature development, and aren't skilled at coding to do it yourself, there's always the option of sponsoring the feature with some $$$. :-) If you or your department have a budget for that, let us know, and we will provide you with a quote. :-) Kind Regards, Stefan - -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAGBQJWM41KAAoJEG7d9BjNvlEZ9lEH/jAU+lOh91gGfLAXORCnfAvz qeAAjiFVQQaGEYprO9DJTjczpdauXeNyf2HMN+cC+trHJ5UQhTeOUok5QYHWypNn qGqAGg3lXDFTj1ITWZFsTfAhRyuSJVRWPilfCRAWJ+zMzWoX8sQ4j17etb4Kxkd2 YrPNGvbtSQ/AdiK5qcSJzlILp1x7ljcUc/e7RhiBnJrzBPvEhMdhN+gsCjO3IPTK pqS98WH3v9qxJ/UwFjYJ/FsXsfMdEKob4rdgxrJI8WFHcixaFs2n5yvtrw97h22c huE+Jff9q4GY8MjNKT2IeDeEFhnFrtWbrsPCL/UMrz3iWD6OX06+OVXHulv5rE8= =Ynp9 -END PGP SIGNATURE- ___ x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Keyboard issues
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 30.10.2015 um 16:28 schrieb Vicker, Darby (JSC-EG311): > I'm guessing I could automate loading the xmodmap file somehow but > its not immediately obvious to me how to detect that the login is > under x2go and not a native login. Any thoughts on that would be > appreciated. In a bash script, you could use if [ $(echo $DISPLAY | awk -F':' '{ print $2 }') -ge 50 ] ; then echo "Very likely an X2Go session" ; fi - -Stefan - -- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQEcBAEBCAAGBQJWM4+PAAoJEG7d9BjNvlEZj/oIAJUt7nGpttCODHAHgKRpadzU vmlgjs+5sLl9jJqw8JzfF61XxNPSJ1Qmh8OY6NisOlJHrarmvVHN1eFRR7/zjO1o DvEGk0vnAqFch8umbbi8VdAmKt+oOarzFUG8+/LrIfjf7REaXW8hhHvaJUYdyxEs mq0nIhsdwNP4fJWTVmYLJh+WOjLsjy4u3BGSmP4sreOQ/20ulcOJrUghT9qCMgXC LcUp1KGlHmege5DoLNHDWqCRM2nabJe0AFmel49FL1PW25cY6wLfhVrvZbRCxWhB OkPaMHHYiTDl7ZVjl5mSVsOkCGhtQHzpZ/QLL3/Y2xdBNRi/J87Qk0UZjHyt9jY= =tmXV -END PGP SIGNATURE- ___ x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Keyboard issues
On Fri, 30 Oct 2015, Vicker, Darby (JSC-EG311) wrote: I'm guessing I could automate loading the xmodmap file somehow but its not immediately obvious to me how to detect that the login is under x2go and not a native login. Any thoughts on that would be appreciated. And longer term, it would be great if the x2go developers could make this independent of the user's shell. But please don't take that as a complaint - I do very much appreciate having the capability x2go provides! Hi, when running a linux client, you will find some adhoc environment variables ... the following command will reveal them: $ env | grep -i x2go I suspect the behavior is the same under OSX. So under bash, something like ... if [ ! -z "$X2GO_SESSION" ] then echo "load mapping ..." fi Best, Sylvain --- Sylvain Milot (sylv...@bic.mni.mcgill.ca) (sylvain.mi...@mcgill.ca) Brain Imaging Centre Montreal Neurological Institute 3801 University Street Webster 2B, Room 206 Montreal, Qc., Canada, H3A 2B4 Phone : (514) 398-4965, Fax: 398-8948 Mobile : (514) 712-1768 Office : 527 Av Des Pins O., Room 104 Montreal, Qc., H2W 1S4 ___ x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user
Re: [X2Go-User] Keyboard issues
-Original Message- From: Sylvain Milot Date: Friday, October 30, 2015 at 12:36 PM To: Darby Vicker Cc: "x2go-user@lists.x2go.org" Subject: Re: [X2Go-User] Keyboard issues >On Fri, 30 Oct 2015, Vicker, Darby (JSC-EG311) wrote: > > > >> I'm guessing I could automate loading the xmodmap file somehow but its >>not >> immediately obvious to me how to detect that the login is under x2go and >> not a native login. Any thoughts on that would be appreciated. >> >> And longer term, it would be great if the x2go developers could make >>this >> independent of the user's shell. But please don't take that as a >> complaint - I do very much appreciate having the capability x2go >>provides! > >Hi, > >when running a linux client, you will find some adhoc environment >variables ... >the following command will reveal them: > >$ env | grep -i x2go > >I suspect the behavior is the same under OSX. > >So under bash, something like ... > >if [ ! -z "$X2GO_SESSION" ] >then > echo "load mapping ..." >fi Perfect. This works great in my .cshrc file: if ( $?X2GO_SESSION ) ~/bin/x2go_fix_xmodmap.csh Thanks a lot! Darby ___ x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user