LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   auto login to bash? (https://www.linuxquestions.org/questions/linux-newbie-8/auto-login-to-bash-721344/)

jackspade 04-24-2009 02:31 AM

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.

Libu 04-24-2009 02:37 AM

Don't understand what you are trying to do ? you trying to run a script upon login to FC10 ?

jackspade 04-24-2009 12:53 PM

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.

mrclisdue 04-24-2009 05:02 PM

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,

jackspade 04-24-2009 06:37 PM

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'

jackspade 04-24-2009 06:48 PM

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!


All times are GMT -5. The time now is 02:59 PM.