Michael Heiming wrote:
> Tony <(E-Mail Removed)> wrote:
>> Hi linux guys,
>
>> I am using redhat7.3. From /etc/xinetd.d folder, I can find other
>> service files like ftp, but i can not find X11 file. I want to disable
>> X11 service, how can I do it?
>
>> from the internet, I got some info. it seems one can use chkconfig to
>> disable the services he does not want to opne, but using chkconfig
>> --list , i can not find X11 ?
>
> Yep, take a look at /etc/inittab, and change:
>
> id:5:initdefault:
> ^
>
> To "3" to disable X11/xdm startup on reboot.
>
> Wonder how many times this question has been answered, you can
> search the archives (groups.google.com) to find an answer to some
> really common question.
To do it temporarily, or to shut down X after changing /etc/inittab
without rebooting, type "telinit 3" at a root command prompt.
Both of these answers assume that runlevel 3 is a non-X runlevel and
runlevel 5 is the default and an X runlevel. This is true for the OP's
Red Hat (assuming the OP hasn't changed this behavior), but it's not true
for all distributions. Old versions of SuSE used other values, but I
don't recall what they were offhand. The last I checked, Slackware used 3
and 4 rather than 3 and 5. Debian doesn't use runlevels to control X
startup; it uses SysV startup scripts.
--
Rod Smith,
(E-Mail Removed)
http://www.rodsbooks.com
Author of books on Linux, FreeBSD, and networking