LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-24-2009, 02:31 AM   #1
jackspade
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
Libu
Member
 
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
jackspade
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
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,076

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

http://www.linuxquestions.org/questi...ut-gui-374338/

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

cheers,
 
Old 04-24-2009, 06:37 PM   #5
jackspade
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
jackspade
LQ Newbie
 
Registered: Apr 2009
Posts: 4

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

"exec /sbin/mingetty tty1"

to

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

in

/etc/event.d/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!
 
  


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
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


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