*nix Thread, run at startup in Technical; hi guys,
I need to run a program at startup on a fedora system, its embeded really so there is ...
13th June 2012, 09:41 PM #1
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
13th June 2012, 10:01 PM #2
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.
Last edited by jinnantonnixx; 13th June 2012 at 10:28 PM.
18th June 2012, 05:01 PM #3
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)
18th June 2012, 05:04 PM #4
18th June 2012, 05:06 PM #5
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!
18th June 2012, 05:07 PM #6
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?
18th June 2012, 05:07 PM #7
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.
18th June 2012, 05:09 PM #8
lxdm as some lxdm greeter is running. do you know how to change it ?
18th June 2012, 05:11 PM #9
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:
Last edited by Geoff; 18th June 2012 at 05:13 PM.
18th June 2012, 05:17 PM #10
cheers, it worked!
donut i am, was quite tired last night looking at this
By OPA-ABU in forum Windows 7
Last Post: 22nd October 2010, 02:55 PM
By reggiep in forum Network and Classroom Management
Last Post: 17th July 2008, 01:02 PM
By richard in forum Scripts
Last Post: 29th May 2007, 07:39 PM
By timbo343 in forum Windows
Last Post: 27th April 2007, 01:08 PM
By KarlGoddard in forum Windows
Last Post: 3rd May 2006, 08:40 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)