Sorry to reply to myself, but there was a potentially confusing typo in my earlier reply.

Below, I wrote:

 then look for a line like this one in /etc/inittab:
        # The default runlevel.
        id:6:initdefault:

This should have read:


 then look for a line like this one in /etc/inittab:
        # The default runlevel.
        id:5:initdefault:

In standard practice, runlevel 6 is reboot.


At 01:22 PM 6/11/2003 -0700, Ray Olszewski wrote:
At 04:03 PM 6/11/2003 -0400, Matthew Stapleton wrote:
Hello,

When I boot into linux (I have a dual boot system) the XDM is
automatically started.  What file or files do I need to modify in order
to disable this? Is there a linux equivalent to DOS's autoexec.bat?


How you disable xdm during boot/init varies a bit by distribution. But there are only 2 usual ways it gets started:

1. In /etc/inittab, some runlevels will start xdm (typically runlevel 5). If your distro does it this way, then look for a line like this one in /etc/inittab:
# The default runlevel.
id:6:initdefault:


and change it to read (probably)
        # The default runlevel.
        id:2:initdefault:

(This is the more common way of starting xdm.)


2. /etc/inittab will always start *some* init script (this is as close to autoexec.bat as you will get with Linux), and that script in turn customarily runs a bunch of other init scripts, each of which sets up some piece of the OS or starts some background process. Locations vary, but one example of where they are is
/etc/init.d for the actual scripts
/etc/rc2.d for symlinks to the ones run at runlevel 2
(there will be a corresponding /etc/rc?.d for
each runlevel, including an /etc/rcS.d for
single-user mode)


Look in the directory for the default runlevel for a symlink with a name something like "S99xdm". To stop xdm from starting during boot/init, remove this symlink.
(This is the less common method of starting xdm, but the one I am more familiar with, since Debian does it this way.)


I've simplified the description of the boot/init process quite a bit in the above (I've lonly mentioned single-user mode in passing, for example), but not in ways that are relevant to the question aout xdm.





- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to