{"id":132,"date":"2009-02-07T07:32:44","date_gmt":"2009-02-06T22:32:44","guid":{"rendered":"http:\/\/www.mozilla.gr.jp\/~shimono\/blog\/?p=132"},"modified":"2009-02-07T07:32:44","modified_gmt":"2009-02-06T22:32:44","slug":"getting-xs-windows-from-remote-hosts-on-cygwinx","status":"publish","type":"post","link":"https:\/\/blog.himor.in\/?p=132","title":{"rendered":"Getting X&#8217;s windows from remote hosts on Cygwin\/X"},"content":{"rendered":"<p>As previous, I think we can get remote X&#8217;s windows simply via &#8216;ssh -X&#8217; or &#8216;ssh -Y&#8217; with using &#8216;DISPLAY=localhost:xx.0&#8217;. But I cannot do so now.<\/p>\n<p>For this problem, I&#8217;ve first searched &#8216;xhost&#8217; command, but cygwin returns &#8216;xhost: Command not found&#8217;. So, I&#8217;ve changed to other way with using pure xauth method.<\/p>\n<p>On cygwin terminal, you&#8217;ll get the followings with xauth command.<\/p>\n<blockquote><p>% xauth list<br \/>\nhostname:0\u00a0 MIT-MAGIC-COOKIE-1\u00a0 091fcf131a5c647869f2f4d5bf45e26c<br \/>\nhostname\/unix:0\u00a0 MIT-MAGIC-COOKIE-1\u00a0 2554c8810c6218f08fec1f1e63599d09<br \/>\n10.0.0.25:0\u00a0 MIT-MAGIC-COOKIE-1\u00a0 2554c8810c6218f08fec1f1e63599d09<\/p><\/blockquote>\n<p>The last hex value is the COOKIE of X, and might vary on each session. After getting this cookie informations, you should type the following command on the remote host.<\/p>\n<blockquote><p>% xauth add hostname:0 MIT-MAGIC-COOKIE-1\u00a0 091fcf131a5c647869f2f4d5bf45e26c<\/p><\/blockquote>\n<p>After this, you can get X&#8217;s windows from remote hosts to your cygwin X.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As previous, I think we can get remote X&#8217;s windows simply via &#8216;ssh -X&#8217; or &#8216;ssh -Y&#8217; with using &#8216;DISPLAY=localhost:xx.0&#8217;. But I cannot do so now. For this problem, I&#8217;ve first searched &#8216;xhost&#8217; command, but cygwin returns &#8216;xhost: Command not found&#8217;. So, I&#8217;ve changed to other way with using pure xauth method. On cygwin terminal, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,6,3,9,14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=132"}],"version-history":[{"count":2,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/132\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}