open terminal and paste
sudo apt-get install numlockx
sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup
gksudo gedit /etc/X11/gdm/Init/Default
then , add this code to above of the “exit 0” line that is placed end of the file…
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi