+ Post New Thread
Results 1 to 10 of 10
*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 ...
  1. #1
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23

    run at startup

    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

  2. #2

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,970
    Thank Post
    113
    Thanked 490 Times in 336 Posts
    Blog Entries
    2
    Rep Power
    283
    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.

  3. #3
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    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)

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347

  5. #5
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    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!

  6. #6


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,690
    Thank Post
    352
    Thanked 796 Times in 715 Posts
    Rep Power
    347
    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?

  7. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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.

  8. #8
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    lxdm as some lxdm greeter is running. do you know how to change it ?

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    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:

    Code:
    [base]
    autologin=dave
    Last edited by Geoff; 18th June 2012 at 05:13 PM.

  10. #10
    oxide54's Avatar
    Join Date
    Mar 2009
    Posts
    798
    Thank Post
    51
    Thanked 55 Times in 54 Posts
    Rep Power
    23
    cheers, it worked!

    donut i am, was quite tired last night looking at this

SHARE:
+ Post New Thread

Similar Threads

  1. why is windows 7 not running scripts at startup?
    By OPA-ABU in forum Windows 7
    Replies: 8
    Last Post: 22nd October 2010, 02:55 PM
  2. Running a program at startup in CC3?
    By reggiep in forum Network and Classroom Management
    Replies: 2
    Last Post: 17th July 2008, 01:02 PM
  3. Printer script not running at start up
    By richard in forum Scripts
    Replies: 11
    Last Post: 29th May 2007, 07:39 PM
  4. Stop applications running at certain times
    By timbo343 in forum Windows
    Replies: 5
    Last Post: 27th April 2007, 01:08 PM
  5. Same image, differnet themes at startup
    By KarlGoddard in forum Windows
    Replies: 1
    Last Post: 3rd May 2006, 08:40 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •