View previous topic :: View next topic |
Author |
Message |
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Tue Apr 22, 2003 3:44 am Post subject: Automatic login to the console |
|
|
I'm setting up a kiosk of sorts. I'd like the system to automatically log in as a certain user, and execute the .bashrc file, to load up some basic things.
How can I do this? _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
wdconinc Tux's lil' helper
Joined: 17 Jan 2003 Posts: 80 Location: Ann Arbor, Michigan
|
Posted: Tue Apr 22, 2003 9:28 am Post subject: |
|
|
Hi,
I haven't tried this, but I remember having done this with a cd-player program!
If you put the next line in your /etc/inittab
Code: | c1:12345:respawn:/bin/su normaluser -c /bin/bash > /dev/vc/8 < /dev/vc/8 |
greetz
wdconinc
PS: Again, I did not test this!!! The only thing I did once, was putting a console CD-player on vc/8 by doing that |
|
Back to top |
|
|
blubber Retired Dev
Joined: 26 Apr 2002 Posts: 152 Location: Enschede, Netherlands
|
Posted: Tue Apr 22, 2003 9:30 am Post subject: |
|
|
Use mingetty instead of agetty. It has an --autologin function... |
|
Back to top |
|
|
mmealman Guru
Joined: 02 Nov 2002 Posts: 348 Location: Florida
|
Posted: Tue Apr 22, 2003 12:22 pm Post subject: |
|
|
If you're using X on this box either kdm or gdm will let you autologin a user when the machine boots up. |
|
Back to top |
|
|
axxackall l33t
Joined: 06 Nov 2002 Posts: 651 Location: Toronto, Ontario, 3rd Rock From Sun
|
Posted: Thu Apr 24, 2003 2:57 pm Post subject: |
|
|
If you use GDM or KDM autologin, how are you going to handle xscreensaver?
I mean that when the system is rebooted (as scheduled or b/c of power interruption), then nobody is in the front of the kiosk and it would be nice to turn the system into stand-by mode, which is most likely the xsreensaver. However, in other situations, when a user has left the kiosk inactive for some time, xscreensaver must come after some time period. So, somehow xscreensaver should have timeout == 0 right after reboot and (let's say) timeout== 5 after a real user session.
Playing in scripts with gconf (having xscreensaver's timeout == 0 after reboot and changing it to 5 minutes after xscreensaver has started for its first time) is unstable IMHO. May I mistake? How can I change that timeout config value from scripts? |
|
Back to top |
|
|
pubecon Guru
Joined: 03 Mar 2003 Posts: 342 Location: Glasgow, Scotland
|
Posted: Sat Nov 22, 2003 9:48 pm Post subject: |
|
|
I am looking for a similar thing (I don't want to have to install the bases for kdm/gdm):
logging in automatically then doing startx |
|
Back to top |
|
|
|