<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xhost display in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178075#M50823</link>
    <description>You can't run xhost unless you already have access to the DISPLAY. And if you think it's acceptable to use "xhost +" then you don't know enough to be running X anyway.</description>
    <pubDate>Thu, 28 May 2009 15:14:28 GMT</pubDate>
    <dc:creator>Heironimus</dc:creator>
    <dc:date>2009-05-28T15:14:28Z</dc:date>
    <item>
      <title>xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178071#M50819</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have an issue with my xhost display for a particular user (findev) on Linux RH AS3 (hostname boxA). For example xclock works fine as root but not for another user account. It only works when I set the display to my local address and this resets whenever I log out again. Can anybody tell me how to make this a permanent fixture?&lt;BR /&gt;&lt;BR /&gt;i.e.&lt;BR /&gt;[findev]$ xclock&lt;BR /&gt;Xlib: connection to "boxA.intmet.ie:0.0" refused by server&lt;BR /&gt;Xlib: No protocol specified&lt;BR /&gt;&lt;BR /&gt;Error: Can't open display: boxA.intmet.ie:0.0&lt;BR /&gt;[findev]$ export DISPLAY=&lt;LOCAL_IP&gt;:0.0&lt;BR /&gt;[findev]$ xclock &amp;amp;&lt;BR /&gt;[1] 20235&lt;BR /&gt;&lt;BR /&gt;The user account is used by multiple users therefore hardcoding my local ip address into the .profile is pointless. &lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Duffs&lt;BR /&gt; &lt;BR /&gt;&lt;/LOCAL_IP&gt;</description>
      <pubDate>Thu, 28 May 2009 08:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178071#M50819</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-05-28T08:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178072#M50820</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Take a look at the env data.&lt;BR /&gt;&lt;BR /&gt;You actually want the DISPLAY variable set to the host the user logged in from.&lt;BR /&gt;&lt;BR /&gt;That can be done in the .profile file.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 May 2009 09:54:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178072#M50820</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-05-28T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178073#M50821</link>
      <description>Hi SEP,&lt;BR /&gt;&lt;BR /&gt;The problem is that the .profile is already configured with the name of the hostname exported as the display but it spits out the error message that I mentioned above.&lt;BR /&gt;&lt;BR /&gt;R,&lt;BR /&gt;D.</description>
      <pubDate>Thu, 28 May 2009 12:31:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178073#M50821</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-05-28T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178074#M50822</link>
      <description>Maybe to clarify:&lt;BR /&gt;&lt;BR /&gt;when I execute 'xhost +' I get:&lt;BR /&gt;&lt;BR /&gt;[findev@hostA findev]$ xhost +&lt;BR /&gt;Xlib: connection to "hostA.intmet.ie:0.0" refused by server&lt;BR /&gt;Xlib: No protocol specified&lt;BR /&gt;&lt;BR /&gt;xhost:  unable to open display "hostA.intmet.ie:0.0"&lt;BR /&gt;&lt;BR /&gt;whereas it should return:&lt;BR /&gt;&lt;BR /&gt;/home/finprod&amp;gt; xhost +&lt;BR /&gt;access control disabled, clients can connect from any host&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;D.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 12:36:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178074#M50822</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-05-28T12:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178075#M50823</link>
      <description>You can't run xhost unless you already have access to the DISPLAY. And if you think it's acceptable to use "xhost +" then you don't know enough to be running X anyway.</description>
      <pubDate>Thu, 28 May 2009 15:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178075#M50823</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2009-05-28T15:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178076#M50824</link>
      <description>Duffs,&lt;BR /&gt;&lt;BR /&gt;If you are trying to display something onto your local display, then as the user you logged into your GNOME Session as, you must execute the xhost + command as that user.&lt;BR /&gt;&lt;BR /&gt;If you login as a non-priv'd user, and then 'su' to the root user, you will not be able to use the xhost command no matter if you are the root user or not.&lt;BR /&gt;&lt;BR /&gt;You can modify, (I'll advise against it for obvious reasons) -or- try creating, a $HOME/.xinitrc file and put your xhost+ command in it, so that it opens up the display when your user account logs in.&lt;BR /&gt;&lt;BR /&gt;Then you can su to the root user account and set your display back and execute your application.&lt;BR /&gt;&lt;BR /&gt;If you are pushing a display across the network to another system, such as another Linux system, then a user *must* be logged in on the linux system graphics console and allow your appliation access by using the xhost + command on it.&lt;BR /&gt;&lt;BR /&gt;If you are pushing a display across the network to a PC running ReflectionX or eXceed or eXcursion, then you will need to use the configuration utility to allow your system to access the PC Display Xserver.&lt;BR /&gt;&lt;BR /&gt;There is plenty of information on this very subject on the web... just a little searching and you will find reams of information on just about every variation of Linux and how to grant X access to that vendors version of X.&lt;BR /&gt;&lt;BR /&gt;Example:  &lt;BR /&gt;&lt;A href="http://www.leidinger.net/X/" target="_blank"&gt;http://www.leidinger.net/X/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.phy.bnl.gov/cybersecurity/old/xhost_plus.html" target="_blank"&gt;http://www.phy.bnl.gov/cybersecurity/old/xhost_plus.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.linuxdig.com/howto/ldp/Remote-X-Apps.php" target="_blank"&gt;http://www.linuxdig.com/howto/ldp/Remote-X-Apps.php&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.linuxquestions.org/wiki/XHOST" target="_blank"&gt;http://wiki.linuxquestions.org/wiki/XHOST&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I wish you the best of luck in your endeavor.&lt;BR /&gt;&lt;BR /&gt;Rick Retterer&lt;BR /&gt;</description>
      <pubDate>Thu, 28 May 2009 22:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178076#M50824</guid>
      <dc:creator>Rick Retterer</dc:creator>
      <dc:date>2009-05-28T22:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178077#M50825</link>
      <description>Heironimus, &lt;BR /&gt;First and foremost the purpose of this forum is to help and advise not criticise. Comments like ..."then you don't know enough to be running X anyway" are simply rude and arrogant - you should vent your frustrations on some other forum! And secondly the display is running so your pompous remark makes no sense.&lt;BR /&gt;&lt;BR /&gt;Rick,&lt;BR /&gt;Thanks for the feedback. One of the links proved very helpful and helped me resolve the issue. The problem lay with the authorization record (magic cookie). &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Duffs</description>
      <pubDate>Fri, 29 May 2009 13:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178077#M50825</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-05-29T13:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: xhost display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178078#M50826</link>
      <description>Issue resolved by adding the correct magic cookie to the xauth list.</description>
      <pubDate>Fri, 29 May 2009 13:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/xhost-display/m-p/5178078#M50826</guid>
      <dc:creator>Duffs</dc:creator>
      <dc:date>2009-05-29T13:57:13Z</dc:date>
    </item>
  </channel>
</rss>

