sudo apt-get install numlockx
- Now edit /etc/mdm/Init/Default and insert the bellow code.
sudo gedit /etc/mdm/Init/Default (or use vi, nano, leafpad, etc as the editor instead of gedit)
and insert these lines at the end of the file, just before "exit 0":
if [ -x '/usr/bin/numlockx' ];
then
/usr/bin/numlockx on
fi
- Save & Exit editor program
It is done.
