LinuxQuestions.org
Visit Jeremy's Blog.
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 08-08-2005, 04:15 AM   #1
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Rep: Reputation: 15
autologin after reboot


Hi,
How can i make my linux automaticaly log in to console as some user after reboot (no login and password prompt)?

Yes i know this is stupid idea but i need it on an embedded os.
It is based on Slackware 10.1.
 
Old 08-08-2005, 04:30 AM   #2
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
I also did Embedded OS now,so i can give you an example for referrence:

First,modify /etc/inittab:
Code:
......
T0:12345:respawn:/sbin/autologin ttyS0 login -f root
......
ps: that's the example for autologin by UART(COM1), so here is ttyS0

Then,/sbin/autologin:
Code:
#!/bin/sh
exec 0</dev/$1>/dev/$1 2>&1
shift
exec $*
ps:make sure this script can be executable ,if not ,using chmod +x /sbin/autologin by root.

hope to help
 
Old 08-08-2005, 05:26 AM   #3
nazir
Member
 
Registered: Apr 2002
Location: Poland, Gliwice/Pszczyna
Distribution: Mandrake, Slackware
Posts: 41

Original Poster
Rep: Reputation: 15
something is wrong, i did that, but after reboot there is no autologin on process list, when i type it on console
i get passwortd prompt on the local console
Code:
/sbin/autologin ttyS0 login -f root
password:
btw what system are you using on your machine and what is this system's purpose? (If i can ask of course )
 
Old 08-08-2005, 06:01 AM   #4
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
i used it for my arm-linux to autologin.
that's the way you can refer to,not the actual answer for your question ,you should change it for your environment i thought
 
  


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
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 06:04 AM
autologin zaicheke Linux - General 1 07-16-2004 08:15 PM
autologin on RH 7.2 mehesque Linux - General 0 06-08-2004 09:16 AM
autologin problem taoweijia Linux - Newbie 1 02-17-2004 03:17 AM
KDE 3.2 autologin js72 Fedora 4 02-16-2004 05:40 PM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration