View previous topic :: View next topic |
Author |
Message |
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Tue Jan 26, 2010 10:17 am Post subject: how to make Gentoo automatically login [SOLVED] |
|
|
hi,
I want automatic login to vt at boot for my user. howto?
Last edited by indietrash on Wed Jan 27, 2010 2:59 pm; edited 1 time in total |
|
Back to top |
|
|
aidanjt Veteran
Joined: 20 Feb 2005 Posts: 1118 Location: Rep. of Ireland
|
Posted: Tue Jan 26, 2010 11:42 am Post subject: |
|
|
Edit your /etc/inittab to change one of your ttys to start a login shell as you instead of agetty/login. _________________
juniper wrote: | you experience political reality dilation when travelling at american political speeds. it's in einstein's formulas. it's not their fault. |
|
|
Back to top |
|
|
P.Kosunen Guru
Joined: 21 Nov 2005 Posts: 309 Location: Finland
|
Posted: Tue Jan 26, 2010 12:25 pm Post subject: |
|
|
Save this and change USERNAME, autologin.c:
Code: |
int main()
{
execlp( "login", "login", "-f", "USERNAME", 0);
}
|
Compile:
Code: | gcc -o /usr/local/sbin/autologin autologin.c |
Change /etc/inittab:
Code: | c6:2345:respawn:/sbin/agetty 38400 tty6 linux |
->
Code: | c6:2345:respawn:/sbin/agetty -n -l /usr/local/sbin/autologin 38400 tty6 linux |
(Not vt though.) |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Wed Jan 27, 2010 2:59 pm Post subject: |
|
|
emerge mingetty. solved. thanks for your tips though. |
|
Back to top |
|
|
|