Page 1 of 1
[Solved] LILO set keyboard layout?
Posted: 22. Dec 2014, 19:08
by icaroperseo
Hi guys!
I have a question regarding to LILO config. I have a system which is configured as follows:
- MBR, Luks & LVM for all partitions (except /boot).
- LILO protected with password.
This system has a spanish/latinamerican keyboard (layout) therefore when I type the LILO password does using a english layout (because of this some characters change places). Is there any way around this?
Thanks in advance!!!
Re: LILO set keyboard layout?
Posted: 23. Dec 2014, 15:23
by mimosa
I don't know of any (though maybe someone else does). But you could just choose a password that doesn't use any keys that move.
Re: LILO set keyboard layout?
Posted: 23. Dec 2014, 21:19
by gapan
I'm not aware of any way to switch layouts in LILO either.
Re: LILO set keyboard layout?
Posted: 23. Dec 2014, 21:39
by sammy
I believe, for changing the keyboard layout in LILO, you should start with
As an example, for (in my case) using a german keyboard layout would be the command
Code: Select all
keytab-lilo /usr/share/kbd/keymaps/i386/qwertz/de.map.gz /usr/share/kbd/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz > /boot/de-latin1-nodeadkeys.ktl
For other layouts, checkout "/usr/share/kbd/keymaps/".
Then insert the line "keytable=..." into /etc/lilo.conf, e.g.
Code: Select all
[...]
boot=/dev/sda
keytable=/boot/de-latin1-nodeadkeys.ktl
compact
[...]
and run lilo.
That's the theory, however, I did not test it.
Found that information on
http://www.brunolinux.com/05-Configurin ... _Lilo.html and don't know if it still works. But since "keytab-lilo" is still present in the LILO package, I believe that it should work.
This has nothing to do with the LUKS encryption, since for that you have to use "mkinitrd" to load the keymap.
Re: LILO set keyboard layout?
Posted: 24. Dec 2014, 05:35
by icaroperseo
sammy wrote:I believe, for changing the keyboard layout in LILO, you should start with
As an example, for (in my case) using a german keyboard layout would be the command
Code: Select all
keytab-lilo /usr/share/kbd/keymaps/i386/qwertz/de.map.gz /usr/share/kbd/keymaps/i386/qwertz/de-latin1-nodeadkeys.map.gz > /boot/de-latin1-nodeadkeys.ktl
For other layouts, checkout "/usr/share/kbd/keymaps/".
Then insert the line "keytable=..." into /etc/lilo.conf, e.g.
Code: Select all
[...]
boot=/dev/sda
keytable=/boot/de-latin1-nodeadkeys.ktl
compact
[...]
and run lilo.
That's the theory, however, I did not test it.
Found that information on
http://www.brunolinux.com/05-Configurin ... _Lilo.html and don't know if it still works. But since "keytab-lilo" is still present in the LILO package, I believe that it should work.
This has nothing to do with the LUKS encryption, since for that you have to use "mkinitrd" to load the keymap.
Thank you very much !!! Your comment has been very useful to give me a clue.
The process described above is correct but requires some preliminary steps:
Code: Select all
mkdir /usr/lib/kbd
mkdir /usr/lib/kbd/keytables
cd /usr/lib/kbd/keytables
cp /usr/share/kbd/keymaps/i386/qwerty/us.map.gz .
gunzip us.map.gz
mv us.map us.kmap
Source: http://stevedowe.me/2013/10/becoming-a-slacker.html
if not done, the following errors are obtained:
Code: Select all
root[somebody]# keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/la-latin1.map.gz > /boot/la-latin1.ktl
cannot open file us.kmap
Keymap is empty
root[somebody]# lilo
Warning: LBA32 addressing assumed
Fatal: /boot/la-latin1.ktl: bad keyboard translation table
Once made the above proceeds as indicated:
Code: Select all
keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/la-latin1.map.gz >/boot/la-latin1.ktl
vim /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append="quiet nomodeset vt.default_utf8=1 resume=/dev/cryptvg/swap"
boot = /dev/sda
keytable=/boot/la-latin1.ktl
...
lilo
Thanks again to everyone for their input, you are great!!!!
Regards
Re: [Solved] LILO set keyboard layout?
Posted: 24. Dec 2014, 09:01
by sammy
Glad I could help you.
if not done, the following errors are obtained:
Code: Select all
root[somebody]# keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/la-latin1.map.gz > /boot/la-latin1.ktl
cannot open file us.kmap
Keymap is empty
Using a path for the default keytable instead of copying and extracting the us.map.gz (as I wrote above), I did not get any error with keytab-lilo.
Did you also try
Code: Select all
keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/share/kbd/keymaps/i386/qwerty/la-latin1.map.gz > /boot/la-latin1.ktl
?
Re: [Solved] LILO set keyboard layout?
Posted: 6. Jan 2015, 00:18
by icaroperseo
sammy wrote:
Did you also try
Code: Select all
keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/share/kbd/keymaps/i386/qwerty/la-latin1.map.gz > /boot/la-latin1.ktl
?
I'm so sorry!!! I was not at home. You are right!!! It works awesome, thanks...