Now that all software is installed, all that we need to do is perform a few configuration tasks.
Nothing is more annoying than using Linux with a wrong keymap loaded for your keyboard. If you have a default US keyboard, you can skip this section. The US keymap file is the default if you don't change it.
To set the default keymap file, create the /usr/share/kbd/keymaps/defkeymap.map.gz symlink by running the following commands:
ln -s <path/to/keymap> /usr/share/kbd/keymaps/defkeymap.map.gz |
Replace <path/to/keymap> with the your keyboard's map file. For example, if you have a Dutch keyboard, you would run:
ln -s i386/qwerty/nl.map.gz /usr/share/kbd/keymaps/defkeymap.map.gz |
A second option to configure your keyboard's layout is to compile the keymap directly into the kernel. This will make sure that your keyboard always works as expected, even when you have booted into maintenance mode (by passing `init=/bin/sh' to the kernel), in which case the bootscript that normally sets up your keymap isn't run.
Run the following command to patch the correct keymap into the kernel source. You will have to repeat this command whenever you unpack a new kernel:
loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ ����/usr/src/linux-2.4.20/drivers/char/defkeymap.c |
Programs like login, shutdown, uptime and others want to read from and write to the /var/run/utmp, /var/log/btmp and /var/log/wtmp. These files contain information about who is currently logged in. They also contain information on when the computer was last booted and shutdown and a record of the bad login attempts.
Create these files with their proper permissions by running the following commands:
touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} && chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp} |
Choose a password for user root and create it by running the following command:
passwd root |