Keyboard layout of terminal through X11 ssh tunnel is wrong - how to fix? Announcing the...

Why weren't discrete x86 CPUs ever used in game hardware?

"Destructive power" carried by a B-52?

Marquee sign letters

What is the proper term for etching or digging of wall to hide conduit of cables

Does the main washing effect of soap come from foam?

Statistical analysis applied to methods coming out of Machine Learning

Why does BitLocker not use RSA?

What is a more techy Technical Writer job title that isn't cutesy or confusing?

Is the time—manner—place ordering of adverbials an oversimplification?

When does a function NOT have an antiderivative?

newbie Q : How to read an output file in one command line

Why not use the yoke to control yaw, as well as pitch and roll?

How do Java 8 default methods hеlp with lambdas?

Twin's vs. Twins'

Why do C and C++ allow the expression (int) + 4?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Is this Kuo-toa homebrew race balanced?

Flight departed from the gate 5 min before scheduled departure time. Refund options

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

3D Masyu - A Die

.bashrc alias for a command with fixed second parameter

2018 MacBook Pro won't let me install macOS High Sierra 10.13 from USB installer

Where did Ptolemy compare the Earth to the distance of fixed stars?

How much damage would a cupful of neutron star matter do to the Earth?



Keyboard layout of terminal through X11 ssh tunnel is wrong - how to fix?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)ssh tunnel and receiving Web pages through the tunnelHow do I route my internet through a SSH tunnel?Auto discovery of DAAP share through SSH tunnelRoute all traffic through SSH tunnel or equivalent?X11/SSH issues “wrong authentication”SSH Tunnel can't connect through existing tunnel — chanel3: open failed: administratively prohibitedDirect ssh tunnel through a reverse SSH tunnelKeyboard layout wrongHow to tunnel Synergy over SSH?Custom keyboard variant not selectable





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















If I display a terminal over an ssh tunnel (X11 forwarding) to Xming on a Windows 10 PC, the keyboard setting is wrong. On the Ubuntu machine itself, the keyboard setting is correct. What puzzles me: if I check the keyboard settings with the usual commands on that terminal displayed on Xming, it all looks ok too. Just the keys do not match the configured language.



Instead, the actual keymap seems to be "us" !!



Ubuntu 18.04.2 LTS, swiss german locale.



I am stumped. Can you give me a pointer?



ssh to Ubuntu:
/etc/default/keyboard



XKBMODEL="logicd"
XKBLAYOUT="ch"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


Then open terminator or xterm, the window is displayed on by Xming on the PC:



localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


setxkbmap -query



rules:      xorg
model: pc105
layout: de_CH


setxkbmap -query | awk -F"(,|[ ]+)" '/layout:/ { print $2 }'



de_CH


gsettings get org.gnome.desktop.input-sources sources | grep -Po "'[[:alpha:]]+')" | sed -ne "s/['|)]//g;$(($current_layout+1))p"



ch


setxkbmap -print -verbose 10



Setting verbose level to 10
locale is C
Trying to load rules file ./rules/xorg...
Trying to load rules file /usr/share/X11/xkb/rules/xorg...
Success.
Applied rules from xorg:
rules: xorg
model: pc105
layout: de_CH
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+de_CH+inet(pc105)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+de_CH+inet(pc105)" };
xkb_geometry { include "pc(pc105)" };


.. and so on..
All commands insists that I have the ch mapping active.



But I definitively have the us mapping active.



Examples:



- on keyboard produces in xterm /
? on keyboard produces in xterm _
! on keyboard produces in xterm }
& on keyboard produces in xterm ^


Anyone has a clue how I can set up the correct keymap?
As I mentioned before, the keymap is correct in any other situation.



Thanks
Dan










share|improve this question























  • I guess noone has an idea?

    – I grok it
    Mar 7 at 21:03


















0















If I display a terminal over an ssh tunnel (X11 forwarding) to Xming on a Windows 10 PC, the keyboard setting is wrong. On the Ubuntu machine itself, the keyboard setting is correct. What puzzles me: if I check the keyboard settings with the usual commands on that terminal displayed on Xming, it all looks ok too. Just the keys do not match the configured language.



Instead, the actual keymap seems to be "us" !!



Ubuntu 18.04.2 LTS, swiss german locale.



I am stumped. Can you give me a pointer?



ssh to Ubuntu:
/etc/default/keyboard



XKBMODEL="logicd"
XKBLAYOUT="ch"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


Then open terminator or xterm, the window is displayed on by Xming on the PC:



localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


setxkbmap -query



rules:      xorg
model: pc105
layout: de_CH


setxkbmap -query | awk -F"(,|[ ]+)" '/layout:/ { print $2 }'



de_CH


gsettings get org.gnome.desktop.input-sources sources | grep -Po "'[[:alpha:]]+')" | sed -ne "s/['|)]//g;$(($current_layout+1))p"



ch


setxkbmap -print -verbose 10



Setting verbose level to 10
locale is C
Trying to load rules file ./rules/xorg...
Trying to load rules file /usr/share/X11/xkb/rules/xorg...
Success.
Applied rules from xorg:
rules: xorg
model: pc105
layout: de_CH
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+de_CH+inet(pc105)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+de_CH+inet(pc105)" };
xkb_geometry { include "pc(pc105)" };


.. and so on..
All commands insists that I have the ch mapping active.



But I definitively have the us mapping active.



Examples:



- on keyboard produces in xterm /
? on keyboard produces in xterm _
! on keyboard produces in xterm }
& on keyboard produces in xterm ^


Anyone has a clue how I can set up the correct keymap?
As I mentioned before, the keymap is correct in any other situation.



Thanks
Dan










share|improve this question























  • I guess noone has an idea?

    – I grok it
    Mar 7 at 21:03














0












0








0








If I display a terminal over an ssh tunnel (X11 forwarding) to Xming on a Windows 10 PC, the keyboard setting is wrong. On the Ubuntu machine itself, the keyboard setting is correct. What puzzles me: if I check the keyboard settings with the usual commands on that terminal displayed on Xming, it all looks ok too. Just the keys do not match the configured language.



Instead, the actual keymap seems to be "us" !!



Ubuntu 18.04.2 LTS, swiss german locale.



I am stumped. Can you give me a pointer?



ssh to Ubuntu:
/etc/default/keyboard



XKBMODEL="logicd"
XKBLAYOUT="ch"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


Then open terminator or xterm, the window is displayed on by Xming on the PC:



localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


setxkbmap -query



rules:      xorg
model: pc105
layout: de_CH


setxkbmap -query | awk -F"(,|[ ]+)" '/layout:/ { print $2 }'



de_CH


gsettings get org.gnome.desktop.input-sources sources | grep -Po "'[[:alpha:]]+')" | sed -ne "s/['|)]//g;$(($current_layout+1))p"



ch


setxkbmap -print -verbose 10



Setting verbose level to 10
locale is C
Trying to load rules file ./rules/xorg...
Trying to load rules file /usr/share/X11/xkb/rules/xorg...
Success.
Applied rules from xorg:
rules: xorg
model: pc105
layout: de_CH
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+de_CH+inet(pc105)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+de_CH+inet(pc105)" };
xkb_geometry { include "pc(pc105)" };


.. and so on..
All commands insists that I have the ch mapping active.



But I definitively have the us mapping active.



Examples:



- on keyboard produces in xterm /
? on keyboard produces in xterm _
! on keyboard produces in xterm }
& on keyboard produces in xterm ^


Anyone has a clue how I can set up the correct keymap?
As I mentioned before, the keymap is correct in any other situation.



Thanks
Dan










share|improve this question














If I display a terminal over an ssh tunnel (X11 forwarding) to Xming on a Windows 10 PC, the keyboard setting is wrong. On the Ubuntu machine itself, the keyboard setting is correct. What puzzles me: if I check the keyboard settings with the usual commands on that terminal displayed on Xming, it all looks ok too. Just the keys do not match the configured language.



Instead, the actual keymap seems to be "us" !!



Ubuntu 18.04.2 LTS, swiss german locale.



I am stumped. Can you give me a pointer?



ssh to Ubuntu:
/etc/default/keyboard



XKBMODEL="logicd"
XKBLAYOUT="ch"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


Then open terminator or xterm, the window is displayed on by Xming on the PC:



localectl status



   System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
X11 Model: logicd


setxkbmap -query



rules:      xorg
model: pc105
layout: de_CH


setxkbmap -query | awk -F"(,|[ ]+)" '/layout:/ { print $2 }'



de_CH


gsettings get org.gnome.desktop.input-sources sources | grep -Po "'[[:alpha:]]+')" | sed -ne "s/['|)]//g;$(($current_layout+1))p"



ch


setxkbmap -print -verbose 10



Setting verbose level to 10
locale is C
Trying to load rules file ./rules/xorg...
Trying to load rules file /usr/share/X11/xkb/rules/xorg...
Success.
Applied rules from xorg:
rules: xorg
model: pc105
layout: de_CH
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+de_CH+inet(pc105)
geometry: pc(pc105)
xkb_keymap {
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+de_CH+inet(pc105)" };
xkb_geometry { include "pc(pc105)" };


.. and so on..
All commands insists that I have the ch mapping active.



But I definitively have the us mapping active.



Examples:



- on keyboard produces in xterm /
? on keyboard produces in xterm _
! on keyboard produces in xterm }
& on keyboard produces in xterm ^


Anyone has a clue how I can set up the correct keymap?
As I mentioned before, the keymap is correct in any other situation.



Thanks
Dan







ssh keyboard-layout tunnel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 21 at 16:35









I grok itI grok it

234




234













  • I guess noone has an idea?

    – I grok it
    Mar 7 at 21:03



















  • I guess noone has an idea?

    – I grok it
    Mar 7 at 21:03

















I guess noone has an idea?

– I grok it
Mar 7 at 21:03





I guess noone has an idea?

– I grok it
Mar 7 at 21:03










1 Answer
1






active

oldest

votes


















0














I had a similar problem but later I found it is not a host problem, instead a client-side problem.



I was using OSX and xer on terminal shown wrong keyboard catch.



You can check some discussions here.






share|improve this answer








New contributor




galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120168%2fkeyboard-layout-of-terminal-through-x11-ssh-tunnel-is-wrong-how-to-fix%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I had a similar problem but later I found it is not a host problem, instead a client-side problem.



    I was using OSX and xer on terminal shown wrong keyboard catch.



    You can check some discussions here.






    share|improve this answer








    New contributor




    galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      I had a similar problem but later I found it is not a host problem, instead a client-side problem.



      I was using OSX and xer on terminal shown wrong keyboard catch.



      You can check some discussions here.






      share|improve this answer








      New contributor




      galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        I had a similar problem but later I found it is not a host problem, instead a client-side problem.



        I was using OSX and xer on terminal shown wrong keyboard catch.



        You can check some discussions here.






        share|improve this answer








        New contributor




        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        I had a similar problem but later I found it is not a host problem, instead a client-side problem.



        I was using OSX and xer on terminal shown wrong keyboard catch.



        You can check some discussions here.







        share|improve this answer








        New contributor




        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 3 hours ago









        galaxiaxgalaxiax

        1




        1




        New contributor




        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        galaxiax is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1120168%2fkeyboard-layout-of-terminal-through-x11-ssh-tunnel-is-wrong-how-to-fix%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            List of shipwrecks in 1808...

            Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

            How do I enter a file or directory with special characters in its name?How to write the path of a folder with...