[X2Go-User] X2Go on Debian Stretch server : root user keyboard mapping

Ulrich Sibiller uli42 at gmx.de
Mon Nov 6 11:02:28 CET 2017


On Mon, Nov 6, 2017 at 9:59 AM, Bruno Joffredo
<Bruno.Joffredo at ec-nantes.fr> wrote:
>
> Hello,
>
> I have installed X2Go (server v4.0.1.20) on a Debian Stretch (v9.2) server a
> few days ago.
>
> This machine is secured at the network level, so i want to login root.
>
> When I log in as a user, the keyboard mapping is good.
> But when I log in root, the arrow keys are not good : up doesn't show
> anything, down acts like return, and the pipe key does not show anything.
>
> I did some search on the web, but everything I found did not work.
>
> Connected via X2go Client to the root user :
>
> the command setxkbmap fr return : Error loading new keyboard description
> echo $DISPLAY : :50.0
> the command DISPLAY=:0.0 setxkbmap fr return no error
> here is the contents of the file
> ~/.x2go/C-root-50-1509957528_stDLXDE_dp24/clients :
>
> No matching visual for __GLcontextMode with visual class = 4 (32770),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 4 (32770),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 4 (32770),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 4 (32770),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 5 (32771),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 5 (32771),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 5 (32771),
> nplanes = 24
> No matching visual for __GLcontextMode with visual class = 5 (32771),
> nplanes = 24
> The XKEYBOARD keymap compiler (xkbcomp) reports:
>> Error:            Can't find file "null" for symbols include
>>                   Exiting
>>                   Abandoning symbols file "default"
>> Error:            Cannot open "compiled/server-50.xkm" to write keyboard
>> description
>>                   Exiting
> The XKEYBOARD keymap compiler (xkbcomp) reports:
>> Error:            Cannot open "compiled/server-50.xkm" to write keyboard
>> description
>>                   Exiting
> The XKEYBOARD keymap compiler (xkbcomp) reports:
>> Error:            Cannot open "compiled/server-50.xkm" to write keyboard
>> description
>>                   Exiting
> AUDIT: Mon Nov  6 09:38:52 2017: 27087 x2goagent: client 3 rejected from
> local host
> The XKEYBOARD keymap compiler (xkbcomp) reports:
>> Error:            Cannot open "compiled/server-50.xkm" to write keyboard
>> description
>>                   Exiting

These messages are probably coming during session start and are normal
as x2go sets the initial keyboard to "null/null".


> I modified the content of the file /etc/x2go/x2goagent.keyboard like that :
> rules=evdev    but it's always the same

Some ideas:

- try "rules=base" in /etc/x2go/x2goagent.keyboard
- try setxkbmap -rules base fr
- x2go generates a keyboard config file which you can use with
setxkbmap -config <filename>. I cannot check right now but in should
reside somewhere in ~root/.x2go/...


Uli


More information about the x2go-user mailing list