{"id":175,"date":"2020-07-09T14:14:28","date_gmt":"2020-07-09T13:14:28","guid":{"rendered":"https:\/\/www.qpcoaching.co.uk\/qedevelopment.co.uk\/?p=175"},"modified":"2020-12-30T16:39:21","modified_gmt":"2020-12-30T16:39:21","slug":"graphical-connection-to-a-remote-raspberry-pi-using-cygwin","status":"publish","type":"post","link":"https:\/\/qedevelopment.co.uk\/?p=175","title":{"rendered":"How to Connect To A Raspberry Pi Using X11 And Cygwin"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"640\" height=\"480\" src=\"http:\/\/qedevelopment.co.uk\/wp-content\/uploads\/2020\/07\/cygwinx.gif\" alt=\"X11 view of a Raspberry Pi using Cygwin\" class=\"wp-image-177\"\/><figcaption>X11 Connection to a Raspberry Pi using Cygwin<\/figcaption><\/figure>\n\n\n\n<p>Open up a cygwin shell and enter the following command at the prompt<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cygstart xwin<\/pre>\n\n\n\n<p>Cygstart tells cygwin to run a command and return control to the shell, thus removing the need for two shells, one to launch the xwin application and the other to handle the ssh connection.<\/p>\n\n\n\n<p>With the xwindow running we need to make cygwin aware of the remote display by exporting the environment variable DISPLAY with the appropriate parameters, taken from the title of the newly opened window: it will likely look something like this Cygwin\/X:0.0. Enter the following command as appropriate<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ export DISPLAY=:0.0<\/pre>\n\n\n\n<p>Now start the SSH connection to the raspberry pi using cygwin with the following command and your own username and ip address<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ ssh -Y user@address<\/pre>\n\n\n\n<p>After the logon to the pi is completed start the xwindow session using the following command<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ lxsession<\/pre>\n\n\n\n<p>You should now have an x window connection to the pi along the lines of that shown above.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open up a cygwin shell and enter the following command at the prompt $ cygstart xwin Cygstart tells cygwin to run a command and return control to the shell, thus removing the need for two shells, one to launch the xwin application and the other to handle the ssh connection. With the xwindow running we &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/qedevelopment.co.uk\/?p=175\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Connect To A Raspberry Pi Using X11 And Cygwin&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11],"tags":[25,24,23],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/175"}],"collection":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=175"}],"version-history":[{"count":12,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":376,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/175\/revisions\/376"}],"wp:attachment":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}