run at startup
I need to run a program at startup on a fedora system, its embeded really so there is no keyboard and mouse and it doesn't really need any security as there is no keyboard / mouse or even network, it basically services serial port requests only.
so how would be the best bet for running my program at startup ?
autologin and then run the program? how would i do that,
or run it as a daemon , don't really like this obviously i would if it was a networked server but its not
You could call your program as part of the rc3.d startup files. I prefer this.
You can call it from rc.local, too.
The Fedora Basics FAQ
I'm on Ubuntu at the moment at home -the startup directories are different- but I use Centos at work (same as Fedora) so I can check tomorrow.
hmm, looks i need to run my program from X as it uses VLC,
trying to get x to login me in automatically, nope.
its got XFCE4, I'm, sure i can get program to run automaticllay i just need x to login automatically.
(although I may try getting the program to work under command line, it may require recompiling VLC which took all weekend last time due to the amazing arm processor in the raspberry pi)
yeh i was looking at that a minute ago. I dont even have that file which was a bit confusing. this is fedora 14 apparently but i have seen stuff else where pointing at that file for 14. pretty restricted on what i can use being a raspberry pi.
Linux for scratch does not look appealing given the compile times on this processor!
Hm, I wonder if it's using xdm instead of gdm.
Can you see what X is running at the logon screen from a ps aux?
What display manager are you using? Is it XDM? As that doesn't support autologin out the box. You can change the display manager to something else. Or you can the system so it runs a window manager at bootup instead.
lxdm as some lxdm greeter is running. do you know how to change it ?
Ah, LXDM? Go find the lxdm.conf file (I imagine its in /etc/lxdm but your distro might of hidden it somewhere else) and check the [base] section. You need something like:
cheers, it worked!
donut i am, was quite tired last night looking at this