How to change grub command-line (grub shell) keyboard layout?
up vote
2
down vote
favorite
When I boot in GRUB2 and press c, I have access to GRUB shell.
How to change the keyboard layout (language) of this GRUB shell?
Note that I'm booting an Ubuntu VM inside Virtualbox.
grub2 virtualbox keyboard-layout
add a comment |
up vote
2
down vote
favorite
When I boot in GRUB2 and press c, I have access to GRUB shell.
How to change the keyboard layout (language) of this GRUB shell?
Note that I'm booting an Ubuntu VM inside Virtualbox.
grub2 virtualbox keyboard-layout
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
When I boot in GRUB2 and press c, I have access to GRUB shell.
How to change the keyboard layout (language) of this GRUB shell?
Note that I'm booting an Ubuntu VM inside Virtualbox.
grub2 virtualbox keyboard-layout
When I boot in GRUB2 and press c, I have access to GRUB shell.
How to change the keyboard layout (language) of this GRUB shell?
Note that I'm booting an Ubuntu VM inside Virtualbox.
grub2 virtualbox keyboard-layout
grub2 virtualbox keyboard-layout
edited Mar 28 '16 at 22:59
asked Mar 28 '16 at 22:54
KrisWebDev
6531617
6531617
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
6
down vote
accepted
First, check that you're using GRUB 2 (GRUB 0.x works differently).
grub-install --version
Generate a GRUB keyboard layout file. Below is the command for a fr
ench keyboard. For other languages, check /usr/share/X11/xkb/symbols/
. Filename choice is not important (you can change bepo
).
sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr
Edit /etc/default/grub
with root rights to have:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"
Edit /etc/grub.d/40_custom
with root rights to have:
#!/bin/sh
exec tail -n +3 $0
insmod keylayouts
keymap /boot/grub/bepo.gkb
Finally:
sudo update-grub
Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard
make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0
is properly commented.
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably becausegrub-kbdcomp
reported multiple timesinvalid code
andinvalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
add a comment |
up vote
1
down vote
Fine-tuning my grub (2.02-2ubuntu8.3), on an old fully functional Asus N73JF (multiboot Windows 7, Windows recovery, Ubuntu 15.10, Ubuntu 18.04...) a custom menu was not an option for me.
sudo grub-kbdcomp -o /boot/grub/layouts/laptop.gkb fr
(Ubuntu's grub2 uses /boot/grub/layouts from 15.10).
Next, I don't open /etc/default/grub
nor /etc/grub.d/40_custom
: I edit /etc/grub.d/00_header
where I replace
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
EOF
with
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
insmod terminal
terminal_output gfxterm
insmod keylayouts
insmod at_keyboard
terminal_input at_keyboard
keymap laptop
EOF
Thanks to KrisWebDev for his question-answer: I learn a lot looking inside /boot/grub/i386-pc/
.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
First, check that you're using GRUB 2 (GRUB 0.x works differently).
grub-install --version
Generate a GRUB keyboard layout file. Below is the command for a fr
ench keyboard. For other languages, check /usr/share/X11/xkb/symbols/
. Filename choice is not important (you can change bepo
).
sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr
Edit /etc/default/grub
with root rights to have:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"
Edit /etc/grub.d/40_custom
with root rights to have:
#!/bin/sh
exec tail -n +3 $0
insmod keylayouts
keymap /boot/grub/bepo.gkb
Finally:
sudo update-grub
Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard
make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0
is properly commented.
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably becausegrub-kbdcomp
reported multiple timesinvalid code
andinvalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
add a comment |
up vote
6
down vote
accepted
First, check that you're using GRUB 2 (GRUB 0.x works differently).
grub-install --version
Generate a GRUB keyboard layout file. Below is the command for a fr
ench keyboard. For other languages, check /usr/share/X11/xkb/symbols/
. Filename choice is not important (you can change bepo
).
sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr
Edit /etc/default/grub
with root rights to have:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"
Edit /etc/grub.d/40_custom
with root rights to have:
#!/bin/sh
exec tail -n +3 $0
insmod keylayouts
keymap /boot/grub/bepo.gkb
Finally:
sudo update-grub
Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard
make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0
is properly commented.
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably becausegrub-kbdcomp
reported multiple timesinvalid code
andinvalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
add a comment |
up vote
6
down vote
accepted
up vote
6
down vote
accepted
First, check that you're using GRUB 2 (GRUB 0.x works differently).
grub-install --version
Generate a GRUB keyboard layout file. Below is the command for a fr
ench keyboard. For other languages, check /usr/share/X11/xkb/symbols/
. Filename choice is not important (you can change bepo
).
sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr
Edit /etc/default/grub
with root rights to have:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"
Edit /etc/grub.d/40_custom
with root rights to have:
#!/bin/sh
exec tail -n +3 $0
insmod keylayouts
keymap /boot/grub/bepo.gkb
Finally:
sudo update-grub
Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard
make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0
is properly commented.
First, check that you're using GRUB 2 (GRUB 0.x works differently).
grub-install --version
Generate a GRUB keyboard layout file. Below is the command for a fr
ench keyboard. For other languages, check /usr/share/X11/xkb/symbols/
. Filename choice is not important (you can change bepo
).
sudo grub-kbdcomp -o /boot/grub/bepo.gkb fr
Edit /etc/default/grub
with root rights to have:
#GRUB_HIDDEN_TIMEOUT=0
GRUB_TERMINAL_INPUT="at_keyboard"
Edit /etc/grub.d/40_custom
with root rights to have:
#!/bin/sh
exec tail -n +3 $0
insmod keylayouts
keymap /boot/grub/bepo.gkb
Finally:
sudo update-grub
Note: Forget immediately about using the Shift key to display GRUB menu! It may be normal that terminal_input at_keyboard
make this key not work anymore. So make sure #GRUB_HIDDEN_TIMEOUT=0
is properly commented.
edited Dec 1 at 9:12
answered Mar 28 '16 at 22:54
KrisWebDev
6531617
6531617
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably becausegrub-kbdcomp
reported multiple timesinvalid code
andinvalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
add a comment |
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably becausegrub-kbdcomp
reported multiple timesinvalid code
andinvalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably because
grub-kbdcomp
reported multiple times invalid code
and invalid identifier
– Xerus
Apr 22 at 16:46
Trying this on Linux Mint 18.3 with german locale (de) completely disabled my keyboard while in grub. Probably because
grub-kbdcomp
reported multiple times invalid code
and invalid identifier
– Xerus
Apr 22 at 16:46
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
Link is dead and solution isn't bullet proof on laptops.
– Zulgrib
Apr 27 at 11:48
add a comment |
up vote
1
down vote
Fine-tuning my grub (2.02-2ubuntu8.3), on an old fully functional Asus N73JF (multiboot Windows 7, Windows recovery, Ubuntu 15.10, Ubuntu 18.04...) a custom menu was not an option for me.
sudo grub-kbdcomp -o /boot/grub/layouts/laptop.gkb fr
(Ubuntu's grub2 uses /boot/grub/layouts from 15.10).
Next, I don't open /etc/default/grub
nor /etc/grub.d/40_custom
: I edit /etc/grub.d/00_header
where I replace
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
EOF
with
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
insmod terminal
terminal_output gfxterm
insmod keylayouts
insmod at_keyboard
terminal_input at_keyboard
keymap laptop
EOF
Thanks to KrisWebDev for his question-answer: I learn a lot looking inside /boot/grub/i386-pc/
.
add a comment |
up vote
1
down vote
Fine-tuning my grub (2.02-2ubuntu8.3), on an old fully functional Asus N73JF (multiboot Windows 7, Windows recovery, Ubuntu 15.10, Ubuntu 18.04...) a custom menu was not an option for me.
sudo grub-kbdcomp -o /boot/grub/layouts/laptop.gkb fr
(Ubuntu's grub2 uses /boot/grub/layouts from 15.10).
Next, I don't open /etc/default/grub
nor /etc/grub.d/40_custom
: I edit /etc/grub.d/00_header
where I replace
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
EOF
with
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
insmod terminal
terminal_output gfxterm
insmod keylayouts
insmod at_keyboard
terminal_input at_keyboard
keymap laptop
EOF
Thanks to KrisWebDev for his question-answer: I learn a lot looking inside /boot/grub/i386-pc/
.
add a comment |
up vote
1
down vote
up vote
1
down vote
Fine-tuning my grub (2.02-2ubuntu8.3), on an old fully functional Asus N73JF (multiboot Windows 7, Windows recovery, Ubuntu 15.10, Ubuntu 18.04...) a custom menu was not an option for me.
sudo grub-kbdcomp -o /boot/grub/layouts/laptop.gkb fr
(Ubuntu's grub2 uses /boot/grub/layouts from 15.10).
Next, I don't open /etc/default/grub
nor /etc/grub.d/40_custom
: I edit /etc/grub.d/00_header
where I replace
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
EOF
with
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
insmod terminal
terminal_output gfxterm
insmod keylayouts
insmod at_keyboard
terminal_input at_keyboard
keymap laptop
EOF
Thanks to KrisWebDev for his question-answer: I learn a lot looking inside /boot/grub/i386-pc/
.
Fine-tuning my grub (2.02-2ubuntu8.3), on an old fully functional Asus N73JF (multiboot Windows 7, Windows recovery, Ubuntu 15.10, Ubuntu 18.04...) a custom menu was not an option for me.
sudo grub-kbdcomp -o /boot/grub/layouts/laptop.gkb fr
(Ubuntu's grub2 uses /boot/grub/layouts from 15.10).
Next, I don't open /etc/default/grub
nor /etc/grub.d/40_custom
: I edit /etc/grub.d/00_header
where I replace
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
EOF
with
cat << EOF
set gfxmode=${GRUB_GFXMODE}
load_video
insmod gfxterm
insmod terminal
terminal_output gfxterm
insmod keylayouts
insmod at_keyboard
terminal_input at_keyboard
keymap laptop
EOF
Thanks to KrisWebDev for his question-answer: I learn a lot looking inside /boot/grub/i386-pc/
.
answered Sep 1 at 17:45
Anacharsis
163
163
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2faskubuntu.com%2fquestions%2f751259%2fhow-to-change-grub-command-line-grub-shell-keyboard-layout%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