LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-18-2011, 11:21 AM   #1
bashFUL
LQ Newbie
 
Registered: Oct 2011
Posts: 23

Rep: Reputation: Disabled
how can I disable the GUI so I get cli when I boot?


easy question, I know... and I have done it long ago... but its been a while and I don't fully understand what all is going on with the rc*.d scripts and things..

I dont want my server to load the GUI unless I run startx... this way it will be a faster gateway.

thanks
 
Old 10-18-2011, 11:23 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860
Disable GDM (or whichever display manager you are using) from starting in runlevel 2.
 
Old 10-18-2011, 11:28 AM   #3
bashFUL
LQ Newbie
 
Registered: Oct 2011
Posts: 23

Original Poster
Rep: Reputation: Disabled
would I edit the /etc/inittab file? And I dont know what run level to tell it to run at... I've always been confused at that point. Run level 1 is single user mode, but I don't want that because no services will start right?

Quote:
Originally Posted by TobiSGD View Post
Disable GDM (or whichever display manager you are using) from starting in runlevel 2.
 
Old 10-18-2011, 12:12 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,081

Rep: Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485Reputation: 3485
The proof ( And very simple ) solution :

Edit line 1 in the file /etc/X11/default-display-manager
from : /usr/bin/gdm
to : false


Can also be done with the command :
echo "false" | sudo tee /etc/X11/default-display-manager
http://www.linuxquestions.org/questi...635/page2.html
> Post # 27.
 
Old 10-18-2011, 12:19 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860Reputation: 4860
Just to clarify: No, you wouldn't do that with inittab. Yes, runlevel 1 is single user mode. Debian starts by default in runlevel 2 and the runlevels 2-5 are actually the same in Debian (and most derived distros).
 
Old 10-18-2011, 12:45 PM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,130
Blog Entries: 5

Rep: Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186Reputation: 1186
Easier way - if you don't want the display manager at all

Code:
aptitude purge gdm
 
Old 10-18-2011, 02:08 PM   #7
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
To disable it from runlevel2 use the comfortable and intuitive package "sysv-rc-conf", which you first need to install.
I for one would also remove it...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Nmap Cli vs Gui Bull3t Linux - Software 4 09-18-2010 04:41 PM
How to disable a faulty key on keyboard, for CLI and GUI silencestone Linux - Hardware 3 08-15-2009 07:02 AM
Best way to disable compiz from Ubuntu cli suguru Linux - Software 1 06-06-2007 02:25 PM
boot CLI vs GUI weazy Linux - Software 2 08-04-2006 09:15 PM
Disable GUI boot on Init 5 rickylim Linux - Enterprise 4 05-30-2006 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration