Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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
show 3 more comments

1 Answer

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
add comment

Your Answer

 
discard

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.