Enable Num Lock on Gnome startup

Run the following command:

Explanation: install numlockx, generate a backup file for /etc/gdm/Init/Default, edit it

su -c 'yum install numlockx'  su -c 'cp /etc/gdm/Init/Default /etc/gdm/Init/Default_backup'  su -c 'gedit /etc/gdm/Init/Default'

When the text editor is launched, go to the bottom part of the file, add the following before exit 0

if [ -x /usr/bin/numlockx ]; then
    /usr/bin/numlockx on

Save and restart Gnome or reboot system to see if it works!


  1. http://www.unixmen.com/linux-tutorials/documentations-a-howto/118-how-to-enable-num-lock-on-gnome-startup-
  2. http://www.cyberciti.biz/faq/how-to-linux-turn-on-num-lock-on-gnome-startup/

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s