LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2006, 10:48 PM   #1
kzazula
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Rep: Reputation: 0
Start up scripting and auto login for stand alone linux box


I am doing a project where I will be running a very stripped down linux in order to get a quick boot and run a task. Basically the box will power on, boot to command line, record video from a webcam and shutdown when the video is recorded. My question is can I do this using start up script and will I need to configure some sort of automatic login? I'm looking to use a real quick distro like archlinux or some other streamlined distro as a base.

Any help/advice would be much appreciated.
 
Old 01-12-2006, 11:41 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
i believe you would do this in the /etc/rc's section.

i think each distro is a little different, so the process would depend on that.

since i'v never done work in this area i cannot give anymore help.

good luck.
 
Old 01-12-2006, 11:44 PM   #3
kzazula
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks.

Maybe I will add to my question. Am I able to script the loading of a program or does it have to be commands in a startup script?
 
Old 01-12-2006, 11:59 PM   #4
kzazula
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Also I forgot to ask another related question. Does the system even need a user logged on to run a program like the webcam capture in a script?
 
Old 01-13-2006, 12:51 AM   #5
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Quote:
Originally Posted by kzazula
Also I forgot to ask another related question. Does the system even need a user logged on to run a program like the webcam capture in a script?
each program is set to be run at a different 'level'... without user interface.

if you have webmin installed (all of it is best) then it will be easier for you to set these 'settings'.

cron is one program which does something like you want..but i am not 'too' familiar with it, so i cannot tell you it's limits.

let us know..
 
Old 01-13-2006, 12:58 AM   #6
kzazula
LQ Newbie
 
Registered: Oct 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Will do. Thanks
 
Old 01-13-2006, 06:10 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
You can make programs run at each boot, at each logon (of 1 or more or even all users), at pre-defined times (via "cron"), at 1 specific time in the future ("at" command) etc.

Programs that are started at each boot mostly are called "services" or "daemons". Examples are ftp server program (ie vsftpd), web server program (ie httpd), ...
These programs don't support any user interaction typically.

There are also different "runlevels" defined. This allows you for instance to run programs only when booting into a "graphical" mode, or when booting to a text-only mode, etc. For more info on this, check out:
man service
man chkconfig
the scripts in /etc/init.d, /etc/rc.d, etc

So it depends really on what you want and on how the program works.
 
Old 01-13-2006, 06:22 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by kzazula
Also I forgot to ask another related question. Does the system even need a user logged on to run a program like the webcam capture in a script?
Not physically but all processes are run as some type of account. This is why Linux has accounts like nobody that don't have physical login access but processes like apache run as the user nobody, etc.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start X session from a Linux box to another Linux box small_boy22 Linux - Networking 7 09-30-2005 11:19 AM
stand-alone firewall box? hoover93 Linux - Security 1 10-21-2004 03:19 AM
auto start when login moonloader Slackware 7 08-14-2004 02:53 AM
Linux newbie - help on auto start for Lnx Stp45 Linux - Newbie 8 04-02-2004 06:09 PM
how do i make a software auto start after login? 286 Linux - Newbie 2 01-21-2004 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration