Nov 12, 2009

Howto turn numlock on at startup in ubuntu


It is pretty annoying that ubuntu has numlock off as default during startup for people that use digits in their passwords. Good thing is, it's not that hard to change this. To turn numlock on during startup by default proceed with these commands in terminal:


First install numlockx - program to control the NumLock key inside X11 session scripts:
baban@brux:~$ sudo apt-get install numlockx

Now create a backup file for /etc/gdm/Init/Default
baban@brux:~$ sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default_backup

Open the file in your fave editor (vi, gedit, nano):
baban@brux:~$ sudo vi /etc/gdm/Init/Default

Insert these lines before "exit0":
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi

Next time you log in a numlock will be on.

No comments:

Post a Comment