My Linux Journal Day 23

Posted by George

Today should have been really easy, but it was a bigger deal than I expected. It should be easy to figure out how to get your NUMLOCK key to be on when you boot up right? Wrong. In all of the Windows PC’s I’ve used NUMLOCK is always onwhen booting up, so I expected to find a simple checkbox somewhere in Ubuntu for this simple feature. Nope.

GDM and GNOME

After looking around here’s what worked for me. I run Gnome sessions, so that means I run GDM (I learned form some quick reading). According to Gnome.org’s GDM page , GDM is the Gnome Display Manager that presents you with a graphical logon screen like this one:

GDM login screen

If you like it, you can find this login screen at http://art.gnome.org/themes/gdm_greeter/1374

Ubuntuguide to the Rescue

You can click on the link above and do a lot of scrolling or just use the steps below. For some reason I could not do an apt-get install to install numlockx, here’s what I did:

1) In Synaptic, install numlockx

2) Make a backup of the file you are about to edit. In your console window type:

sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak
_________________________________________

3) Now back into the console window to edit your file:

gksudo gedit /etc/gdm/Init/Default
_________________________________________

4) Now your file opens in gedit. Scroll down to the very bottom, and just above the bottom line that says “exit 0″ add this and save, then close the file:

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

5) Now if everything’s gone well when you reboot next time you will see your NUMLOCK key is ON.

RELATED POSTS

Tags: , , , , ,

Posted in mylinuxjournal by George | 4 Comments

4 Comments "My Linux Journal Day 23"

  • Richard Chapman says:
  • George says:
  • Richard Chapman says:
  • George says:
Leave a Comment