<?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: Can't open display in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965066#M27503</link>
    <description>Most Linux distributions today are configured to *ignore* unencrypted X sessions over the network. By default, the only way to use X window system remotely is to use SSH and enable its X11 forwarding. &lt;BR /&gt;&lt;BR /&gt;I'm reasonably sure your application would work with no code changes through SSH's X11 forwarding: just the documentation needs to be updated to use the newer, secure connection methods. You'll find that SSH's X11 connection forwarding is actually *easier* to use than the traditional method.&lt;BR /&gt;&lt;BR /&gt;When asked to forward a X11 connection, SSH will automatically handle setting the DISPLAY variable for you. It will also automatically handle the xauth keys, so that you won't need to damage your security with "xhost +".&lt;BR /&gt;&lt;BR /&gt;If you enable unencrypted X sessions, be sure your network is secure. If you use an unencrypted session with "xhost +", anyone who can connect to your workstation's TCP port 6000 can e.g. open onto your screen a full-screen, borderless transparent window which captures and passes through all keyboard and mouse events, thus seeing everything you do.&lt;BR /&gt;&lt;BR /&gt;Please see my answer to this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990009" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990009&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is the relevant part:&lt;BR /&gt;&lt;BR /&gt;3.) The X display system must allow TCP connections. Reflection and "old" Unix servers allow this by default, but most new Linux distributions have this disabled.&lt;BR /&gt;&lt;BR /&gt;This is set when starting the X display system. If you're using XDM as your login dialog, check the file /etc/X11/xdm/Xserver.&lt;BR /&gt;Usually there is only one line without the comment sign ("#"). If there is a "-nolisten tcp" option on that line, the display system will accept only local connections (in technical terms, only "Unix domain socket" connections).&lt;BR /&gt;</description>
    <pubDate>Tue, 20 Mar 2007 10:02:31 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2007-03-20T10:02:31Z</dc:date>
    <item>
      <title>Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965061#M27498</link>
      <description>Hi,&lt;BR /&gt;I've just installed RedHat WS 4.0.&lt;BR /&gt;I'm trying to setup my X server and there's a pb while trying to open a window (for instance xclock) : can't open display.&lt;BR /&gt;The initial value of the DISPLAY parameter is set to :0.0 and for application purpose, I need this variable setup to computer_name:0.0&lt;BR /&gt;I've already tried xhost +&lt;BR /&gt;Any clue where the pb comes from ?</description>
      <pubDate>Tue, 20 Mar 2007 05:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965061#M27498</guid>
      <dc:creator>Mike_811</dc:creator>
      <dc:date>2007-03-20T05:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965062#M27499</link>
      <description>Shalom Mike,&lt;BR /&gt;&lt;BR /&gt;Make sure the computer name resolves either with dns or /etc/hosts&lt;BR /&gt;&lt;BR /&gt;DISPLAY=computer_name:0.0&lt;BR /&gt;export DISPLAY&lt;BR /&gt;&lt;BR /&gt;Put this in the profile or enter it into the command line.&lt;BR /&gt;&lt;BR /&gt;This will enable you to use X from the console. Make sure the system is set to run level 5 in /etc/inittab&lt;BR /&gt;&lt;BR /&gt;If you wish to run X apps external to the machine:&lt;BR /&gt;&lt;BR /&gt;ssh -X computer_name application_name&lt;BR /&gt;example&lt;BR /&gt;ssh -X computer_name system-config-display&lt;BR /&gt;&lt;BR /&gt;This will permit you to run X apps off the system with an encrypted tunnel and not having to bother with actually being on the console.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Mar 2007 06:05:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965062#M27499</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-20T06:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965063#M27500</link>
      <description>If you want to start xclients (programs ) as a user other than the user logged into the desktop environment, you need to copy the desktop-environments users ~/.Xauthority  file to the other user homedirectory. The file conatains a key (MIT-MAGIC-COOKIE) that is need to access the display of the desktop user. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 07:55:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965063#M27500</guid>
      <dc:creator>Jarle Bjorgeengen</dc:creator>
      <dc:date>2007-03-20T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965064#M27501</link>
      <description>Thanks Steve, but still not working.&lt;BR /&gt;I've entered :&lt;BR /&gt;DISPLAY=poconfig:0.0&lt;BR /&gt;export DISPLAY&lt;BR /&gt;poconfig is an entry in /etc/hosts&lt;BR /&gt;xclock : can't open display&lt;BR /&gt;&lt;BR /&gt;I've also tried :&lt;BR /&gt;ssh -X poconfig system-config-display&lt;BR /&gt;result : connect poconfig port 6000 : connection refused&lt;BR /&gt;&lt;BR /&gt;I've think there's something wrong with authorisation.&lt;BR /&gt;&lt;BR /&gt;The daemon X (daemon) has the option -nolisten. is it normal ?</description>
      <pubDate>Tue, 20 Mar 2007 08:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965064#M27501</guid>
      <dc:creator>Mike_811</dc:creator>
      <dc:date>2007-03-20T08:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965065#M27502</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;who -r&lt;BR /&gt;&lt;BR /&gt;Lets see what run level the machine is at. Linux needs to be at run level 5 to properly run X.&lt;BR /&gt;&lt;BR /&gt;I think you should check permissions as my itrc colleague says. Non-response is common if permissions are wrong.&lt;BR /&gt;&lt;BR /&gt;Here is my X daemon on a working system.&lt;BR /&gt;&lt;BR /&gt;root      4452  4409  0 Feb28 ?        00:00:29 /usr/bin/X11/X :0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-nolisten is both non-informative and misleading since this system runs applictions just fine on its console.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Mar 2007 08:56:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965065#M27502</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-20T08:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't open display</title>
      <link>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965066#M27503</link>
      <description>Most Linux distributions today are configured to *ignore* unencrypted X sessions over the network. By default, the only way to use X window system remotely is to use SSH and enable its X11 forwarding. &lt;BR /&gt;&lt;BR /&gt;I'm reasonably sure your application would work with no code changes through SSH's X11 forwarding: just the documentation needs to be updated to use the newer, secure connection methods. You'll find that SSH's X11 connection forwarding is actually *easier* to use than the traditional method.&lt;BR /&gt;&lt;BR /&gt;When asked to forward a X11 connection, SSH will automatically handle setting the DISPLAY variable for you. It will also automatically handle the xauth keys, so that you won't need to damage your security with "xhost +".&lt;BR /&gt;&lt;BR /&gt;If you enable unencrypted X sessions, be sure your network is secure. If you use an unencrypted session with "xhost +", anyone who can connect to your workstation's TCP port 6000 can e.g. open onto your screen a full-screen, borderless transparent window which captures and passes through all keyboard and mouse events, thus seeing everything you do.&lt;BR /&gt;&lt;BR /&gt;Please see my answer to this thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990009" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=990009&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This is the relevant part:&lt;BR /&gt;&lt;BR /&gt;3.) The X display system must allow TCP connections. Reflection and "old" Unix servers allow this by default, but most new Linux distributions have this disabled.&lt;BR /&gt;&lt;BR /&gt;This is set when starting the X display system. If you're using XDM as your login dialog, check the file /etc/X11/xdm/Xserver.&lt;BR /&gt;Usually there is only one line without the comment sign ("#"). If there is a "-nolisten tcp" option on that line, the display system will accept only local connections (in technical terms, only "Unix domain socket" connections).&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Mar 2007 10:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/can-t-open-display/m-p/3965066#M27503</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2007-03-20T10:02:31Z</dc:date>
    </item>
  </channel>
</rss>

