How to change default keyboard layout for console
Tofloor
poster avatar
savanweylyn
deepin
2016-08-29 10:34
Author
Hi,

the default keyboard layout in console is english QWERTY, but my native keyboard layout is hungarian QWERTZ.
How can i set it to be the default keyboard layout in console?

Reply Favorite View the author
All Replies
tristar
deepin
2016-08-29 11:04
#1
sudo dpkg-reconfigure keyboard-configuration
Reply View the author
savanweylyn
deepin
2016-08-29 12:03
#2
https://bbs.deepin.org/post/31416
sudo dpkg-reconfigure keyboard-configuration

I've already tried it, but it didn't help. Keyboard layout in console is still english.
Reply View the author
tristar
deepin
2016-08-29 22:36
#3
Edited by tristar at 2016-8-29 07:38

This is not checked by me, so I'm not sure if this will work for you:

sudo apt-get install console-common
sudo dpkg-reconfigure console-data
and maybe more infos to study for you: https://wiki.debian.org/Keyboard
there you have search field, so you can search more about that matter
Reply View the author
savanweylyn
deepin
2016-08-30 21:56
#4
https://bbs.deepin.org/post/31416
This is not checked by me, so I'm not sure if this will work for you:

sudo apt-get install console- ...

These didn't work either. The console keyboard layout is still the same (even after two reboots). I remember of doing this somewhat earlier, but i had to reinstall Deepin (half of the apps didn't start, apt-get & dpkg didn't work) and now it's not working.
Anyway thanks for trying to help.
Reply View the author
tristar
deepin
2016-08-30 23:32
#5
What is output of this:

  1. cat /etc/default/keyboard
Copy the Code
Reply View the author
com_bvv
deepin
2016-08-30 23:59
#6
What do you have selected in the system settings? There is Hungarian (Qwerty), or I do not understand what you mean...
Reply View the author
horvan
deepin
2016-08-31 00:45
#7
sudo apt-get install console-data
sudo apt-get install console-setup
sudo  apt-get install locales
sudo  apt-get install keyboard-configuration

than do dpkg-reconfigure for each of these
and set your settings.

example: sudo dpkg-reconfigure console-data
Reply View the author
savanweylyn
deepin
2016-08-31 02:51
#8
Reply View the author
savanweylyn
deepin
2016-08-31 02:59
#9
https://bbs.deepin.org/post/31416
What do you have selected in the system settings? There is Hungarian (Qwerty), or I do not understan ...

On GUI, my keyboard layout is the selected Hungarian QWERTZ, but on non-GUI (console) this layout is english QWERTY. And because I'm Hungarian and my computer's keyboard is Hungarian too, I would like to use Hungarian keyboard layout in console as well as in GUI.
Reply View the author
savanweylyn
deepin
2016-08-31 03:00
#10
https://bbs.deepin.org/post/31416
sudo apt-get install console-data
sudo apt-get install console-setup
sudo  apt-get install locales

Everything's done, nothing happened.
Reply View the author
com_bvv
deepin
2016-08-31 03:24
#11
Edited by com_bvv at 2016-8-30 19:26
https://bbs.deepin.org/post/31416
On GUI, my keyboard layout is the selected Hungarian QWERTZ, but on non-GUI (console) this layout  ...

How many keyboard layouts in your system? If only Hungarian, try to add English. Further, when using the console you just switch on the Hungarian layout...
Reply View the author
tristar
deepin
2016-08-31 03:46
#12
Edited by tristar at 2016-8-30 12:49
https://bbs.deepin.org/post/31416
On GUI, my keyboard layout is the selected Hungarian QWERTZ, but on non-GUI (console) this layout  ...

I have slovenian layout in the console (ctrl+alt+f1..f6), and I did this:


sudo dpkg-reconfigure console-setup

UTF-8
Latin2
Fixed
8x16

Try to use different font, after every change reboot your system.
Reply View the author
savanweylyn
deepin
2016-09-01 08:26
#13
https://bbs.deepin.org/post/31416
I have slovenian layout in the console (ctrl+alt+f1..f6), and I did this:

It worked! Thanks!
Reply View the author
calgues
deepin
2016-09-01 17:00
#14
Another old but clean solution is to add to the ~/.bashrc file ('~' is your home directory) the following lines:

#keyboard layout
setxkbmap hu

Save and exit. That's all. I am not sure if "hu" is the default value for hungarian layout: just check out to find it.
Reply View the author
tristar
deepin
2016-09-02 02:55
#15
Edited by tristar at 2016-9-1 14:16

If your topic is solved, maybe is ok to add [solved] at beginning of the topic so others will know about that.
Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG