ubuntu 自动启动程序

首先打开终端ctrl + alt + t

sudo  -i 

输入密码:ubuntu

chmod 777 /etc/rc.local

打开  vi   /etc/rc.local

按  i  键进入输入模式

在exti 0 前一行输入  sudo  ./home/ubuntu/uart11/build-uart-JetsonTx1-Debug/uart11  这是我的串口输出程序经编译后生成的可执行文件 uart11 的绝对目录(我原来在后面加了& 结果不行,不知道原因,去掉就可以了)

保存退出   按Esc键输入:wq

原文地址:https://www.cnblogs.com/sgh69/p/7221772.html