I am disappointed with existing Display Managers, and so I was wondering wheteher I could live without one. I have very basic needs on my laptop. I have one user martin who wants to be logged into LXDE automatically after boot.

I have made following change in /etc/inittab

#1:2345:respawn:/sbin/getty 38400 tty1
1:2345:once:/bin/login -f martin tty1 </dev/tty1 >/dev/tty1 2>&1

and added following line to my /home/martin/.profile

xinit 2>/dev/null

Now, when I boot my laptop, LXDE starts automatically. Thats great. When I log out of LXDE, I am back in tty1, logged in as martin. The problem is, when LXDE is running and I have screen-lock active to protect my LXDE session, somebody could press CTRL+c in tty1, thereby killing LXDE and he would be logged in as martin.

Is there a way to make LXDE start without leaving martin logged in on tty1? i.e., after LXDE has started, I don't need tty1 anymore and I would like to log out of it. but I cannot because LXDE is started from that console. Is there any way to make LXDE to "detach" itself from tty1, so that is shows the standard login prompt as normally?

In case it is relevant, I am using Debian Wheezy


Use small footprint Display Manager.


With this display manager, some manual configuration is needed. Please refer to their official document and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is:

exec startlxde

The above is coming from : http://wiki.lxde.org/en/Debian

It supports autologin.

  • The problem with gdm or kdm is, that they are too overbloated. Look at their dependencies. That is insane. gdm wants to install 150 MB of additional packages, that is more than the whole of LXDE. kdm is even worse (150 new packages, 335 MB). Hello?. The only thing I want from a Display Manager is to log me into LXDE. – Martin Vegter Apr 19 '14 at 12:16
  • slim then? I don't know it but the name speaks for itself.. Check the wiki link, there is more.. – UnX Apr 19 '14 at 12:19
  • I have been using wdm up until now. The problem is, wdm does not support autologin. Otherwise wdm would be good. – Martin Vegter Apr 19 '14 at 12:19
  • it seems you can with slim. – UnX Apr 19 '14 at 12:22
  • does slim support autologin ? – Martin Vegter Apr 19 '14 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.