When I installed Ubuntu, I had a keyboard with the " above 2.
Later on, I changed my keyboard to one with EN-US
layout with the @ above the 2 and changed my password in the terminal with the passwd
command. The password was changed successfully, but when I open a terminal with CTRL+ALT+F1 and try to log in with my username and password, it says "login incorrect" unless I switch " and @. Then I can login.
Now my question is: Why is the keyboard layout different in the terminal than in other software?
cat /etc/default/keyboard
2.gsettings get org.gnome.desktop.input-sources sources
– Gunnar Hjalmarsson Jun 17 '19 at 02:35KEYBOARD CONFIGURATION FILE
Consult the keyboard(5) manual page.
XKBMODEL="pc105" XKBLAYOUT="gb" XKBVARIANT="" XKBOPTIONS=""
BACKSPACE="guess"
– Richie Jun 17 '19 at 12:22The X11 graphical desktop environment has different keyboard configuration than the virtual console. You can type in the following command to see the keyboard configurations.
localectl status
By default, the virtual console keyboard mapping isn't specified. You can set keyboard mapping for the virtual console with the following command.
sudo localectl set-keymap us
– Richie Jun 17 '19 at 12:27