Skocz do zawartości

Keytab-lilo Howto


MC'

Rekomendowane odpowiedzi

Witam,

Mam następujący problem. Ponieważ potrzebny mi jest plik *.ktl dla pl2 (polska klawiatura + ogonki?)

do tego służy program keytab-lilo do którego opis wygląda tak:

Compiling keyboard translation tables
- - - - - - - - - - - - - - - - - - -

LILO obtains layout information from the keyboard translation tables Linux 
uses for the text console. They are usually stored in 
/usr/lib/kbd/keytables. LILO comes with a program keytab-lilo.pl that reads 
those tables and generates a table suitable for use by the map installer. 
keytab-lilo.pl invokes the program loadkeys to print the tables in a format 
that is easy to parse.*

 *  On some systems, only root can execute loadkeys. It is then necessary 
   to run keytab-lilo.pl as root too.

keytab-lilo.pl is used as follows:

 keytab-lilo.pl [ -p <old_code>=<new_code> ] ... 
   [<path>]<default_layout>[.<extension>] ]
    [<path>]<kbd_layout>[.<extension>] ]  

  -p <old_code>=<new_code>    
    Specifies corrections ("patches") to the mapping obtained from the 
   translation table files. E.g. if pressing the upper case "A" should 
   yield an at sign, -p 65=64 would be used. The  -p  option can be 
   repeated any number of times. The codes can also be given as 
   hexadecimal or as octal numbers if they are prefixed with 0x or 0, 
   respectively. 
 <path>  The directory in which the file resides. The default path is 
   /usr/lib/kbd/keytables. 
 <extension>  Usually the trailing .map, which is automatically added if 
   the file name doesn't contain dots. 
 <default_layout>  Is the layout which specifies the translation by the 
   BIOS. If none is specified, us is assumed. 
 <kbd_layout>  Is the actual layout of the keyboard. 

keytab-lilo.pl writes the resulting translation table as a binary string to 
standard output. Such tables can be stored anywhere with any name, but the 
suggested naming convention is /boot/<kbd>.ktl ("Keyboard Table for Lilo"), 
where <kbd> is the name of the keyboard layout.

Example:

keytab-lilo.pl de >/boot/de.ktl

 

Niestety w fedorze dla polecenia przerobionego dla moich potrzeb (bo tu w fedorce znalazłem ten plik)dostaję:

#./keytab-lilo.pl /lib/kbd/keymaps/i386/qwerty/pl2.map.gz > ~/pl2.ktl 
cannot open file /usr/lib/kbd/keytables/us.map
Keymap is empty
#

Nie mam pojęcia czemu on wybiera sobie tą domyślną ścieżkę do domyślnej "us" zamiast tej którą podałem ;/ Dodam jeszcze że nie mam zainstalowanego lilo lecz gruba.

Jak więc wobec tego powinienem postępować by uzyskać ten pl2.ktl?

Może robię jakiś błąd loigiczny, poprawcie mnie jeśli tak.

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
×
×
  • Dodaj nową pozycję...