I am currently using lightdm as my default display manager but I feel like there is no need of display manager in my case because I am always going to login to xfce session.

So, is there any way I can disable lightdm and when I boot next time I am just left with terminal where i will enter my username and password.

I looked into nodm but I was not able to configure it properly.

  • The problem with using no display manager is that you cannot lock the session. If you have no dm installed, you will have to log in at a terminal and then run startx. I'd use a dm even though I always use the same session because of the lock. – Martin Ueding Jun 16 '12 at 13:09
  • @queueoverflow: thanks for the advice. Can you suggest me a very lightweight dm. – RanRag Jun 16 '12 at 18:34
  • xdm is the lightest I've seen yet. – Martin Ueding Jun 16 '12 at 19:21
apt-get install nodm

Then edit /etc/defaults/nodm and change this two lines:


You can edit the configuration of your login shell to launch X automatically after logging into tty. Put something like this into your ~/.bash_profile or ~/.zlogin (or whatever the config file is for your shell) to lauch X after logging into the first VT:

[ "$TTY" = "/dev/tty1" ] && startx

Or you can omit the first part and write just "startx".

This way of launching X, however, poses a security risk: when you're away from the keyboard (and of course, you've locked the X session) someone might switch to the tty1, interrupt X (or just move it into the background) and access your computer with your user's account.

To avoid this use:

startx &

In bash, or setsid startx in other shells.

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.