Disabling graphical login in Debian wheezy

43,314

Solution 1

Look in /etc/rc2.d/. There are probably links to /etc/init.d/xdm and /etc/init.d/kdm which you haven't removed yet.

You can also edit the file /etc/X11/default-display-manager, which includes the full path to the default display manager Debian is using. If you replace the content of that file with /bin/true, you are probably disabling the start of any login-manager as well.

The TTYs are spawned anyways. If no login-manager is launched, TTY1 will remain the active TTY and you can just log in using the command line.

Solution 2

For Debian 8 with systemctl:

systemctl disable gdm
Share:
43,314

Related videos on Youtube

user2485710
Author by

user2485710

Updated on September 18, 2022

Comments

  • user2485710
    user2485710 over 1 year

    I have installed Debian wheezy on my machine with a netinst image, now I would like to deactivate the desktop and boot straight to the command line, not only that but I would like to not waste any resource on the X11/gnome/gdm at all if not needed.

    I tried ( as root )

    update-rc.d -f gdm remove
    update-rc.d -f gdm3 remove
    update-rc.d -f wdm remove
    

    but Debian keeps booting into the login manager, I really don't need that, how I can deactivate this kind of boot and start X only when needed ?

  • Bananguin
    Bananguin almost 11 years
    A quick ls /etc/rc2.d/ would provide proof. I'm sure you have no idea what packages you never wanted have been installed. You're using Debian, not Gentoo. :-)
  • user2485710
    user2485710 almost 11 years
    I commented out with a # the line inside /etc/X11/default-display-manager and added a new one with /bin/true and now it boots into a tty, or, in better terms, it doesn't boot any display manager, just like I wanted. Debian is my choice at the moment because of the really low requirements and the pre-compiled packages in the repository, I'm running it under an 800Mhz single core CPU with 128Mb of ram, to run Gentoo under this system you will need ages; but Debian is perfectly fine for now.