If you are looking for disabling the X windows, then look at /etc/inittab file and hash (put # at line beginning) the line:
x:5:respawn:/etc/X11/prefd
Main Topics
Browse All TopicsHi all,
I have a redhat server running some network services (postgreSQL radius, etc) on which a wayward Xorg process intermittently hits 100% and stays there until a server reboot. Sometimes it eventually causes the server to become unresponsive.
I have tried various suggested fixes found among online forums here and there, but nothing seems to have made much difference so far.
Since this is a server and I generally only need shell access, I figure that the Xwindows subsystem isn't needed - but not being overly familiar with redhat at all, I'm hoping someone can give me some hints as to what I need to do to get rid of Xorg completely.
Thanks in advance! :)
Mike.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I agree with rindi - runlevel 3 is the way to go. If you do have custom init.d scripts, you have presumably already followed the Red Hat guidelines and have a chkconfig comment near the front, e.g.:
07:47:04$ head iptables
#!/bin/sh
#
# iptables Start iptables firewall
#
# chkconfig: 2345 08 92
# description: Starts, stops and saves iptables firewall
#
# config: /etc/sysconfig/iptables
# config: /etc/sysconfig/iptables-co
The iptables script starts early (S08iptables), finishes late (K92iptables) and starts in runlevels 2, 3, 4 & 5.
The chkconfig utility makes all the right symbolic links, as long as you have that comment line (and the script is in /etc/rc.d/init.d)
Hi all,
This is a very straightforward - base fedora core with freeradius and postgresql installed. No other customisation done at all. I normally use debian, but in this case I had to use redhat for support of the type of disk installed.
Therefore there are no other iniot.d scripts than those added by setup and by yum.
I don't know why Xorg should even be running, as I *never* use the console, only remote ssh. I discover that something is wrong when the system becomes unresponsive, and then when I log in with ssh, I discover the Xorg running full blast.
So far I have just commented out that row in inittab, and the Xorg task has not appeared yet. I tried using "yum remove Xorg" but it doesn't work - I assume because the package is not called 'Xorg' - how can I find out what it is called?
Cheers.
The correct way to remove it is using yum's package group features.
#yum grouplist
This will return a list of all package groups. Listed first are Installed group, followed by uninstalled (available) groups. The group you want is "X Window System", so:
#yum groupremove "X Window System"
should remove xorg and all related components.
Do be sure, however, to follow the advice above regarding init scripts. chkconfig --list will show you all services that are started at each runlevel. Removing Xorg will likely change the default runlevel from 5 to 3 automatically, so be sure you make any necessary changes in advance.
Thanks everyone for your input.
I do not understand all this business about runlevel and init scripts. I honestly cannot figure why Xorg is even run at all, as this is a headless server that runs even without a monitor attached.
Can someone explain how removing Xorg would cause any trouble at all? Perhaps with an example of how it can all go belly-up?
Can anyone suggest how come Xorg even get's started up in this environment?
Regards, Mike.
Many Linux setups will install X and also run in runlevel 5 by default. Runlevels are how PC startup. Runlevel 3 is the standard, multiuser, networking mode that doesn't start X, and runlevel 5 is the same but with X. So if you make sure your server starts into runlevel 3 and not 5, it won't be using X, and if it runs OK in that runlevel I'd leave it that way, or you could uninstall X later.
Just follow rindi's instructions earlier at http://www.experts-exchang
You *could* comment out the line "x:5:respawn:/etc/X11/pref
Business Accounts
Answer for Membership
by: illuzianPosted on 2008-05-04 at 02:51:41ID: 21495185
try moving/renaming gdm/kdm or xorg int /etc/init.d/