{"id":29134,"date":"2015-10-30T12:40:05","date_gmt":"2015-10-30T07:10:05","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=29134"},"modified":"2015-10-30T13:21:07","modified_gmt":"2015-10-30T07:51:07","slug":"remote-desktop-servers-with-displays","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/remote-desktop-servers-with-displays\/","title":{"rendered":"How to see GUI on Remote (Linux) Machines?"},"content":{"rendered":"<p>It rarely happens that we need to see GUI for the Linux based remote servers. But what if you need to see that. The purpose of this post is to walk you through the software\/steps required to fulfill this requirement. Here is how we can enable the GUI<\/p>\n<p>First of all we have to install vncserver on remote machine<\/p>\n<p>For Ubuntu<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_007.png\" alt=\"Selection_007\" width=\"360\" height=\"17\" class=\"alignnone size-full wp-image-29228\" \/><\/p>\n<p>For Redhat<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_008.png\" alt=\"Selection_008\" width=\"321\" height=\"19\" class=\"alignnone size-full wp-image-29229\" \/><\/p>\n<p>Then start a display and telling the display port along as a command line argument. This will be used by an application that require displays.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_009.png\" alt=\"Selection_009\" width=\"690\" height=\"116\" class=\"alignnone size-full wp-image-29230\" \/><\/p>\n<p>Above we are using display port as :3. If omitted, the next free display number is used<\/p>\n<p>It will ask to type password for authentication. Type password. Re verify. Now display is on<\/p>\n<p>For Ubuntu set password for authentication using vncpasswd command<\/p>\n<p>You can see the list of existing displays using vncserver list option<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_010.png\" alt=\"Selection_010\" width=\"349\" height=\"105\" class=\"alignnone size-full wp-image-29249\" \/><\/p>\n<p>For seeing what port is being used we will grep from ps command<br \/>\n<code>ps -eaf| grep vnc<\/code><br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_016.png\" alt=\"Selection_016\" width=\"1001\" height=\"61\" class=\"alignnone size-full wp-image-29262\" \/><\/p>\n<p>Note down the -rfbport number for the corresponding display<\/p>\n<p>Export the display system variable that will be used by firefox or any other ui application to use<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_013.png\" alt=\"Selection_013\" width=\"355\" height=\"19\" class=\"alignnone size-full wp-image-29251\" \/><\/p>\n<p>Next is how we can see application running.<br \/>\nFor that we need to remote desktop into the remote machine.<\/p>\n<p>Do ssh tunnel.<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_014.png\" alt=\"Selection_014\" width=\"470\" height=\"20\" class=\"alignnone size-full wp-image-29252\" \/><\/p>\n<p>Try to do remote desktop<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_017.png\" alt=\"Selection_017\" width=\"421\" height=\"68\" class=\"alignnone size-full wp-image-29267\" \/><\/p>\n<p>Type localhost as server address and when promted for password, type the password entered earlier while opening display<\/p>\n<p>If everything went fine, shall able to see the remote desktop!!!<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"\/blog\/wp-ttn-blog\/uploads\/2015\/10\/Selection_018.png\" alt=\"Selection_018\" width=\"500\" height=\"317\" class=\"alignnone size-medium wp-image-29268\" \/><\/p>\n<p>One simple use-case could be if you want to see the Geb\/functional tests running on server.<br \/>\nAnd I am planning to write another blog for this.<\/p>\n<p>Hope this helps!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It rarely happens that we need to see GUI for the Linux based remote servers. But what if you need to see that. The purpose of this post is to walk you through the software\/steps required to fulfill this requirement. Here is how we can enable the GUI First of all we have to install [&hellip;]<\/p>\n","protected":false},"author":528,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":12},"categories":[1],"tags":[260,2678,2681,2680,2677,2679],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/29134"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/528"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=29134"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/29134\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=29134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=29134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=29134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}