Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to enable numlock at boot time for login screen?

Everytime I start Ubuntu I have to hit the num lock button which isn't a big deal but I so use it a lot and it would be nice to have it enabled by default.

Can someone tell me how to so this?

share|improve this question

marked as duplicate by Rinzwind, Anwar Shah, reverendj1, TheXed, Jorge Castro Oct 4 '12 at 20:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

could you please search askubuntu 1st before making me waste my time ;-) This has been asked before:… and not even so long ago. Removed my answer... – Rinzwind Oct 4 '12 at 14:56
Sorry I was on my mobile and didn't have the search function readily available... Next time though leave the snarky attitude at home, it makes for a much less hostile environment. – TheXed Oct 4 '12 at 20:02

According to this link:

Enable NumLock during startup

Enabling Numlock on startup can be done of several different ways. First install numlockx:

sudo apt-get install numlockx

Place command with init scripts

sudo sed -i 's|^exit 0.*$|# Numlock enable\n[ -x /usr/bin/numlockx ] \&\& numlockx on\n\nexit 0|' /etc/rc.local

Enabling NumLock from startx

If you are not using a graphical display manager then add the following line to /etc/X11/xinit/xinitrc

/usr/bin/numlockx on

Enabling NumLock for Virtual Consoles (TTYs)

If you use the virtual consoles regularly, then you will quite likely want to have numlock on for the TTYs after boot up. The status of numlock/scroll-lock/capslock can be manipulated with the setleds command. One way to guarantee that numlock will be turned on after bootup for the TTYs is to run setleds via rc.local (a script run after every runlevel change; which in particular runs after booting up). To do so add something similar to the following in the file /etc/rc.local:

# Turn Numlock on for the TTYs:
for tty in /dev/tty[1-6]; do
    /usr/bin/setleds -D +num < $tty
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.