sudo apt-get install numlockx 然后编辑/etc/X11/gdm/Init/Default这个文件(注意备份),在最后一行exit 0前面添加: if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi