{"id":2024,"date":"2014-08-28T18:08:36","date_gmt":"2014-08-28T14:08:36","guid":{"rendered":"http:\/\/sandalov.org\/blog\/?p=2024"},"modified":"2014-08-28T18:25:22","modified_gmt":"2014-08-28T14:25:22","slug":"forward-x11-display-to-ubuntu-14-04","status":"publish","type":"post","link":"https:\/\/sandalov.org\/blog\/2024\/","title":{"rendered":"Forward X11 display to Ubuntu 14.04"},"content":{"rendered":"<div class=\"2d836d85a73757df15d0de19d7bef594\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-2287684400845931\";\r\n\/* valerymorozov *\/\r\ngoogle_ad_slot = \"5606708872\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>I spent a lot of hours before realizing that Ubuntu 14.04 blocks tcp by default.<\/p>\n<p>One can check this by<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nps aux | grep X\r\nroot      1127  0.1  3.4 364380 71748 tty7     Ss+  12:08   0:00 \/usr\/bin\/X -core :0 \r\n   -seat seat0 -auth \/var\/run\/lightdm\/root\/:0 -nolisten tcp vt7 -novtswitch\r\n<\/pre>\n<p>Notice the -nolisten option in output.<\/p>\n<p>To enable it, add xserver-allow-tcp=true to lightdm:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo vi \/usr\/share\/lightdm\/lightdm.conf.d\/50-xserver-command.conf\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n &#x5B;SeatDefaults]\r\n # Dump core\r\n xserver-command=X -core\r\n xserver-allow-tcp=true\r\n<\/pre>\n<p>Restart X (or reboot) and forward X11 desktop by launching:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# server\r\nexport DISPLAY=&lt;your-localhost-ip&gt;:0\r\n\r\n# client\r\nxhost +\r\n<\/pre>\n<p>You can test Display forwarding by launching on server<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nxeyes\r\n<\/pre>\n<p><a href=\"http:\/\/forum.ubuntuusers.de\/topic\/x-server-fuer-netzclients-oeffnen\/#post-6561997\">credits<\/a><\/p>\n<div class=\"2d836d85a73757df15d0de19d7bef594\" data-index=\"1\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-2287684400845931\";\r\n\/* valerymorozov *\/\r\ngoogle_ad_slot = \"5606708872\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>I spent a lot of hours before realizing that Ubuntu 14.04 blocks tcp by default. One can check this by ps aux | grep X root 1127 0.1 3.4 364380 71748 tty7 Ss+ 12:08 0:00 \/usr\/bin\/X -core :0 -seat seat0 -auth \/var\/run\/lightdm\/root\/:0 -nolisten tcp vt7 -novtswitch Notice the -nolisten option &hellip; <a class=\"continue-reading-link\" href=\"https:\/\/sandalov.org\/blog\/2024\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2024","post","type-post","status-publish","format-standard","hentry","category-unsorted"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/2024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/comments?post=2024"}],"version-history":[{"count":4,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/2024\/revisions"}],"predecessor-version":[{"id":2028,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/posts\/2024\/revisions\/2028"}],"wp:attachment":[{"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/media?parent=2024"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/categories?post=2024"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sandalov.org\/blog\/wp-json\/wp\/v2\/tags?post=2024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}