- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- still need help with xhost
Operating System - HP-UX
1819504
Members
3087
Online
109603
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 07:58 AM
тАО12-06-2000 07:58 AM
I have an application on my server that need "xhost +" to be executed from the console to run well. How i can make my "xhost +" to start as the system boot?
--------------------------------------------
Rainer
December 05, 2000 15:15 PM GMT
to generally turn off access control create the file
/etc/X0.hosts
with the contents
+
This will allow any host to have acces to the X server.
See also 'man xhost'
------------------------------------------
Albert E. Whale
December 05, 2000 15:16 PM GMT
Jasmine,
The simplest place to put this command is in the /etc/inittab file. You can use the following syntax:
xhst:234:once:/usr/bin/X11/xhost +
Have a Great Day!
----------------------------------------------
Manuel Plaza
December 05, 2000 15:17 PM GMT
Hi Jasmin,
You can use /etc/X0.hosts. This is an ASCII file that contains the hostnames autorized to use the X display. You must have the name of your server and so is not necesssary to use the "xhost +" command.
Regard,
Manuel
----------------------------------------------
Kofi ARTHIABAH
December 05, 2000 15:17 PM GMT
Hi Jasmine:
do a man on Xserver. It says in there that you should create a /etc/Xn.hosts where n is the display number (eg. 0) and place in there, the addresses of the hosts to allow... I am guessing if you
# echo "+" >> /etc/X0.hosts
it should do what you want.
----------------------------------------------
Kenneth Platz
December 05, 2000 15:40 PM GMT
Jasmin,
Unfortunately Rainer is incorrect. The /etc/X0.hosts file should be a list of hosts that are automatically granted access to the X server. Also, since the X server will attempt to ping every host in this file during initialization, if any host in here is not a valid hostname (including the "+" character) this will instead create a situation where the X server will fail to completely initialise, and you will most likely end up with a black screen.
The easiest way of completely disabling access control on your X server (ie, the equivalent of doing an "xhost +" at the console) would be to add the "-ac" command-line option to the "/usr/bin/X11/X" command-line. If your system uses CDE, then you would want to edit /etc/dt/config/Xservers, and modify it so the "local" entry appears as follows:
* local local@console /usr/bin/X11/X :0 -ac
I hope this helps
---------------------------------------------
Jasmin Berube
December 05, 2000 18:28 PM GMT
I tried to put "-ac" option in /etc/dt/config/Xservers file as mentionned. If I do "xhost" command on the console it says access control disable, but it doesn't work until I do "xhost +" again.... Have an idea?
--------------------------------------------
Rainer
December 05, 2000 15:15 PM GMT
to generally turn off access control create the file
/etc/X0.hosts
with the contents
+
This will allow any host to have acces to the X server.
See also 'man xhost'
------------------------------------------
Albert E. Whale
December 05, 2000 15:16 PM GMT
Jasmine,
The simplest place to put this command is in the /etc/inittab file. You can use the following syntax:
xhst:234:once:/usr/bin/X11/xhost +
Have a Great Day!
----------------------------------------------
Manuel Plaza
December 05, 2000 15:17 PM GMT
Hi Jasmin,
You can use /etc/X0.hosts. This is an ASCII file that contains the hostnames autorized to use the X display. You must have the name of your server and so is not necesssary to use the "xhost +" command.
Regard,
Manuel
----------------------------------------------
Kofi ARTHIABAH
December 05, 2000 15:17 PM GMT
Hi Jasmine:
do a man on Xserver. It says in there that you should create a /etc/Xn.hosts where n is the display number (eg. 0) and place in there, the addresses of the hosts to allow... I am guessing if you
# echo "+" >> /etc/X0.hosts
it should do what you want.
----------------------------------------------
Kenneth Platz
December 05, 2000 15:40 PM GMT
Jasmin,
Unfortunately Rainer is incorrect. The /etc/X0.hosts file should be a list of hosts that are automatically granted access to the X server. Also, since the X server will attempt to ping every host in this file during initialization, if any host in here is not a valid hostname (including the "+" character) this will instead create a situation where the X server will fail to completely initialise, and you will most likely end up with a black screen.
The easiest way of completely disabling access control on your X server (ie, the equivalent of doing an "xhost +" at the console) would be to add the "-ac" command-line option to the "/usr/bin/X11/X" command-line. If your system uses CDE, then you would want to edit /etc/dt/config/Xservers, and modify it so the "local" entry appears as follows:
* local local@console /usr/bin/X11/X :0 -ac
I hope this helps
---------------------------------------------
Jasmin Berube
December 05, 2000 18:28 PM GMT
I tried to put "-ac" option in /etc/dt/config/Xservers file as mentionned. If I do "xhost" command on the console it says access control disable, but it doesn't work until I do "xhost +" again.... Have an idea?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 08:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 08:21 AM
тАО12-06-2000 08:21 AM
Re: still need help with xhost
I would suggest concentrating on the /etc/X0.hosts file : add the names of the server and the locally display to this file eg :
severA.uksr.hp.com
localB.uksr.hp.com
save the file and init 2 init 3 to restart the Xserver process.
Try your script now ?
severA.uksr.hp.com
localB.uksr.hp.com
save the file and init 2 init 3 to restart the Xserver process.
Try your script now ?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP