DebianThis 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.
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.
I installed 3.1 r2 with desktop and Apache. I don't want X to start at bootup. I would prefer to get the original text-based Linux login, and be able to do a StartX from the console.
I searched the board and newsgroups and couldn't really find anything that helped.
I believe what you want to do is use update-rc.d to remove starting x from rc2.d (runlevel 2 is the default runlevel for Debian). I would give you the exact command to type, but I've not used the command in quite some time...
I believe what you want to do is use update-rc.d to remove starting x from rc2.d (runlevel 2 is the default runlevel for Debian). I would give you the exact command to type, but I've not used the command in quite some time...
There wouldn't be much of a point to me learning Debian if you held my hand.
Between that and some other stuff I've been poking at, we'll see what I can do (or mess up).
I found something in a newsgroup and ended up adding a
Code:
exit 0
to the very beginning of the /etc/init.d/gdm file. Even better cause now I can choose either the Desktop Manager (by typing "gdm"), or my default X (by typing "startx") from the command line.
Last edited by PaulyWally; 07-18-2006 at 03:19 PM.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
You could do the same with removing link with name matching S*gdm in /etc/rc.d/rc<runlevel>.d . By exit 0 you just tell the script to stop. I didn't know Debian doesn't make difference for runlevels by default... I thought better of Debian (X running from initscript at runlevel 3 is not my favorite setup).
Within those directories appear to be a seperate set of scripts. I have a base install with Xwindows and Apache. My rc2.d directory has 19 files in it. One of them is called, "S91apache2", and I assume that initializes the Apache HTTP server upon bootup. If I look at the contents of that file, one of the very first comments is:
Code:
# This init.d script is used to start Apache2
I searched all these scripts looking for gdm and couldn't find it. So I don't know how Debian is starting the desktop manager at bootup.
Last edited by PaulyWally; 07-18-2006 at 04:12 PM.
Okay, I found a tool that might be helpful for you, aptitude install sysv-rc-conf. It's an ncurses based interface that lets you use the space bar to set things to run in the different runlevels...
Your script change sounds fine for what you're doing. But now if you wanted to have a default runlevel that did boot into x automagically, you couldn't have it because the change you made would affect all of the multiuser runlevels.
There's always more than 10 ways to skin a cat, but if you're going to be a system admin, you should probably try to do things in a standard way in the event someone else has to admin the system later on... Just my
but if you're going to be a system admin, you should probably try to do things in a standard way
Good point. Although I'm not planning on becoming a Linux sysadmin... I do like to keep things scaleable. Plus, I work on Winblows systems now. Who knows what systems I might end up on in the future.
At any rate... I've only dabbled in Linux before (Red Hat, and I didn't like it). I'm really trying to get my hands dirty now. So I might as well learn the 10 different ways to skin the cat so I know which is best for different applications.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.