Click to See Complete Forum and Search --> : Automatic login without gdm/kdm


atheist_deity
08-13-2003, 01:32 AM
I want to set up my Debian box to automatically start X and log in as a user without gdm/kdm (use too much RAM).

I tried adding /etc/rcS.d/S90guiautologin with:
#!/bin/sh
su - username -c startx

That didn't work though.
Can anyone tell me how to set this up (a light *dm would be fine but xdm, wdm and login.app don't seem to have auto-login).

Michael

mdwatts
08-13-2003, 04:31 PM
Could you create a .xinitrc in the users home directory and add

su - <username> -c startx

as the only command?

Of course that way you would need to first login as the user before startx would work.