LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2012, 03:30 PM   #1
macanucaire
LQ Newbie
 
Registered: May 2012
Posts: 7

Rep: Reputation: Disabled
Logging in and running an application on start up


I have a machine running Linux Version 2.6.12.6-arm1 which I use as a music server. We get frequent power cuts and I'd like to have the machine log in when I restart it and run the music server application.
Can it be done?
Tom
 
Old 07-01-2012, 12:24 AM   #2
mahu_mahu
Member
 
Registered: Dec 2007
Location: Japan
Distribution: Debian
Posts: 42

Rep: Reputation: 3
Try googling "linux auto login".
If your linux box uses PAM , then you should add "pam" to the searching word list.
For example , I found the page below
http://littlesvr.ca/linux-stuff/arti...ginconsole.php
I don't know if this link will work for you or not, though.

Last edited by mahu_mahu; 07-01-2012 at 12:28 AM. Reason: Add some reffering page
 
Old 07-01-2012, 01:48 AM   #3
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
there is no sense if your application not required any user input to start.

you can put the whole command into "/etc/rc.local" file. so whenever you boot your machine it will automatically start your application without login into system.



Code:
#cat /etc/rc.local

/path/to/my/application
 
1 members found this post helpful.
Old 07-01-2012, 12:30 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
If you check your bios there may be an option to resume state, so after a cut it will reboot. As others have described, set the music server to start on boot. User logins are irrelevant for servers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start python application (MoinMoin) at startup / by running a script xbeck Linux - Newbie 6 07-10-2011 02:28 AM
[SOLVED] Auto running an application on start up u03pje Linux - Newbie 4 11-02-2009 12:08 PM
leave the application running after logging from your account baxy77 Linux - Server 1 01-19-2009 04:58 AM
Using syslog-ng to for application logging nathan2225 Programming 1 05-21-2007 11:55 AM
Running automaticly an application when start up KDE Paulo Ges Linux - Newbie 1 03-17-2003 11:15 AM


All times are GMT -5. The time now is 11:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration