ShellAlbert / Jetson-TX2

new platform for processing video & audio
GNU Lesser General Public License v3.0
2 stars 0 forks source link

setup autostart application when OS startsup. #16

Open ShellAlbert opened 4 years ago

ShellAlbert commented 4 years ago

QQ截图20190811135205 QQ截图20190811135221 QQ截图20190811135233

ShellAlbert commented 4 years ago

启动root账户(使用root账户登录并自动运行程序) QQ截图20190811145133

/root/.config/autostart/p16.desktop [Desktop Entry] Type=Application Exec=bash /home/zhangshaoyan/p16/monitor.sh Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_US]=p16 Comment[en_US]= Comment=

经过这样设置后,当以root登录ubuntu桌面系统时,程序monitor.sh会自动启动。 可以设置自动登录,这样就不用手工登录了。 以后找到更好的”自动启动“的方法,可以替换。