Jump to content

Recommended Posts

Posted

hi guys,

 

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

Posted (edited)

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.

Edited by jinnantonnixx
Posted

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.

 

any ideas

 

(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)

Posted

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!

Posted
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.
Posted (edited)

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:

 

[base]
autologin=dave

Edited by Geoff

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...