LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-20-2005, 08:44 PM   #1
freddie_leaf
Member
 
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33

Rep: Reputation: 15
Graphical Login- How Can I remove?


I reinstalled Debian 3.1 from scratch, this time choosing the 2.6 Kernal and "Desktop Configuration". For reasons unknown to me, when the install completed I found myself at a Graphical Login Screen. I did not choose this as an option.

Last time I installed Debian 3.1 I choose "Multiple User Configuration", which booted to a shell prompt.

What exactly was installed this time around, and how can I uninstall this Graphical Login Screen so I boot to the shell prompt?

I've seen many posts on this topic but can't seem to get the complete picture on this.

Last edited by freddie_leaf; 09-20-2005 at 09:15 PM.
 
Old 09-20-2005, 10:30 PM   #2
Mad Scientist
Member
 
Registered: May 2003
Posts: 167

Rep: Reputation: 30
I know next to nothing about Debian, so take what I say with a huge grain of salt. But, in Fedora Core, there is a file /etc/inittab (which I would imagine would be in the same location in Debian) that controls the computer's runlevel. You can edit the line that looks like

Code:
id:X:initdefault:
but make the 'X' a '3' instead. You will boot into runlevel 3, which is a console, multiuser mode.
 
Old 09-21-2005, 01:53 AM   #3
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
First check the login manager you use: ls -l /etc/init.d/[gkx]dm
Then, if it is say kde, remove the startup links: update-rc.d -f kdm remove
You can remove xdm as well from starting: update-rc.d -f xdm remove
And make new ones that only start kdm in runlevel 5: update-rc.d kdm start 99 5 . stop 01 0 1 2 3 4 6 .
This because iirc debian boots to a graphical login in runlevels 2-5
And change inittab like Mad Scientist posted.
 
Old 09-21-2005, 02:59 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Debian is defferent with runlevels than Fedora. So making "initdefault to 3 in /etc/inittab" alone would not work.

So lets make it 3 and configure rc3 to command-line. Most probably you should have "gdm" running. So using either "update-rc.d", "sysv-rc-conf" or "sysvconfig" disable "gdm" in rc3. make initdefault to 3 in /etc/inittab.

makuyl's tip would be better this way
Code:
update-rc.d gdm stop 99 3
So if you want the GUI login back you can change initdefault to any of 2,4,5 in "/etc/inittab". Whenever you want to boot to non-GUI login go back to 3.

*Correction:
makuyl's tip would be better this way
Code:
update-rc.d gdm stop 01 3

Last edited by SkyEye; 09-21-2005 at 04:40 AM.
 
Old 09-21-2005, 04:07 AM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Quote:
Originally posted by SkyEye
Code:
update-rc.d gdm stop 99 3
I think you meant "update-rc.d gdm stop 01 3"
 
Old 09-21-2005, 04:38 AM   #6
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
Actually I meant the 2-digit sequence code used by the SysV-init (provided it is SysV), and for gdm I think it was 01.

Thank you makuyl anyway. I shall edit the previous post too.

*Note about my previous post
makuyl's tip would be better this way
Code:
update-rc.d gdm stop 01 3

Last edited by SkyEye; 09-21-2005 at 04:44 AM.
 
Old 09-21-2005, 10:57 AM   #7
freddie_leaf
Member
 
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
First check the login manager you use: ls -l /etc/init.d/[gkx]dm
What is the default Login Manager when Debain 3.1 is installed? Shouldn't this be the default of the install if I have not changed anything after install?
 
Old 09-21-2005, 11:07 AM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by freddie_leaf
What is the default Login Manager when Debain 3.1 is installed? Shouldn't this be the default of the install if I have not changed anything after install?
If you just installed the desktop environment when asked during the setup then it would be gdm so just remove the /etc/rc2.d/S99gdm link and if you have xdm installed you may as well remove that one as well.
 
Old 09-21-2005, 11:39 AM   #9
lpd
Member
 
Registered: Nov 2004
Distribution: Debian Unstable
Posts: 77

Rep: Reputation: 15
Quote:
Originally posted by HappyTux
If you just installed the desktop environment when asked during the setup then it would be gdm so just remove the /etc/rc2.d/S99gdm link and if you have xdm installed you may as well remove that one as well.
Actually that would only work until the next time the gdm/xdm package was updated, then it would restore the default link because it couldn't detect any "/etc/rc2.d/???gdm" link.
The proper solution would be to rename the offending "/etc/rc2.d/S99gdm" to something like "K01gdm" either directly or by using the 'update-rc.d' script.
Another temporary solution would be to do something like:
Code:
echo "asdasydo" >/etc/X11/default-display-manager
(as root of course)

Last edited by lpd; 09-21-2005 at 11:42 AM.
 
Old 09-21-2005, 02:29 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by lpd
Actually that would only work until the next time the gdm/xdm package was updated, then it would restore the default link because it couldn't detect any "/etc/rc2.d/???gdm" link.

If you remove all the links that would be true, if you leave at least one link then the other(s) will not be recreated.
 
Old 09-22-2005, 03:25 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I do the following to prevent gdm starting,
Code:
#update-rc.d -f gdm remove
If you need to enable gdm again, just do
Code:
#update-rc.d gdm defaults

Last edited by reddazz; 06-24-2006 at 03:11 PM.
 
Old 09-22-2005, 06:16 PM   #12
freddie_leaf
Member
 
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks.
Now when I boot up it goes directly to a shell prompt (this is what I want). I got it to do this by typing:
Code:
update-rc.d -f xdm remove
Can someone explain what this command does? I have know idea what it did to my system. Thanks.

Last edited by freddie_leaf; 09-22-2005 at 06:48 PM.
 
Old 09-22-2005, 06:55 PM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by freddie_leaf
Thanks.
Now when I boot up it goes directly to a shell prompt (this is what I want). I got it to do this by typing:
Code:
update-rc.d -f xdm remove
Can someone explain what this command does? I have know idea what it did to my system. Thanks.
You removed the links for xdm in the /etc/{rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rcS.d/} directories which was the display manager using the update-rc.d tool which is used to manage these links. If you ever want them back (you will get them back BTW anyways unless you remove the xdm package before its next upgrade) use apt-get --reinstall install xdm and the package will be reinstalled and links recreated.
 
  


Reply



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
Graphical login fail, text login works livewire98801 Linux - General 2 10-11-2004 06:09 PM
Need help changing graphical login to regular login jnezezon Linux - Newbie 2 11-13-2003 09:36 PM
Changin Graphical Login to command line login 3DLirio Linux - Newbie 2 10-16-2003 09:43 PM
Gnome Graphical Login -> Text Login, how? Furtzi Linux - Newbie 1 03-09-2002 08:32 AM
how do i remove graphical login? BrianG Linux - General 2 07-16-2001 01:58 PM

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

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration