Auto-Start Program at Login in Angstrom on BeagleBoard

我的未来我决定 提交于 2019-12-23 03:41:32

问题


How do I start an application automatically after login? I have tried the following:

  1. Editing /etc/inittab but I don't have an /etc/inittab file, it looks like my system uses systemd.
  2. Starting my application by adding it to the script /etc/rc.local.
  3. Adding a script in /etc/init.d and a symlink to the script in /etc/rc5.d/S51script_name.
  4. Calling my script from ~/.bashrc and ~/.bash_profile.
  5. Adding a service to systemd but I couldn't get it to work and it seems more complicated than it should be for my purposes.

I am running Angstrom v2012.01-core - Kernel 3.0.17+ on BeagleBoard xM.


回答1:


Found the answer: The script /etc/profile is ran when the user logs in. You can add a line to start your application at the end it.



来源:https://stackoverflow.com/questions/14149477/auto-start-program-at-login-in-angstrom-on-beagleboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!