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!!!
[Solved] LILO set keyboard layout?
- icaroperseo
- Donor
- Posts: 67
- Joined: 19. Nov 2014, 01:12
- Contact:
[Solved] LILO set keyboard layout?
Last edited by icaroperseo on 24. Dec 2014, 05:36, edited 1 time in total.
Re: LILO set keyboard layout?
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?
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
For other layouts, checkout "/usr/share/kbd/keymaps/".
Then insert the line "keytable=..." into /etc/lilo.conf, e.g.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.
Code: Select all
man keytab-lilo
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
Then insert the line "keytable=..." into /etc/lilo.conf, e.g.
Code: Select all
[...]
boot=/dev/sda
keytable=/boot/de-latin1-nodeadkeys.ktl
compact
[...]
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.
- icaroperseo
- Donor
- Posts: 67
- Joined: 19. Nov 2014, 01:12
- Contact:
Re: LILO set keyboard layout?
Thank you very much !!! Your comment has been very useful to give me a clue.sammy wrote:I believe, for changing the keyboard layout in LILO, you should start withAs an example, for (in my case) using a german keyboard layout would be the commandCode: Select all
man keytab-lilo
For other layouts, checkout "/usr/share/kbd/keymaps/".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
Then insert the line "keytable=..." into /etc/lilo.conf, e.g.and run lilo.Code: Select all
[...] boot=/dev/sda keytable=/boot/de-latin1-nodeadkeys.ktl compact [...]
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.
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
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
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
Regards
Re: [Solved] LILO set keyboard layout?
Glad I could help you.
Did you also try?
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.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
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
- icaroperseo
- Donor
- Posts: 67
- Joined: 19. Nov 2014, 01:12
- Contact:
Re: [Solved] LILO set keyboard layout?
I'm so sorry!!! I was not at home. You are right!!! It works awesome, thanks...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