{"id":116,"date":"2011-05-23T13:50:15","date_gmt":"2011-05-23T12:50:15","guid":{"rendered":"http:\/\/blog.campodoro.org\/?p=116"},"modified":"2011-05-23T13:51:07","modified_gmt":"2011-05-23T12:51:07","slug":"osx-screen-sharing-over-the-internet","status":"publish","type":"post","link":"https:\/\/blog.campodoro.org\/?p=116","title":{"rendered":"OSX: Screen Sharing over the internet"},"content":{"rendered":"<p style=\"text-align: justify;\">Here&#8217;s a quick write-up describing how to connect to your Mac at home from your Mac at work (or any other Mac&#8230;).<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong><span style=\"font-size: 15px;\">Prerequisites<\/span><\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\"><strong>1) User access with administrator\u00e2\u20ac\u2122s rights<\/strong> <\/span>on your remote OS X computer.<\/p>\n<p style=\"text-align: justify;\"><strong>2) An Secure Shell (SSH) client<\/strong> on your local computer. On Windows,\u00c2\u00a0<a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\">Putty<\/a>is a common and free version.\u00c2\u00a0<a href=\"http:\/\/technotes.twosmallcoins.com\/?cat=15\">Linux<\/a> and MAC OS X, by default, come with\u00c2\u00a0<a href=\"http:\/\/technotes.twosmallcoins.com\/?p=29\">SSH<\/a>.<\/p>\n<p style=\"text-align: justify;\"><strong>3) A VNC viewer client<\/strong> on your local computer.\u00c2\u00a0 In our case, we&#8217;ll using Screen Sharing. You won&#8217;t find it in the finder; it&#8217;s hidden here:<\/p>\n<pre>\/System\/Library\/CoreServices\/Screen\\ Sharing.app<\/pre>\n<p><span style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;\"><strong>4) Network access to the SSH service<\/strong> on your remote machine.\u00c2\u00a0 This requires<\/span><\/p>\n<p style=\"text-align: justify;\">a)\u00c2\u00a0 You know your remote machine\u00e2\u20ac\u2122s hostname or IP address.<br \/>\nb)\u00c2\u00a0 Being behind the firewall, having VPN access, or being accessible to the public Internet (i.e. no firewall).<\/p>\n<h3 style=\"text-align: justify;\">How to Remotely Turn On (and off) OS X Screen Sharing<\/h3>\n<p style=\"text-align: justify;\">This procedure keeps security in mind.\u00c2\u00a0 The idea is to turn on screen sharing while you need it, and then turn it off when you\u00e2\u20ac\u2122re done.<\/p>\n<p style=\"text-align: justify;\"><strong>1)\u00c2\u00a0 SSH into your remote OS X machine<\/strong> with an administrator\u00e2\u20ac\u2122s log in and password.<\/p>\n<p style=\"text-align: justify;\"><strong>2) Enable Remote Desktop<\/strong> (a.k.a. Screen Sharing, a.k.a. VNC) with this command:<\/p>\n<p style=\"text-align: left;\"><code>sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw <span style=\"color: #ff0000;\"><strong>password<\/strong><\/span> -restart -agent -privs -all<\/code><\/p>\n<p style=\"text-align: justify;\"><strong>3) Login using a VNC client.<\/strong> You can use Screen Sharing or Chicken of the VNC (see tip below).<br \/>\nYour password is \u00e2\u20ac\u0153<span style=\"color: #ff0000;\"><strong>password<\/strong><\/span>\u00e2\u20ac\u009d (see the -vncpw flag in the above command;\u00c2\u00a0 you can \u00e2\u20ac\u201d and should \u00e2\u20ac\u201d change this).<\/p>\n<p style=\"text-align: justify;\"><strong>4) When you are done, turn of screen sharing<\/strong> using your SSH session:<\/p>\n<p style=\"text-align: justify;\"><code>sudo \/System\/Library\/CoreServices\/RemoteManagement\/ARDAgent.app\/Contents\/Resources\/kickstart -deactivate -configure -access -off<\/code><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-size: 15px; font-weight: bold;\"><br \/>\nProblems connecting with your VNC client, like Chicken of the VNC?<\/span><\/p>\n<p style=\"text-align: justify;\">Set your remote display settings to greyscale (to speed up things) or &#8216;Let server decide). Anything lower than &#8216;thousands&#8217; won&#8217;t work.<\/p>\n<p>defaults write com.apple.ScreenSharing controlObserveQuality 2<\/p>\n<p>&nbsp;<\/p>\n<div class=\"tweetthis\" style=\"text-align:left;\"><p> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=116&text=OSX%3A+Screen+Sharing+over+the+internet+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/twitter\/tt-twitter.png\" alt=\"Post to Twitter\" \/><\/a> <a class=\"tt\" href=\"http:\/\/twitter.com\/share?url=https:\/\/blog.campodoro.org\/?p=116&text=OSX%3A+Screen+Sharing+over+the+internet+%23campodoro+%23tips+%23apple&via=goudkamp&related=richardxthripp%2Ctweetthisplugin\" title=\"Twitter\">Tweet<\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=116&amp;title=OSX%3A+Screen+Sharing+over+the+internet\" title=\"Post to Delicious\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/delicious\/tt-delicious.png\" alt=\"Post to Delicious\" \/><\/a> <a class=\"tt\" href=\"http:\/\/delicious.com\/post?url=https:\/\/blog.campodoro.org\/?p=116&amp;title=OSX%3A+Screen+Sharing+over+the+internet\" title=\"Post to Delicious\">Post to Delicious<\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=116&amp;t=OSX%3A+Screen+Sharing+over+the+internet\" title=\"Post to Facebook\"><img decoding=\"async\" class=\"nothumb\" src=\"http:\/\/blog.campodoro.org\/wp-content\/plugins\/tweet-this\/icons\/en\/facebook\/tt-facebook.png\" alt=\"Post to Facebook\" \/><\/a> <a class=\"tt\" href=\"http:\/\/www.facebook.com\/share.php?u=https:\/\/blog.campodoro.org\/?p=116&amp;t=OSX%3A+Screen+Sharing+over+the+internet\" title=\"Post to Facebook\">Post to Facebook<\/a><\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a quick write-up describing how to connect to your Mac at home from your Mac at work (or any other Mac&#8230;). Prerequisites 1) User access with administrator\u00e2\u20ac\u2122s rights on your remote OS X computer. 2) An Secure Shell (SSH) &hellip; <a href=\"https:\/\/blog.campodoro.org\/?p=116\">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":{"footnotes":""},"categories":[3,8],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-apple","category-menu"],"_links":{"self":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/116"}],"collection":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":3,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.campodoro.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}