LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Configuring GDM autologin in chroot with NO X window, how-to? (https://www.linuxquestions.org/questions/debian-26/configuring-gdm-autologin-in-chroot-with-no-x-window-how-to-755609/)

linus72 09-16-2009 07:55 AM

Configuring GDM autologin in chroot with NO X window, how-to?
 
OK
I'm continually trying new stuff in re--re-making my grml-082709 -sid build
I currently got it at 400mb with lots of apps and fluxbox(user-friendly)
and need to autologin user grml

I added gdm, but it asks for passwd,etc
was wondering how I could configure autolgin with no x window?
no gui

thanks

estabroo 09-16-2009 08:16 AM

spawn a shell for that user in inittab instead of a getty/mgetty/... whatever is currently running on your console

linus72 09-16-2009 08:21 AM

How would i do that??

I'm chrooted in as root@grml/#

j1alu 09-16-2009 09:12 AM

try replacing the uncommented lines by the commented ones.

Code:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
#1:2345:respawn:/bin/login -f user </dev/tty1 >/dev/tty1 2>&1
#2:23:respawn:/bin/login -f user </dev/tty2 >/dev/tty2 2>&1


---
i had a bit of trouble with that method. have a look at /etc/gdm/gdm.conf
There should be a line containing:AutomaticLoginEnable. you need to set it too true.
theres another option which might be of interest:
TimedLoginEnable=true
(im not sure if it needs to be set to true or to false to login without delay)


i had trouble with disabling autologin. so this is just a hint, im not sure about it (especially as you say its in chroot). I would try editing gdm.conf first (as editing /etc/inittab had no result on a chrooted and repacked live, for what reason ever ??? )

greetings

linus72 09-16-2009 09:31 AM

I'm gonna try it:)

Can XDM do this, as it wiould be lightweer?

j1alu 09-16-2009 10:02 AM

Quote:

Originally Posted by linus72 (Post 3685205)

Can XDM do this,

i dont know
Quote:

as it wiould be lightweer?
sure. Slim is another light-beer too (you didnt check for antix yet, did you? Might be youll like it)


All times are GMT -5. The time now is 02:36 AM.