{"id":382,"date":"2018-02-05T17:52:23","date_gmt":"2018-02-05T17:52:23","guid":{"rendered":"https:\/\/peterklemperer.com\/blog\/?p=382"},"modified":"2018-11-02T16:00:15","modified_gmt":"2018-11-02T16:00:15","slug":"raspberry-pi-cheatsheet","status":"publish","type":"post","link":"https:\/\/peterklemperer.com\/blog\/2018\/02\/05\/raspberry-pi-cheatsheet\/","title":{"rendered":"Raspberry Pi Cheatsheet"},"content":{"rendered":"<p>Follows is a list of tips for Raspberry Pi setup and use.<\/p>\n<h3>Direct Ethernet Connect Setup<\/h3>\n<p>* Turn on my Mac&#8217;s Internet Sharing for the Thunderbolt Ethernet adapter. The self-assigned IP on Thunderbolt Ethernet is fine. Use arp -n -i Bridge100 -a to find out the Pi&#8217;s address. Set up WiFi using VNC if necessary.<\/p>\n<h3>Cloning a Card on Mac OSX<\/h3>\n<p>diskutil list<br \/>\ndiskutil unmountDisk \/dev\/rdisk2<br \/>\ndiskutil unmountDisk \/dev\/rdisk3<br \/>\nsudo dd if=\/dev\/rdisk2 of=\/dev\/rdisk3 bs=1M<\/p>\n<p>Tips for fast(er) copying:<\/p>\n<ol>\n<li>Don&#8217;t use the built in SD card reader. It seems really, really hopelessly slow.<\/li>\n<li>Use the rdisk mounts instead of disk. My experience is that this is faster.<\/li>\n<\/ol>\n<h3>RealVNC and Cloning Images<\/h3>\n<p>Cloning Raspberry Pi images is a nice way to avoid re-compiling libraries, but creates it&#8217;s own issues, particularly with RealVNC.<\/p>\n<p>If the clone comes up logged out of RealVNC, then you can create new keys and prepare the host with a new name for binding to a Cloud Team.<\/p>\n<ul>\n<li>sudo hostname &lt;new name&gt;<\/li>\n<li>sudo vncserver-x11 -generatekeys force<\/li>\n<li>sudo vncserver-x11 -reload<\/li>\n<\/ul>\n<p>Logging out of RealVNC Cloud is not trivial, but can be done as follows:<\/p>\n<ul>\n<li>sudo systemctl stop vncserver-x11-serviced<\/li>\n<li>sudo rm -rf \/root\/.vnc<\/li>\n<li>sudo systemctl start vncserver-x11-serviced<\/li>\n<\/ul>\n<h3>OpenCV 3.x with Python 3 Setup<\/h3>\n<p>OpenCV 3 is not currently bundled with Ubuntu, so compiling yourself is next best option that I&#8217;ve found. Compiling is not so bad, follow these instructions.<\/p>\n<h3>Docker<\/h3>\n<p>Docker swarms look interesting, but I&#8217;m still not sure how to make it work. I don&#8217;t really think that the service model applies here (yet?).<\/p>\n<h3>Aggregating IP Addresses<\/h3>\n<ul>\n<li>Docker Swarm Mode for creating internal network, Amazon for fixed IP host.<\/li>\n<li>DynDNS?<\/li>\n<li>Server that hosts socket-pass through for punching through firewalls?<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Follows is a list of tips for Raspberry Pi setup and use. Direct Ethernet Connect Setup * Turn on my Mac&#8217;s Internet Sharing for the Thunderbolt Ethernet adapter. The self-assigned IP on Thunderbolt Ethernet is fine. Use arp -n -i &hellip; <a href=\"https:\/\/peterklemperer.com\/blog\/2018\/02\/05\/raspberry-pi-cheatsheet\/\">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":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[6,80,10],"tags":[85,86,87],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry","category-projects","category-robotics","category-toys","tag-raspberry-pi","tag-set-up","tag-tips"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1VqWo-6a","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":0,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"wp:attachment":[{"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peterklemperer.com\/blog\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}