trying to set my X11 keyboard but have $DISPLAY issues

Ask questions about Arch Linux ARM. Please search before making a new topic.

trying to set my X11 keyboard but have $DISPLAY issues

Postby jamithy » Wed Apr 17, 2019 12:21 pm

Hi,

I've installed arch Linux on my Odroid ARM N2. All is well, except for the X11 keyboard layout, and I can't for the life of me work out how to set it, so now i feel like I'm going around in circles! :(

Here's what I do:

I ssh to the odoid N2 from my main desktop PC (manjaro linux)- connects fine.

This is what I get if i type in localectl on my odroid:

Code: Select all
[Minfilia ssh]# localectl
System Locale: LANG=en_GB.UTF-8
VC Keymap: uk
X11 Layout: n/a


I type in the following:

Code: Select all
setxkbmap -model pc105 -layout gb -variant extd


I receive this error message:

Code: Select all
Cannot open display "localhost:10.0"


As an aside, then if I type in the same command (localectl) on my desktop pc (manjaro) then I receive the following info - note the extra X11 info i.e. X11 Layout, X11 Model, X11 Variant (so this is what I'm trying to achieve!):

Code: Select all
[user@yshtola:~]$ localectl
System Locale: LANG=en_GB.UTF-8
VC Keymap: uk
X11 Layout: gb
X11 Model: pc105
X11 Variant: extd


Things that I have tried:

1. set up X11 forwarding in my sshd.config & also ssh.config file:

Code: Select all
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no


2. Added the following in ~/.bashrc

Code: Select all
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_CONNECTION" ]; then
    export DISPLAY=:0.0                                 
fi


3. installed xhost, and tried the following:

Code: Select all
xhost +
xhost + <username> (<username> is my actual local linux account name)


4. Xauth magic cookie is created, and also only available under /root/.Xauthority (only root has r/w access to this file).

So I'm completely open to ideas please :)
jamithy
 
Posts: 11
Joined: Sun Mar 31, 2019 7:54 pm
Location: UK

Return to User Questions

Who is online

Users browsing this forum: No registered users and 1 guest