{"id":246,"date":"2013-01-21T09:22:06","date_gmt":"2013-01-21T09:22:06","guid":{"rendered":"https:\/\/olkn.homelinux.net\/2013\/01\/vnc-connection-via-ssh-tunnel\/"},"modified":"2013-01-21T09:22:06","modified_gmt":"2013-01-21T09:22:06","slug":"vnc-connection-via-ssh-tunnel","status":"publish","type":"post","link":"https:\/\/olkn.myvnc.com\/?p=246","title":{"rendered":"vnc connection via ssh tunnel"},"content":{"rendered":"<p>To use one of my servers as a development platform I have choosen VNC through a SSH tunnel to access a graphical user interface. The GUI is necessary in order to play around with eclipse and android development and VNC is used as it should reduce the network traffic to its bare minimum keeping my slow internet connection available for other services as well.<\/p>\n<p>I will start with vnc4server as it seems to be available in the standard debian repos, so a:<br \/>\n<code>aptitude install vnc4server<\/code><br \/>\nshould do the trick. To get a display to connect to the next step is:<br \/>\n<code>vnc4server -geometry 1024x768 -depth 24<\/code><br \/>\nwhich will create the display with the specified geometry. You will be prompted for a password afterwards which will be used for the remote connection. To get the new server running just type:<br \/>\n<code>vnc4server<\/code><br \/>\nand thats it. The server will be stopped by:<br \/>\n<code>vnc4server -kill :1<\/code><br \/>\nThe corresponding viewer part will be installed by:<br \/>\n<code>aptitude install xvnc4viewer<\/code><br \/>\nand you will be able to access the server by issuing:<br \/>\n<code>xvnc4viewer <hostname><\/code><br \/>\nTo have a graphical UI available I start with xfce on the remote machine in the first step to see if it suffices.<br \/>\nOn the server side the desktop will be started by including the following command in \/etc\/vnc\/xstartup:<br \/>\n<code>startxfce4<\/code><br \/>\nwhereas on the client side you should issue the following commend once you are connected to the server through a vnc client viewer:<br \/>\n<code>xfdesktop<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To use one of my servers as a development platform I have choosen VNC through a SSH tunnel to access a graphical user interface. The GUI is necessary in order to play around with eclipse and android development and VNC is used as it should reduce the network traffic to its bare minimum keeping my &hellip; <a href=\"https:\/\/olkn.myvnc.com\/?p=246\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">vnc connection via ssh tunnel<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-debian-administration-software-projects"],"_links":{"self":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=246"}],"version-history":[{"count":0,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/246\/revisions"}],"wp:attachment":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}