LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 02: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 06-30-2012, 11:24 PM   #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; 06-30-2012 at 11:28 PM. Reason: Add some reffering page
 
Old 07-01-2012, 12: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, 11:30 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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 01:28 AM
[SOLVED] Auto running an application on start up u03pje Linux - Newbie 4 11-02-2009 11:08 AM
leave the application running after logging from your account baxy77 Linux - Server 1 01-19-2009 03:58 AM
Using syslog-ng to for application logging nathan2225 Programming 1 05-21-2007 10:55 AM
Running automaticly an application when start up KDE Paulo Góes Linux - Newbie 1 03-17-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

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
Open Source Consulting | Domain Registration