oxide54 Posted June 13, 2012 Posted June 13, 2012 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
jinnantonnixx Posted June 13, 2012 Posted June 13, 2012 (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 June 13, 2012 by jinnantonnixx
oxide54 Posted June 18, 2012 Author Posted June 18, 2012 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)
kmount Posted June 18, 2012 Posted June 18, 2012 Might be worth a look at - http://www.m00nie.com/2012/01/fedora-1516-xfce-auto-login/
oxide54 Posted June 18, 2012 Author Posted June 18, 2012 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!
kmount Posted June 18, 2012 Posted June 18, 2012 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?
Geoff Posted June 18, 2012 Posted June 18, 2012 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.
oxide54 Posted June 18, 2012 Author Posted June 18, 2012 lxdm as some lxdm greeter is running. do you know how to change it ?
Geoff Posted June 18, 2012 Posted June 18, 2012 (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 June 18, 2012 by Geoff
oxide54 Posted June 18, 2012 Author Posted June 18, 2012 cheers, it worked! donut i am, was quite tired last night looking at this
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now