[Solved] LILO set keyboard layout?

Other talk about Salix
Post Reply
User avatar
icaroperseo
Donor
Posts: 67
Joined: 19. Nov 2014, 01:12
Contact:

[Solved] LILO set keyboard layout?

Post by icaroperseo » 22. Dec 2014, 19:08

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!!!
Last edited by icaroperseo on 24. Dec 2014, 05:36, edited 1 time in total.

User avatar
mimosa
Salix Warrior
Posts: 3089
Joined: 25. May 2010, 17:02
Contact:

Re: LILO set keyboard layout?

Post by mimosa » 23. Dec 2014, 15:23

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.

User avatar
gapan
Salix Wizard
Posts: 5509
Joined: 6. Jun 2009, 17:40

Re: LILO set keyboard layout?

Post by gapan » 23. Dec 2014, 21:19

I'm not aware of any way to switch layouts in LILO either.
Image
Image

User avatar
sammy
Posts: 19
Joined: 12. Sep 2013, 18:52

Re: LILO set keyboard layout?

Post by sammy » 23. Dec 2014, 21:39

I believe, for changing the keyboard layout in LILO, you should start with

Code: Select all

man keytab-lilo
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.

User avatar
icaroperseo
Donor
Posts: 67
Joined: 19. Nov 2014, 01:12
Contact:

Re: LILO set keyboard layout?

Post by icaroperseo » 24. Dec 2014, 05:35

sammy wrote:I believe, for changing the keyboard layout in LILO, you should start with

Code: Select all

man keytab-lilo
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

User avatar
sammy
Posts: 19
Joined: 12. Sep 2013, 18:52

Re: [Solved] LILO set keyboard layout?

Post by sammy » 24. Dec 2014, 09:01

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
?

User avatar
icaroperseo
Donor
Posts: 67
Joined: 19. Nov 2014, 01:12
Contact:

Re: [Solved] LILO set keyboard layout?

Post by icaroperseo » 6. Jan 2015, 00:18

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...

Post Reply