Debian Admin - Your way to Debian World

August 29, 2007

Howto Boot debian in text mode instead of graphical mode (GUI)

by @ 7:41 pm. Filed under General

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

This is very useful tip for all debian users

You can prevent automatic running of the GUI when you boot your debian machine by disabling your login manager be it KDM, GDM or XDM from running at boot time. To disable the login manager from automatically running at boot up, run the following command as root

#update-rc.d -f gdm remove

Replace gdm with kdm or xdm if they are what you use.

To start X manually, you would then have to login at the command prompt and enter the command startx.

To reset your login manager so that it runs at boot up, do

#update-rc.d -f gdm defaults

Tags: , ,

You may also be interested in...

7 Responses to “Howto Boot debian in text mode instead of graphical mode (GUI)”

  1. Mathias Bernhardt Says:

    Hi!

    I usualy boot into text-Mode. I also have this line in my .bash_profile:

    if [ “$(echo $(who am i)|awk ‘{print $2}’)” = “tty1″ ]; then startx;logout;fi

    So when i login at the first Terminal then the windowmanager is started via .xinitrc. I like this much more than all the gdm/kdm/xdm stuff because it uses only MY configs and not those of any admin and the x server is started by the user who’s actually using it.

  2. Sam Morris Says:

    I believe this will result in the login manager being enabled again the next time it is upgraded. update-rc.d is *not* for administrators to use — it is only for package maintainer scripts to use to install their startup links.

    The correct way to disable a service (such as GDM) from being started in a given runlevel (e.g., 2 which is Debian’s default runlevel) is like so:

    mv /etc/rc2.d/S30gdm /etc/rc2.d/K70gdm

    Further information can be found in /etc/rc2.d/README.

  3. Guti Says:

    Very nice article.

  4. mzilikazi Says:

    There is a nifty tool called rcconf that can manage run level symlinks for you. Using this tool it is not required to enter each rc*.d dir and manually rename a symlink. It speeds things up a bit.

  5. Ken Says:

    Autologin:
    you will want to apt-get remove gdm, kdm, xdm, wdm
    and apt-get install rungetty afterwards open /etc/inittab and modify this line 1:2345:respawn:/sbin/getty 38400 tty1 to
    1:2345:respawn:/sbin/rungetty tty1 –autologin $user

    Now edit and to your /home/$user/.bash_profile

    if [ -z “$DISPLAY” ] && [ $(tty) == /dev/tty1 ]; then
    while [ 1 == 1 ]
    do
    startx
    sleep 10
    done
    fi

  6. Delian Krustev Says:

    Reading a headline like this could made someone believe debian is more user friendly than ubuntu .. I think it is more appropriate to set the title to:

    How stupid should I be to make a machine start directly in X .. especially in debian ?

    “The correct way to disable a service (such as GDM) from being started in a given runlevel (e.g., 2 which is Debian’s default runlevel) is like so:

    mv /etc/rc2.d/S30gdm /etc/rc2.d/K70gdm

    Further information can be found in /etc/rc2.d/README.”

    Is it ? May be you should consult the manual page of update-rc.d ..

    $ ls /etc | grep “^rc”
    rc.local
    $

    How about /etc/rc2.d not existing at all ?

    sysv-rc sucks the big time ..
    If you want the states to be preserved you should replace sysv-rc with file-rc . Something everyone should do.

    Just my 2 BOFH cents ..

  7. acohen36 Says:

    mv /etc/rc2.d/S30gdm /etc/rc2.d/K70gdm

    Yep, Sam Morris’s su easy edit works like a charm every time.
    Also goes great together with the other ?dm’s kdm and xdm :)

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.