Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic login
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
Andrju
n00b
n00b


Joined: 09 Feb 2006
Posts: 24
Location: Warsaw, Poland

PostPosted: Mon Jun 26, 2006 12:16 pm    Post subject: Automatic login Reply with quote

Is there a way to make the system login automatically to an account at startup and run some programs?
Moreover, is it posibble to make it only after selecting some option in GRUB?

note: I don't care about security in this case 8)
_________________
"You can stop this individual, but you can't stop us all. After all, we're all alike..."
-The Mentor
Back to top
View user's profile Send private message
RlC
Guru
Guru


Joined: 30 Jul 2005
Posts: 358
Location: austria

PostPosted: Mon Jun 26, 2006 3:47 pm    Post subject: Reply with quote

for console:

look at you /etc/inittab

Code:
# TERMINALS
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty 38400 tty6 linux
#c7:2435:respawn:/sbin/agetty 38400 tty7 linux
c8:2435:respawn:/sbin/agetty 38400 tty8 linux
c9:2435:respawn:/sbin/agetty 38400 tty9 linux
c10:2435:respawn:/sbin/mingetty --autologin mixer tty10 linux
c11:2435:respawn:/sbin/mingetty --autologin mpc tty11 linux


you need to emerge net-dialup/mingetty for this.
then you edit the ~/.bashrc of the user for autostarting apps

for the grub thing: i think you need to make different runlevels for this. however, i don´t know if or how this works.

for x:
gdm (gnome display manager) offers the ability to do this easily. i guess with a little bit hacking it is also possible with xdm
autostarting apps: ~/.xinitrc

hope this helps...
Back to top
View user's profile Send private message
Andrju
n00b
n00b


Joined: 09 Feb 2006
Posts: 24
Location: Warsaw, Poland

PostPosted: Mon Jun 26, 2006 6:01 pm    Post subject: Reply with quote

Thanks a lot!
Everything runs ok.
Now I have to figure out this GRUB thingy :?:
_________________
"You can stop this individual, but you can't stop us all. After all, we're all alike..."
-The Mentor
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