{"id":222,"date":"2009-05-09T04:08:29","date_gmt":"2009-05-09T02:08:29","guid":{"rendered":"http:\/\/raftaman.net\/?p=222"},"modified":"2021-05-15T11:46:42","modified_gmt":"2021-05-15T09:46:42","slug":"222","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=222","title":{"rendered":"Staring X applications through an ssh tunnel"},"content":{"rendered":"<p>If you encounter the problem of being unable to start an X application through an <code>ssh<\/code>-tunnel and run into an error message similar to<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\nCan't open display\r\n<\/pre>\n<p>or<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\nRuntimeError: could not open display\r\n<\/pre>\n<p>you should check <\/p>\n<ul>\n<li>that you used <code>ssh -X[...]<\/code> to enable X11 forwarding when connecting to the server<\/li>\n<li>that the <code>xauth<\/code>-package is installed correctly on your server<\/li>\n<\/ul>\n<p><code>xauth<\/code> is used to edit and display the authorization information used in connecting to an X server.<\/p>\n<p>For example, after installing a <a href=\"http:\/\/jons-thoughts.blogspot.com\/2007\/12\/minimal-kickstart.html\">minimalistic CentOS<\/a> the <code>xorg-x11-xauth<\/code> package is not necessarily installed as well.<\/p>\n<p>The solution is quite simple:<\/p>\n<pre class=\"brush: plain; light: true; title: ; notranslate\" title=\"\">\r\nyum install xorg-x11-xauth\r\n<\/pre>\n<p>does the trick! You may have to reconnect to give <code>xauth<\/code> the opportunity to create a new authority file for you user (<code>~\/.Xauthority<\/code>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you encounter the problem of being unable to start an X application through an ssh-tunnel and run into an error message similar to Can&#8217;t open display or RuntimeError: could not open display you should check that you used ssh -X[&#8230;] to enable X11 forwarding when connecting to the server that the xauth-package is installed correctly on your server xauth&#8230; <a href=\"https:\/\/possiblelossofprecision.net\/?p=222\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13,7,15,14],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-centos","tag-fedora","tag-ssh","tag-x"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":6,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":1612,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions\/1612"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}