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.
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. – GillesApr 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. – AlBouaziziApr 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? – GillesApr 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. – AlBouaziziApr 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. – KarlsonApr 24 '12 at 14:28
xhost +? If you tell us, we'll have a better idea of where to run it (though I can tell youinittabis definitely the wrong place), and possibly we'll be able to suggest something more secure. – Gilles Apr 23 '12 at 23:13