5、开机自启数字键盘

**1、下载软件包 打开终端输入sudo apt-get install numlockx ,如图所示** ![图片1.png](https://cos.easydoc.net/12344251/files/ksa5iq39.png) **2、修改开机自启文件** **在终端中输入sudo vim /etc/rc.local,并在内exit 0前添加如下内容(按 i 进入编辑模式,按esc推出编辑模式,退出后接着输入:wq回车保存)** if [ -x /usr/bin/numlock ];then numlock on fi **如图所示** ![图片2.png](https://cos.easydoc.net/12344251/files/ksa5k5dj.png) **3.重启查看效果 重启电脑查看是否生效**