Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to make Gentoo automatically login [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Tue Jan 26, 2010 10:17 am    Post subject: how to make Gentoo automatically login [SOLVED] Reply with quote

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
View user's profile Send private message
aidanjt
Veteran
Veteran


Joined: 20 Feb 2005
Posts: 1118
Location: Rep. of Ireland

PostPosted: Tue Jan 26, 2010 11:42 am    Post subject: Reply with quote

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
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Tue Jan 26, 2010 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
indietrash
Guru
Guru


Joined: 17 Sep 2008
Posts: 353
Location: Norway

PostPosted: Wed Jan 27, 2010 2:59 pm    Post subject: Reply with quote

emerge mingetty. solved. thanks for your tips though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum