How to change input keyboard layout while in console? Announcing the arrival of Valued...
Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?
/bin/ls sorts differently than just ls
Why doesn't the university give past final exams' answers?
How to ask rejected full-time candidates to apply to teach individual courses?
Trying to enter the Fox's den
How can I introduce the names of fantasy creatures to the reader?
Converting a text document with special format to Pandas DataFrame
What is the difference between 准时 and 按时?
When speaking, how do you change your mind mid-sentence?
Providing direct feedback to a product salesperson
When does Bran Stark remember Jamie pushing him?
Can the van der Waals coefficients be negative in the van der Waals equation for real gases?
Are Flameskulls resistant to magical piercing damage?
Can this water damage be explained by lack of gutters and grading issues?
2 sample t test for sample sizes - 30,000 and 150,000
Why isn't everyone flabbergasted about Bran's "gift"?
Does using the Inspiration rules for character defects encourage My Guy Syndrome?
Can I take recommendation from someone I met at a conference?
A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?
How do I deal with an erroneously large refund?
Does Prince Arnaud cause someone holding the Princess to lose?
Proving inequality for positive definite matrix
Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?
How to produce a PS1 prompt in bash or ksh93 similar to tcsh
How to change input keyboard layout while in console?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Change keyboard layout in Linuxhow to change keyboard layout from Spanish to EnglishAutomatically change layout depending on keyboard being usedHow can I easily toggle between Dvorak and Qwerty keyboard layouts from a Linux system console?Change keyboard layout settings from a Linux consoleSystem wide keyboard layoutRussian keyboard layout on French keyboard (debian 8.3)How custom my keyboard layout?How to change keyboard layout in i3?Change Keyboard Layout in TTY Permanently
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I need to change layout of keyboard while working in console in Linux. I need to setup English layout as default for console. How to do it?
linux console
add a comment |
I need to change layout of keyboard while working in console in Linux. I need to setup English layout as default for console. How to do it?
linux console
What distro are you using?
– emzero
Mar 24 '12 at 23:31
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
1
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42
add a comment |
I need to change layout of keyboard while working in console in Linux. I need to setup English layout as default for console. How to do it?
linux console
I need to change layout of keyboard while working in console in Linux. I need to setup English layout as default for console. How to do it?
linux console
linux console
asked Mar 24 '12 at 23:22
J.OlufsenJ.Olufsen
1,244143354
1,244143354
What distro are you using?
– emzero
Mar 24 '12 at 23:31
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
1
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42
add a comment |
What distro are you using?
– emzero
Mar 24 '12 at 23:31
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
1
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42
What distro are you using?
– emzero
Mar 24 '12 at 23:31
What distro are you using?
– emzero
Mar 24 '12 at 23:31
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
1
1
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42
add a comment |
5 Answers
5
active
oldest
votes
To change the system-wide keyboard layout, run
sudo dpkg-reconfigure keyboard-configuration
or edit the XKBLAYOUT
line in /etc/default/keyboard
.
1
On Red Hat 7:localectl status
,localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in/usr/lib/kbd/keymaps/
btw..
– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state/etc/default/keyboard
. To change the keyboard settings in this case, you need to usedconf
– AtachiShadow
Feb 18 at 19:58
add a comment |
To change your keyboard layout fast, just install setxkbmap with:
sudo apt-get install x11-xkb-utils
After this you can always change the keyboard layout with:
setxkbmap us
To do this automatically every time, extend your .bashrc
with:
echo "setxkbmap us" >> ~/.bashrc
Now, open a new console and the US keyboard layout is activated.
Don't worry if the small keyboard layout icon in the Ubuntu panel does not change.
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in/etc/default/keyboard
like suggested by other answers.
– baptx
Aug 16 '18 at 15:27
add a comment |
another way, but I understand it wont last for next boot:
sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz
check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at/etc/rc.local
to not require sudo?
– Aquarius Power
Dec 26 '17 at 18:48
add a comment |
the very funny could be to switch back.. possible solution is, to make bash script (named w/ symbols of target language. for instance, англ). 2nd trick is, to type "setxkbmap us; setxkbmap ru" then it's possible to use bash history to return main layout to console.
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
add a comment |
A better hack is to monitor udev and reset it automatically if the keyboard gets disconnected. Even users on laptops might need it, since it might get instantaneously disconnected. I just made a github repo to do this.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f404457%2fhow-to-change-input-keyboard-layout-while-in-console%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
To change the system-wide keyboard layout, run
sudo dpkg-reconfigure keyboard-configuration
or edit the XKBLAYOUT
line in /etc/default/keyboard
.
1
On Red Hat 7:localectl status
,localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in/usr/lib/kbd/keymaps/
btw..
– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state/etc/default/keyboard
. To change the keyboard settings in this case, you need to usedconf
– AtachiShadow
Feb 18 at 19:58
add a comment |
To change the system-wide keyboard layout, run
sudo dpkg-reconfigure keyboard-configuration
or edit the XKBLAYOUT
line in /etc/default/keyboard
.
1
On Red Hat 7:localectl status
,localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in/usr/lib/kbd/keymaps/
btw..
– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state/etc/default/keyboard
. To change the keyboard settings in this case, you need to usedconf
– AtachiShadow
Feb 18 at 19:58
add a comment |
To change the system-wide keyboard layout, run
sudo dpkg-reconfigure keyboard-configuration
or edit the XKBLAYOUT
line in /etc/default/keyboard
.
To change the system-wide keyboard layout, run
sudo dpkg-reconfigure keyboard-configuration
or edit the XKBLAYOUT
line in /etc/default/keyboard
.
answered Mar 25 '12 at 5:50
ephemientephemient
19.5k42319
19.5k42319
1
On Red Hat 7:localectl status
,localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in/usr/lib/kbd/keymaps/
btw..
– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state/etc/default/keyboard
. To change the keyboard settings in this case, you need to usedconf
– AtachiShadow
Feb 18 at 19:58
add a comment |
1
On Red Hat 7:localectl status
,localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in/usr/lib/kbd/keymaps/
btw..
– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state/etc/default/keyboard
. To change the keyboard settings in this case, you need to usedconf
– AtachiShadow
Feb 18 at 19:58
1
1
On Red Hat 7:
localectl status
, localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in /usr/lib/kbd/keymaps/
btw..– David Tonhofer
Nov 29 '17 at 13:21
On Red Hat 7:
localectl status
, localectl list-keymaps
,localectl set-keymap cz
, see Changing the Keyboard Layout ... The keymaps are in /usr/lib/kbd/keymaps/
btw..– David Tonhofer
Nov 29 '17 at 13:21
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state
/etc/default/keyboard
. To change the keyboard settings in this case, you need to use dconf
– AtachiShadow
Feb 18 at 19:58
Hi)) Ubuntu 18.04.2 with the Gnome desktop does not respond to the state
/etc/default/keyboard
. To change the keyboard settings in this case, you need to use dconf
– AtachiShadow
Feb 18 at 19:58
add a comment |
To change your keyboard layout fast, just install setxkbmap with:
sudo apt-get install x11-xkb-utils
After this you can always change the keyboard layout with:
setxkbmap us
To do this automatically every time, extend your .bashrc
with:
echo "setxkbmap us" >> ~/.bashrc
Now, open a new console and the US keyboard layout is activated.
Don't worry if the small keyboard layout icon in the Ubuntu panel does not change.
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in/etc/default/keyboard
like suggested by other answers.
– baptx
Aug 16 '18 at 15:27
add a comment |
To change your keyboard layout fast, just install setxkbmap with:
sudo apt-get install x11-xkb-utils
After this you can always change the keyboard layout with:
setxkbmap us
To do this automatically every time, extend your .bashrc
with:
echo "setxkbmap us" >> ~/.bashrc
Now, open a new console and the US keyboard layout is activated.
Don't worry if the small keyboard layout icon in the Ubuntu panel does not change.
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in/etc/default/keyboard
like suggested by other answers.
– baptx
Aug 16 '18 at 15:27
add a comment |
To change your keyboard layout fast, just install setxkbmap with:
sudo apt-get install x11-xkb-utils
After this you can always change the keyboard layout with:
setxkbmap us
To do this automatically every time, extend your .bashrc
with:
echo "setxkbmap us" >> ~/.bashrc
Now, open a new console and the US keyboard layout is activated.
Don't worry if the small keyboard layout icon in the Ubuntu panel does not change.
To change your keyboard layout fast, just install setxkbmap with:
sudo apt-get install x11-xkb-utils
After this you can always change the keyboard layout with:
setxkbmap us
To do this automatically every time, extend your .bashrc
with:
echo "setxkbmap us" >> ~/.bashrc
Now, open a new console and the US keyboard layout is activated.
Don't worry if the small keyboard layout icon in the Ubuntu panel does not change.
edited Sep 15 '15 at 12:44
Arjan
27.1k1065107
27.1k1065107
answered Sep 15 '15 at 12:23
Malte AhlMalte Ahl
12113
12113
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in/etc/default/keyboard
like suggested by other answers.
– baptx
Aug 16 '18 at 15:27
add a comment |
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in/etc/default/keyboard
like suggested by other answers.
– baptx
Aug 16 '18 at 15:27
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in
/etc/default/keyboard
like suggested by other answers.– baptx
Aug 16 '18 at 15:27
This does not really change the default keyboard layout but is a sort of hack to reset the keyboard layout to another one everytime you open a new console (while it is only necessary to reset after reboot). For a permanent solution, it is possible to set it directly, for example in
/etc/default/keyboard
like suggested by other answers.– baptx
Aug 16 '18 at 15:27
add a comment |
another way, but I understand it wont last for next boot:
sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz
check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at/etc/rc.local
to not require sudo?
– Aquarius Power
Dec 26 '17 at 18:48
add a comment |
another way, but I understand it wont last for next boot:
sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz
check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at/etc/rc.local
to not require sudo?
– Aquarius Power
Dec 26 '17 at 18:48
add a comment |
another way, but I understand it wont last for next boot:
sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz
check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better
another way, but I understand it wont last for next boot:
sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz
check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better
answered Jan 26 '13 at 23:21
Aquarius PowerAquarius Power
467815
467815
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at/etc/rc.local
to not require sudo?
– Aquarius Power
Dec 26 '17 at 18:48
add a comment |
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at/etc/rc.local
to not require sudo?
– Aquarius Power
Dec 26 '17 at 18:48
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
Put it in /etc/profile.d/bashrc
– B K
Mar 25 '12 at 1:01
@BK, may be at
/etc/rc.local
to not require sudo?– Aquarius Power
Dec 26 '17 at 18:48
@BK, may be at
/etc/rc.local
to not require sudo?– Aquarius Power
Dec 26 '17 at 18:48
add a comment |
the very funny could be to switch back.. possible solution is, to make bash script (named w/ symbols of target language. for instance, англ). 2nd trick is, to type "setxkbmap us; setxkbmap ru" then it's possible to use bash history to return main layout to console.
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
add a comment |
the very funny could be to switch back.. possible solution is, to make bash script (named w/ symbols of target language. for instance, англ). 2nd trick is, to type "setxkbmap us; setxkbmap ru" then it's possible to use bash history to return main layout to console.
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
add a comment |
the very funny could be to switch back.. possible solution is, to make bash script (named w/ symbols of target language. for instance, англ). 2nd trick is, to type "setxkbmap us; setxkbmap ru" then it's possible to use bash history to return main layout to console.
the very funny could be to switch back.. possible solution is, to make bash script (named w/ symbols of target language. for instance, англ). 2nd trick is, to type "setxkbmap us; setxkbmap ru" then it's possible to use bash history to return main layout to console.
answered Mar 6 '18 at 20:24
Evgeney KnyazhevEvgeney Knyazhev
11
11
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
add a comment |
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
1
1
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
Can you please clarify (1) what you’re saying, and (2) how it answers the question?
– Scott
Mar 6 '18 at 20:29
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
well, you switched console in russian language. how would you like to switch it back to english 777 actually, i didn't answer main question, i just added some tricks to avoid possible problems. For example, you work w/o gui & switched console to russian, so you cannot type any command. :)
– Evgeney Knyazhev
Mar 6 '18 at 22:06
add a comment |
A better hack is to monitor udev and reset it automatically if the keyboard gets disconnected. Even users on laptops might need it, since it might get instantaneously disconnected. I just made a github repo to do this.
add a comment |
A better hack is to monitor udev and reset it automatically if the keyboard gets disconnected. Even users on laptops might need it, since it might get instantaneously disconnected. I just made a github repo to do this.
add a comment |
A better hack is to monitor udev and reset it automatically if the keyboard gets disconnected. Even users on laptops might need it, since it might get instantaneously disconnected. I just made a github repo to do this.
A better hack is to monitor udev and reset it automatically if the keyboard gets disconnected. Even users on laptops might need it, since it might get instantaneously disconnected. I just made a github repo to do this.
answered 6 hours ago
Spenser TruexSpenser Truex
1237
1237
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f404457%2fhow-to-change-input-keyboard-layout-while-in-console%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What distro are you using?
– emzero
Mar 24 '12 at 23:31
Ubuntu, logged under root
– J.Olufsen
Mar 24 '12 at 23:37
1
"loadkeys us" worked! How to make it default layout?
– J.Olufsen
Mar 24 '12 at 23:42