Adding a keymap post-install

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



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s