Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Everytime after restarting the servers, I have to run xhost + from console prompt.

Does anyone have any idea about enabling xhost + from inittab file?

share|improve this question
Why do you want to run xhost +? If you tell us, we'll have a better idea of where to run it (though I can tell you inittab is definitely the wrong place), and possibly we'll be able to suggest something more secure. – Gilles Apr 23 '12 at 23:13
Oracle requires Xwindows and we have Unix machine with a graphics adapter available as resource for this in a remote site. To avoid going to remote site just to run xhost + after each restart of the system, for this reason we are looking for a way to have xhost running after each reboot. – AlBouazizi Apr 24 '12 at 5:15
How is the connection between the Oracle machine and the machine running with the graphics adapter established? For that matter, how are you starting the X session? – Gilles Apr 24 '12 at 8:22
Via ethernet, the hostname of the server with graphics card is explicitly defined in one of the Oracle configuration file. For now, we go to remote site and issue xhost + on the graphics console every time there is a reboot. – AlBouazizi Apr 24 '12 at 13:41
@AlBouazizi The configuration you have sounds a bit crazy. I suggest you describe your setup on dba.SE and ask for suggestions on changing it. Oracle DB doesn't require GUI to run and for configuration it doesn't need to run on the server. Further if you need a display host I suggest using a Windows machine with CygwinX or similar. It will be cheaper too. – Karlson Apr 24 '12 at 14:28

Unless it's a system service you really shouldn't put this into inittab.

If you need to run xhost + from a console you should put it into it's initialization script.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.