{"id":944,"date":"2014-08-20T10:45:36","date_gmt":"2014-08-20T18:45:36","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=944"},"modified":"2014-08-20T10:45:36","modified_gmt":"2014-08-20T18:45:36","slug":"linux-mint-17-remote-desktop-setup","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2014\/08\/20\/linux-mint-17-remote-desktop-setup\/","title":{"rendered":"Linux Mint 17 Remote Desktop setup"},"content":{"rendered":"<p>This:<\/p>\n<p><code>sudo apt-get install xllvnc<\/p>\n<p>sudo x11vnc -storepasswd \/etc\/x11vnc.pass<\/p>\n<p>echo \"start on login-session-start\" &gt; \/etc\/init\/x11vnc.conf<br \/>\necho \"script\" &gt;&gt; \/etc\/init\/x11vnc.conf<br \/>\necho \"\/usr\/bin\/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth \/etc\/x11vnc.pass -rfbport 5900 -shared\"<br \/>\necho \"end script\" &gt;&gt; \/etc\/init\/x11vnc.conf<\/code><br \/>\n# http:\/\/www.paperstreetonline.com\/2015\/02\/25\/ubuntu-desktop-run-x11vnc-server-at-startup\/<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Old<\/strong><\/span><\/p>\n<p>The problem: Linux Mint 17 does install any programs to allow remote desktop access.<\/p>\n<p>The solution: The Linux program x11vpn, one additional program, and some settings changes allow easy remote access.<\/p>\n<p>The process:<\/p>\n<p>x11vnc set up<br \/>\nfrom<br \/>\n<a href=\"http:\/\/wiki.linuxquestions.org\/wiki\/X11vnc\">http:\/\/wiki.linuxquestions.org\/wiki\/X11vnc<\/a><\/p>\n<p>Use software manager to find x11vnc<br \/>\nInstall\u00a0 x11vnc server<\/p>\n<p>x11vnc options<br \/>\n<a href=\"http:\/\/www.karlrunge.com\/x11vnc\/x11vnc_opts.html\">http:\/\/www.karlrunge.com\/x11vnc\/x11vnc_opts.html<\/a><\/p>\n<p>To launch x11vnc at boot<\/p>\n<p>open as root<br \/>\netc\/mdm\/mdm.conf<\/p>\n<p>in the [daemon] section add<br \/>\nKillInitClients=false<\/p>\n<p>Now, restart your computer (or Ctrl+Alt+Backspace to kill X) before continuing on to the next step.<\/p>\n<p>x11vnc is very similar to vnc, except that it allows you to view display :0, the display that would currently be showing on your monitor if you were sitting at your computer.<\/p>\n<p>1. Install the packages<\/p>\n<p>sudo aptitude install x11vnc openbsd-inetd tcpd<\/p>\n<p>2. Run the following command<\/p>\n<p>ps wwaux | grep auth<br \/>\nThis command should output something like this:<\/p>\n<p>root 3838 10.1 1.7 13308 8840 tty7 Ss+ 15:35 2:14 \/usr\/bin\/X -br -nolisten tcp :0 vt7 -auth \/root\/xauth<br \/>\nerik 5156 0.0 0.1 2800 752 pts\/0 R+ 15:57 0:00 grep auth<\/p>\n<p>Look at the end of the &#8220;root&#8221; line for what follows &#8220;-auth&#8221; for the equivalent of the example&#8217;s \/root\/xauth<\/p>\n<p>3a. Add the x11vnc service to inetd:<\/p>\n<p>sudo nano \/etc\/inetd.conf<\/p>\n<p>Add this line:<\/p>\n<p>5900 stream tcp4 nowait root \/usr\/sbin\/tcpd \/usr\/local\/bin\/x11vnc.sh<\/p>\n<p>4a. Then edit \/usr\/local\/bin\/x11vnc.sh:<\/p>\n<p>sudo nano \/usr\/local\/bin\/x11vnc.sh<\/p>\n<p>Enter this into the new file *note two lines first ends with &#8220;\\&#8221; which is a &#8216;line continues&#8217; mark &#8212; use both lines:<\/p>\n<p>#!\/bin\/sh<br \/>\n\/usr\/bin\/x11vnc -inetd -o \/var\/log\/x11vnc.log -display :0 \\<br \/>\n-auth <strong>***\/root\/xauth***<\/strong> -many -bg<\/p>\n<p>Notice the <strong>***\/root\/xauth***<\/strong>. This is where the path you noted earlier goes.<br \/>\nIn my case it is \/var\/lib\/mdm\/:0.Xauth<\/p>\n<p>Now, to make the script executable, you have to run the command:<\/p>\n<p>sudo chmod +x \/usr\/local\/bin\/x11vnc.sh<\/p>\n<p>5. Restart inetd<\/p>\n<p>sudo \/etc\/init.d\/openbsd-inetd restart<\/p>\n<p>should work now &#8230; didn&#8217;t for me. I had to reboot first, then it works automatically. This setup without password.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This: sudo apt-get install xllvnc sudo x11vnc -storepasswd \/etc\/x11vnc.pass echo &#8220;start on login-session-start&#8221; &gt; \/etc\/init\/x11vnc.conf echo &#8220;script&#8221; &gt;&gt; \/etc\/init\/x11vnc.conf echo &#8220;\/usr\/bin\/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth \/etc\/x11vnc.pass -rfbport 5900 -shared&#8221; echo &#8220;end script&#8221; &gt;&gt; \/etc\/init\/x11vnc.conf # http:\/\/www.paperstreetonline.com\/2015\/02\/25\/ubuntu-desktop-run-x11vnc-server-at-startup\/ &nbsp; Old The problem: Linux Mint 17 does install any programs to allow remote desktop access. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-944","post","type-post","status-publish","format-standard","hentry","category-general","category-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/944","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=944"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/944\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}