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 04-24-2009, 02:31 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
auto login to bash?

i tried a script that edited etc/event.d/tty1 but it locked up on me. im running f10 under colinux and would like it to login and run a script to connect to xming auto, and have for the most part accomplished the latter half.
Old 04-24-2009, 02:37 AM   #2
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Don't understand what you are trying to do ? you trying to run a script upon login to FC10 ?
Old 04-24-2009, 12:53 PM   #3
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
im trying to skip the login altogether. i dont want to have to put in my pass. i know when your running gnome it can be done (easier on older ver since they removed the option in newer) but im not actually running gnome, only bash.

what i had originally done is replace the line in "/etc/event.d/tty1", "/sbin/mingetty tty1" with "/sbin/autologin tty1 -f login root" . autologin being a script i had gotten from another site. the problem was when it ran whatever i had setup to run after it wouldnt respond.
Old 04-24-2009, 05:02 PM   #4
Senior Member
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,084

Rep: Reputation: 195Reputation: 195
Follow the steps in this thread:

See post #5 (by win32sux) in that thread, and edit your .bash_profile accordingly to get your script running.

Old 04-24-2009, 06:37 PM   #5
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
bash-3.2# gcc autologin.c -o /sbin/autologin
autologin.c: In function 'main':
autologin.c:2: warning: incompatible implicit declaration of built-in function 'execlp'
Old 04-24-2009, 06:48 PM   #6
LQ Newbie
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
lolz... simple solution found in 'man mingetty'. changed

"exec /sbin/mingetty tty1"


"exec /sbin/mingetty --autologin root tty1"



BTW. in F10, /etc/inittab contains

# Terminal gettys (tty[1-6]) are handled by /etc/event.d/tty[1-6] and
# /etc/event.d/serial

so... yeah... thanks though!


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
I wondering how to put the password in bash to auto login to others cpu Eatm3Pro Linux - General 2 08-18-2008 04:55 AM
Can I bypass auto login and force login screen temporarily? TuxSurfer Linux - General 2 06-26-2008 03:46 PM
Auto-login (KDE) - will not auto-login without monitor attached Mithrilhall Linux - General 2 03-04-2008 10:16 AM
How to configure auto login & after login auto startup some program. hocheetiong Linux - Newbie 1 02-18-2008 12:49 AM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 07:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 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