debian 程序开机自动启动设置
2017-05-19 17:17
645 查看
板子使用的debian系统里本身就有会话管理工具lxsession,这个是有界面的,简单易操作,这里只记录下利用lxsession管理开机自启动。
lxsession is a program that provides a X11 session manager. It is the default X11 session manager of LXDE.
A session manager is used to automatically start a set of applications and set up a working desktop environment. Moreover, when the user logout, it remembers the applications in use, and restart them the next time you login.
命令行修改
如果改错了图形界面都没了,那还是需要命令行修复回来的。
目录在~/.config下。
用“#”号注释掉不需要启动的。
lxsession 简介
lxsession —- a lightweight X session managerlxsession is a program that provides a X11 session manager. It is the default X11 session manager of LXDE.
A session manager is used to automatically start a set of applications and set up a working desktop environment. Moreover, when the user logout, it remembers the applications in use, and restart them the next time you login.
操作设置
如下图点点点就行,找到autostart,add添加路径就OK了,简单明了没什么可说的了。命令行修改
如果改错了图形界面都没了,那还是需要命令行修复回来的。
目录在~/.config下。
root@NanoPi2:~# ls .config/ autostart lxsession-default-apps pulse Trolltech.conf geany lxterminal QtProject user-dirs.dirs gtk-2.0 mimeapps.list QtProject.conf user-dirs.locale libfm Mousepad ristretto xfburn lxpanel openbox smplayer xfce4 lxsession pcmanfm Thunar
用“#”号注释掉不需要启动的。
root@NanoPi2:~# cat .config/lxsession/LXDE/autostart @lxpanel --profile LXDE @pcmanfm --desktop --profile LXDE @xscreensaver -no-splash #/root/Desktop/myapp root@NanoPi2:~#
相关文章推荐
- 在linux下设置开机自动启动程序的方法
- 两个小知识:C#如何设置开机启动时自动执行程序|C# WinForm打开超链接
- Debian中设置scim开机自动启动
- 在linux下如何设置开机自动启动程序?
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- Debian 6 设置Oracle 11g R2开机自动启动
- 在linux下设置开机自动启动程序的方法
- c#设置开机自动启动程序本篇文章来源于:
- 在linux下设置开机自动启动程序的方法ZT
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法[转]
- 在linux下设置开机自动启动程序的方法(一)
- linux下设置开机自动启动程序的方法
- 在linux下设置开机自动启动程序的方法ZT
- 在linux下设置开机自动启动程序的方法
- C#.NET Form设置/取消开机自动运行,判断程序是否已经设置成开机自动启动