View previous topic :: View next topic |
Author |
Message |
Andrju n00b
Joined: 09 Feb 2006 Posts: 24 Location: Warsaw, Poland
|
Posted: Mon Jun 26, 2006 12:16 pm Post subject: Automatic login |
|
|
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 _________________ "You can stop this individual, but you can't stop us all. After all, we're all alike..."
-The Mentor |
|
Back to top |
|
|
RlC Guru
Joined: 30 Jul 2005 Posts: 358 Location: austria
|
Posted: Mon Jun 26, 2006 3:47 pm Post subject: |
|
|
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 |
|
|
Andrju n00b
Joined: 09 Feb 2006 Posts: 24 Location: Warsaw, Poland
|
Posted: Mon Jun 26, 2006 6:01 pm Post subject: |
|
|
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 |
|
|
|