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:


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:

# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then

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: Logo

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

Facebook photo

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

Connecting to %s