Annoyingly, numlock is not turned on by default in Debian or Fedora. Thankfully, the fix is simple.
Firstly, install the
numlockx program. This is a simple command line tool which can turn numlock on or off:
apt-get install numlockx
yum install numlockx
Next, add this to one of the startup scripts. I like to put this at the end of
/etc/X11/xinit/xinitrc but there are other places you can put it.
if [ -x /usr/bin/numlockx ];
And you’re done! Numlock will now be turned on on startup.