System wide keyboard configuration not working on GNOME

Vinícius Ferrão via Ltsp-discuss <[email protected]> Tue, 6 Aug 2019 16:20:45 +0000
Newsgroups gmane.linux.terminal-server.general
Message-ID <[email protected]>
Hello,

I have an LTSP server with Ubuntu 18.04, and I can't set a global keyboard setting to all users for the GUI (running the default GNOME installation).

The physical machine have a cancerogenous brazilian ABNT2 keyboard that appears to be configured correctly:

root@gilneas:/# cat /etc/default/keyboard 
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="br"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

root@gilneas:/# grep -v \# /etc/locale.gen 
en_US.UTF-8 UTF-8
pt_BR.UTF-8 UTF-8

Already tried with dpkg-reconfigure keyboard-configuration and regenerated the locates with locale-gen --purge. But nothing works, GNOME does not honor the configurations and selects English (US) as the default keyboard.

This settings used to work on previous Ubuntu LTS versions: 12.04, 14.04 and 16.04; are all working accordingly. But not on 18.04.

I’m not sure if lts.conf is still relevant but it’s attached at the end of the message to reduce clutter.

Thanks,
Vinicius.





root@gilneas:~# cat /var/lib/tftpboot/ltsp/amd64/lts.conf 
# This file is served via TFTP from /var/lib/tftpboot/ltsp/<arch>/lts.conf
# when using the default NBD setup.
# If using NFS, it goes in /opt/ltsp/<arch>/etc/lts.conf.
# A list of directives is available at http://manpages.ubuntu.com/lts.conf
# or your installed lts.conf man page.
# Lines starting with '#' are comments.
# Avoid empty [Sections] as they're considered syntax errors.


# This section applies to all clients and is overriden by the other sections.
[Default]
# For troubleshooting, the following open a local console with Alt+Ctrl+F2.
#SCREEN_02=shell
#SCREEN_07=ldm

# Don't encrypt X traffic. Gives much faster graphics at a security cost.
LDM_DIRECTX=True

# Force all clients to a specific resolution.
#XRANDR_MODE_0=1024x768
#XRANDR_RATE_0=85

# If the default 16bit color mode is giving you problems on thin clients:
#X_SMART_COLOR_DEPTH=False

# Separate fat clients from thin clients based on their RAM.
#FAT_RAM_THRESHOLD=400

# Use any local swap partitions on the clients.
USE_LOCAL_SWAP=True

# Provide a "Login as Guest" button, which uses LDM_USERNAME/LDM_PASSWORD.
#LDM_GUESTLOGIN=True

# Automatically login clients with the specified LDM_USERNAME/LDM_PASSWORD.
#LDM_AUTOLOGIN=True

# Some other frequently used directives, described in the lts.conf manpage.
# For really low RAM clients, disable SOUND, LOCAL_APPS and LOCALDEV.
#SOUND=False
#VOLUME=50
#LOCAL_APPS=False
#LOCAL_APPS_EXTRAMOUNTS=/srv
#LOCALDEV=False
#LOCALDEV_DENY_INTERNAL_DISKS=False
#FSTAB_1="server:/home    /home           nfs     defaults,nolock 0       0"
#XSERVER=vesa
#X_BLANKING=0
#X_NUMLOCK=True
#XKBLAYOUT="us,gr"
#XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"
#LDM_LIMIT_ONE_SESSION=True
#LDM_LIMIT_ONE_SESSION_PROMPT=True
#LDM_PRINTER_DEFAULT="psc-1310-series"

# Settings added for LIG
# Locale and Keyboard
LOCALE="pt_BR.UTF-8"
XKBLAYOUT="br"
XKBMODEL="pc105"
# Limit one login
LDM_LIMIT_ONE_SESSION=True
# Compression
NETWORK_COMPRESSION=True
# NTP
TIMESERVER=time.cc.if.ufrj.br
# /home on the server
FSTAB_1="server:/home    /home           nfs     defaults,nolock 0       0"

# You can define sections to be included later on with "LIKE" directives.
[OLD_MONITOR]
# The following directives are useful in cases where the driver can't detect
# the (possibly old CRT) monitor timings and only offers low resolutions.
# Consult your monitor manual for the correct values, those are for 1024x768.
X_HORZSYNC=30.0-88.0
X_VERTREFRESH=50.0-88.0


# You can specify directives per client with MAC address (or IP or hostname)
# based sections.
# One way to get their MAC addresses is to run `arp -n` when they're at LDM.
#[A1:B1:C2:D4:E5:F6]
#HOSTNAME=pc01
#LDM_USERNAME=user01
#LDM_PASSWORD=pass01
#LTSP_FATCLIENT=False
# Include another section.
#LIKE=OLD_MONITOR


_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net