Unable to disable X from loading at statup
Hi, I'm quite new to Linux, got so annoyed at microsoft that I'm now exploring alternatives.
I want Debian to boot to the command line, but each time the machine is powered up, it goes straight to Debain's X login screen, and from there into KDE. I've been working on this for days, I've read what I can find on google, :study: I've changed the default runlevel in inittab to 3 (everywhere says change it from 5 to 3, my default was 2 :confused:, but each time the system is turned on, it loads into the GUI. I've looked at the Xsession file (didn't understand much), but I don't know what processes run or where the programs to launch at startup are listed. :( Is there such a thing as a "startup" script, which lists what to run and in what order at boot? |
"(everywhere says change it from 5 to 3"
Debian is the oddball. It uses a different runlevel scheme from the other distributions. 2 was probably GUI and I would guess that 1 is command line in Debian. Anyway look in the comments in /etc/inittab to see if you can figure out what Debian does with runlevels. "Is there such a thing as a "startup" script, which lists what to run and in what order at boot?" There are several large sets of startup scripts located in /etc/init.d The runlevel setting determines which set of startup scripts are run. You can also edit and change the startup scripts any way that you want. |
0 is listed as halt
1 single-user 2-5 multiple users 6 is reboot Where can I find definitions of what each runlevel consists of? :newbie: |
I dont use debian. Found this though. Not sure if is correct so be careful :)
Quote:
|
Halt means stop the computer
reboot means reboot the computer single user mode means run with only one user, i.e. like the old DOS system According to this link Debian sets runlevels 2-5 to be exactly the same: http://www.togaware.com/linux/survivor/Other_Run.html This baffles me as no other distribution is set up like this. On Debian the run level number is used to start the script: /etc/init.d/rcS# So setting the runlevel to 3 will run script /etc/init.d/rcS3 That's all I can tell you. So either we need a Debian expert in here to help on this question or you could follow the scripts /etc/init.d/rcS# and see what they do. If they are truly all the same then you could borrow one and set up your own private startup script to experiment with. |
wr3ck3d,
that worked wonders, I ran "update-rc.d -f xdm remove" as root, and rebooted - voila! Booted straight to the command prompt. Next thing, it tried to boot into gdm, so I removed that too. :D Thanks very much. "There is no substitute for good manners - except fast reflexes." |
Jailbait, that link you gave http://www.togaware.com/linux/survivor/Other_Run.html is the more surgical removal approach.
quote: To stop xdm, for example, from starting up by default on boot, simply remove the symbolic link of the corresponding `S' script from /etc/rc?.d/S*xdm. it goes into detail about removing the xdm entry in the particular run level script, rather than the kitchen-knife approach (which works great nonetheless) as used by "update-rc.d -f xdm remove". Thanks again for the help guys! |
All times are GMT -5. The time now is 12:56 PM. |