Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-20-2005, 08:44 PM
|
#1
|
Member
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33
Rep:
|
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.
|
|
|
09-20-2005, 10:30 PM
|
#2
|
Member
Registered: May 2003
Posts: 167
Rep:
|
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
but make the 'X' a '3' instead. You will boot into runlevel 3, which is a console, multiuser mode.
|
|
|
09-21-2005, 01:53 AM
|
#3
|
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107
Rep:
|
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.
|
|
|
09-21-2005, 02:59 AM
|
#4
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
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.
|
|
|
09-21-2005, 04:07 AM
|
#5
|
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107
Rep:
|
Quote:
Originally posted by SkyEye
|
Code:
update-rc.d gdm stop 99 3
I think you meant "update-rc.d gdm stop 01 3"
|
|
|
09-21-2005, 04:38 AM
|
#6
|
Member
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441
Rep:
|
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.
|
|
|
09-21-2005, 10:57 AM
|
#7
|
Member
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33
Original Poster
Rep:
|
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?
|
|
|
09-21-2005, 11:07 AM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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.
|
|
|
09-21-2005, 11:39 AM
|
#9
|
Member
Registered: Nov 2004
Distribution: Debian Unstable
Posts: 77
Rep:
|
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.
|
|
|
09-21-2005, 02:29 PM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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.
|
|
|
09-22-2005, 03:25 AM
|
#11
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
09-22-2005, 06:16 PM
|
#12
|
Member
Registered: Oct 2004
Distribution: Debian 3.1
Posts: 33
Original Poster
Rep:
|
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.
|
|
|
09-22-2005, 06:55 PM
|
#13
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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.
|
|
|
All times are GMT -5. The time now is 03:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|