Adding a keymap post-install
Posted: 2016-04-04 Filed under: system | Tags: console, fi, keyboard, language, layout Leave a commentI have a non US keyboard and I normally choose the appropriate keyboard layout already at install time. Now, I installed Slackware 14.1 beta1 in a virtual machine in order to check how my SlackBuilds work. However, I forgot to set the keyboard this time. Annoying, so I first run:
/usr/bin/loadkeys fi.map
In this way I loaded the correct layout for my keyboard. Then, I created the necessary file for loading the layout upon boot:
touch /etc/rc.d/rc.keymap
This file is not present if the default layout was not changed during install. I pasted inside the following:
#!/bin/sh # Load the keyboard map. More maps are in /usr/share/kbd/keymaps. if [ -x /usr/bin/loadkeys ]; then /usr/bin/loadkeys fi.map fi
Made it executable:
chmod +x /etc/rc.d/rc.keymap
Reboot and it loads. Tip is from here. Keyboard layouts are found in /usr/share/kbd/keymaps/
.