X starting at startup

KevinO plug-discuss@lists.plug.phoenix.az.us
Wed, 23 Oct 2002 02:50:00 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

MCR wrote:
> I have recently installed Debian on a box that I am
> using as a server.  I would rather not have X start
> every time I restart the server.  I would perfer to
> manually started as it is needed.  However, I do not
> recall how to configure it so it does not start up.  I
> would like to have the command line login, rather than
> graphical.  Could someone be so kind as to remind me
> how to go about this?
>
>                          mike

Take a look in the directory '/etc/rc2.d' for a file called 'S99xdm'.

This file will be a symbolic link to a file in '/etc/init.d' called 'xdm'.

When your box boots, the file '/etc/inittab' is configured to bring the system
up into runlevel 2. This means that scripts in the rc2.d directory that begin
with a capital S will be started. (Or scripts linked to from there, where the
link begins with a captial S)

Removing the file '/etc/rc2.d/S99xdm' will prevent X from starting up as part
of the boot process, and can be done as follows:

# rm /etc/rc2.d/S99xdm

To put it back the way that it was you will have to recreate the link again:

# cd /etc/rc2.d
# ln -s /etc/init.d/xdm S99xdm

Note that the '#' number sign denotes that you have the root prompt and are
executing these commands as the /superuser/.

Please take a look at your system to make sure of these file names and adjust
them if necessary. I do not have access to a deb box to double check them
right now ;-)

# ls -l /etc/rc2.d/S99xdm
lrwxrwxrwx  1 root  root  18 Oct 12 01:58 /etc/rc2.d/S99xdm -> ../init.d/xdm
- --
KevinO

Matz's Law:
        A conclusion is the place where you got tired of thinking.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9tnDGjBS1mMJB+bQRAml+AJ4q1+sHEUua87n1KFcfa9r0XiGTUACdGWY9
DnRvBSX2pqMMXZ5Otx5JlcM=
=xU6K
-----END PGP SIGNATURE-----