Koozali.org: home of the SME Server

Change Keyboard Layout - but only in Server Console

Offline waldviertler

  • ***
  • 107
  • +0/-0
Change Keyboard Layout - but only in Server Console
« on: June 28, 2021, 12:26:41 AM »
Hello

I have this problem:
When I try to log in direct on the server I have a diferent keyboard layout, as when I login with putty.
While it is ok with putty (de layout), I have the en layout on the server.
Everything else is German, eg in the admin menu, as I used German as language while installing SME10.

How can I change the keyboard layout on the server console?

Thanks
Martin

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Change Keyboard Layout - but only in Server Console
« Reply #1 on: June 28, 2021, 01:25:59 PM »
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Change Keyboard Layout - but only in Server Console
« Reply #2 on: June 28, 2021, 08:18:50 PM »
this is for centos 6 and sme9 and older.

now this is set at grub (language) and systemd level (keymap). Only strange things is it should have been set at the installer time. Did you only add your german keyboard to install or did you take the time to also remove the default us one. You should remove the us one or it will default to that one later.

you should follow this


list available keymaps :
# localectl list-keymaps | grep ^us

To permanently change keymap on CentOS 7 to eg. us keymap run the localectl command:

# localectl set-keymap us

To confirm your permanent keymap settings execute the localectl command without any arguments.


source
https://linuxconfig.org/how-to-change-system-keyboard-keymap-layout-on-centos-7-linux


Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: Change Keyboard Layout - but only in Server Console
« Reply #3 on: June 28, 2021, 10:09:17 PM »
why I should stick with testing
--
qui scribit bis legit

Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: Change Keyboard Layout - but only in Server Console
« Reply #4 on: June 28, 2021, 10:48:29 PM »
@Jean-Philippe Pialasse: Thank you very much!!!

Server-console is working now with de keyboard layout.

Martin

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Change Keyboard Layout - but only in Server Console
« Reply #5 on: June 29, 2021, 12:55:23 AM »
why I should stick with testing

you are too hard on yourself. 
you help a lot of people.

thank you for that.

and testing is far from being an easy task.

Offline Jean-Philippe Pialasse

  • *
  • 2,765
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Change Keyboard Layout - but only in Server Console
« Reply #6 on: June 29, 2021, 12:57:56 AM »
this one needs a bug to update wiki. or just one to update it right now :)