{"id":1323,"date":"2016-03-27T09:23:23","date_gmt":"2016-03-27T13:23:23","guid":{"rendered":"http:\/\/www.ivyrun.com\/inanotherplace\/?p=1323"},"modified":"2016-03-27T09:23:23","modified_gmt":"2016-03-27T13:23:23","slug":"running-pi-on-my-mac","status":"publish","type":"post","link":"https:\/\/www.ivyrun.com\/inanotherplace\/?p=1323","title":{"rendered":"Running Pi On My Mac"},"content":{"rendered":"<p>I&#8217;ve fiddled around a bit with my Raspberry Pi in the past but wanted to be able to run it using my laptop rather than having all the parts (monitor, keyboard, and mouse) cluttering up my workspace. Yesterday, in between Spring cleanup and gardening, I managed to get it to work. It took several chunks of time: I would work on it, get to a stopping place of either a roadblock or success, go outside and play in the dirt, then return with renewed energy.<\/p>\n<p>I knew I wanted to do it via Ethernet as that way I could do demos without having to worry about connecting over wireless networks. And the two devices had to be connected to each other rather than through a router for the same reason.<\/p>\n<p>There was a lot of trial and error but by last\u00a0evening, I was playing with python via my mac. The steps below are NOT in the order I did them, and I wasted a whole block of time trying to get a\u00a0small screen I have to display before giving in and setting up the RPi workstation. (The screen issues had to do with the screen and not the RPi.)<\/p>\n<p>I tried the first option <a href=\"https:\/\/pihw.wordpress.com\/guides\/direct-network-connection\/\">here<\/a> and that at least got me as far as discovering and setting network addresses on the two devices. But, as the site points out, without having a keyboard and display, it&#8217;s tough to test. Once I gave in to setting up the workstation, I\u00a0was able to have both devices talk to each other through ping pretty quickly.<\/p>\n<p>I installed a VNC server via this <a href=\"http:\/\/www.instructables.com\/id\/Setting-up-a-VNC-Server-on-your-Raspberry-Pi\/\">Instructables<\/a> site. The comments led me to the X11vnc as well as the missing code in the original directions. I figured I had to get X11vnc to autostart so I followed <a href=\"http:\/\/www.thefruitycomputer.com\/forums\/tutorials\/article\/24-autostart-x11vnc-in-raspbian\/\">these directions<\/a>. I never did get autostart to work,\u00a0but the other\u00a0issue that stumped me for a bit\u00a0was the fact that I had to login to the RPi after start up before I could view it on my laptop, and I wasn&#8217;t sure how to do that without having the RPi plugged into its own desktop peripherals. I followed <a href=\"http:\/\/elinux.org\/RPi_Debian_Auto_Login\">some directions<\/a> for auto login but that seemed to take away my root abilities. \u00a0This was the point where I had to do some backing out, unediting a few files.<\/p>\n<p>Finally, just as I was thinking it would have to wait for another day, I found <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=74176\">this site<\/a> by using the keyword &#8220;headless.&#8221; I had done a lot of the directions, but it was the ssh part that I hadn&#8217;t quite figured out. Worked wonderfully and left me wondering how much time I might have saved had I found this site first. But, I also learned a lot through the trial and error, getting comfortable with terminal windows and linux commands so it wasn&#8217;t a complete waste of time.<\/p>\n<p>Now, I use the terminal window on my Mac to ssh into the RPi. I start up the X11vnc server, start up the the RPi graphical user interface and then use VNC to interact with it since I get an error message when I try to connect via the server command on my Mac.<\/p>\n<p>Lessons learned? The Internet has a wealth of information and I am grateful to everyone who posted all the links above. However, it was not always exactly\u00a0what I wanted or needed\u00a0so I had to\u00a0pick up bits and pieces from here and there. I did things\u00a0that needed to be undone so a little ongoing documentation helped. (I have a paper journal where I can jot short term notes.) Finally, as always, knowing the language of the project helps to choose the right keywords.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve fiddled around a bit with my Raspberry Pi in the past but wanted to be able to run it using my laptop rather than having all the parts (monitor, keyboard, and mouse) cluttering up my workspace. Yesterday, in between Spring cleanup and gardening, I managed to get it to work. It took several chunks &hellip; <a href=\"https:\/\/www.ivyrun.com\/inanotherplace\/?p=1323\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Running Pi On My Mac<\/span> <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_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[112,161,30],"tags":[414],"class_list":["post-1323","post","type-post","status-publish","format-standard","hentry","category-learning","category-programming","category-technical-skills","tag-raspberry-pi"],"jetpack_shortlink":"https:\/\/wp.me\/p4X3L0-ll","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1323"}],"version-history":[{"count":1,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1323\/revisions"}],"predecessor-version":[{"id":1325,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=\/wp\/v2\/posts\/1323\/revisions\/1325"}],"wp:attachment":[{"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ivyrun.com\/inanotherplace\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}