Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic login to the console
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
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Tue Apr 22, 2003 3:44 am    Post subject: Automatic login to the console Reply with quote

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
View user's profile Send private message
wdconinc
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2003
Posts: 80
Location: Ann Arbor, Michigan

PostPosted: Tue Apr 22, 2003 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message
blubber
Retired Dev
Retired Dev


Joined: 26 Apr 2002
Posts: 152
Location: Enschede, Netherlands

PostPosted: Tue Apr 22, 2003 9:30 am    Post subject: Reply with quote

Use mingetty instead of agetty. It has an --autologin function...
Back to top
View user's profile Send private message
mmealman
Guru
Guru


Joined: 02 Nov 2002
Posts: 348
Location: Florida

PostPosted: Tue Apr 22, 2003 12:22 pm    Post subject: Reply with quote

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


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Thu Apr 24, 2003 2:57 pm    Post subject: Reply with quote

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


Joined: 03 Mar 2003
Posts: 342
Location: Glasgow, Scotland

PostPosted: Sat Nov 22, 2003 9:48 pm    Post subject: Reply with quote

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
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