Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-21-2006, 04:55 AM   #1
LQ Newbie
Registered: May 2006
Posts: 5

Rep: Reputation: 0
How can I Start Linux without Log in?


I am developing embedded linux system. So I need to start my application on staring a Linux system without logging in. If you know how to do that, please reply that.

thank you.
Old 05-21-2006, 05:07 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
depends what you really want to log in to, but being an embedded system i'd guess it's a more than safe assumption you mean to a console. the further you go down an embedded route the less and less the sysvinit scripts make sense, and it's only arbitrary processes that mean you need to log in at all. IF you wish to remain with the standard sysvinit world, then you would want to personalise the /etc/inittab file. choose a standard runlevel, i'd possibly suggest 2 or 4 (generally not used by convention) and change it so that one of the getty's that are spawned uses an --autologin option (this exists for mingetty, not sure about other getty programs) and then go from there. that's only a login though... do you not want to just run a program without all that? you can easily configure that logged in users .bashrc to kick off a program when it's logging into a certain tty (i.e. the one defined as special in inittab) but this is a fairly long winded way to run an embedded system. when this is configured for a single runlevel, if you then boot to runlevel 3 you can still arrive at a fully standard system without the customizations, a safe mode, or configuration mode or whatever you might want to think of it as.
Old 05-21-2006, 02:23 PM   #3
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
First of all I assume that you are not asking if you could run it as a service (then there would be no need to log in) because you say it is an application.

You might be able to run a modified (a custom) init or getty on your system to get your work done. This is just a suggestion. I haven't yet tried something like that. This requires careful implementation since this can affect your whole system very easily.

How you does the it may differ depending on the init system you use. May be you are using SysV init. May be you are using BusyBox init ot Minit or something else.

I'd also suggest you to read Karim Yaghmour's Building Embedded Linux Systems. This is an excellent book. No doubt about it. You may find it a lot useful, especially the init sections.


embedded, init

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
Samba won't start. Here is the log LarryFrigginWachs Linux - Networking 1 02-16-2006 02:23 PM
Can't log in to Mandake, KDE won't start Grehan Linux - Newbie 5 10-09-2004 02:16 PM
Programs Automatically Start When I log In To KDE deft Linux - Software 4 04-06-2004 07:54 PM
how can i edit the start log on screen? dejan_j Linux - Newbie 8 05-11-2003 10:08 AM
X Start Error log help brianh128 Linux - Newbie 8 10-17-2001 01:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

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