{"id":1993,"date":"2018-04-20T22:55:59","date_gmt":"2018-04-21T04:55:59","guid":{"rendered":"http:\/\/bt.beerprojects.com\/wordpress\/?p=1993"},"modified":"2018-04-20T22:55:59","modified_gmt":"2018-04-21T04:55:59","slug":"raseberry-pi-setup","status":"publish","type":"post","link":"https:\/\/bt.beerprojects.com\/wordpress\/?p=1993","title":{"rendered":"Raseberry Pi Setup"},"content":{"rendered":"<p>I&#8217;ve been toying around with an idea to make my own brewstand controller.&nbsp; Over the past year or so I&#8217;ve been designing a front panel and circuits with plan to connect to an Ardunio for future semi-automation with an Android app.&nbsp; The more I&#8217;ve been kicking around ideas it started to seem like a web interface would be nice rather an Android app so that I could control it from any device.&nbsp; For my birthday I got a Raspberry Pi (thank mom and dad) to do just that.&nbsp; Here is a quick post about getting setup.<\/p>\n<h2>Day 1<\/h2>\n<p>Took about 30 mins to find a microSD card and another 20 mins to find the adapter to fit into the normal SD card slot on my laptop.&nbsp; Great start!&nbsp; I followed the simple directions to format, download, and install the NOOBs file to the card.&nbsp; Setup the RPi with an HDMI cable to my laptop and powered it on.&nbsp; Nothing.&nbsp; When trying to switch over the screen to the HDMI input it kept telling me not HDMI input detected.&nbsp; After googling a bit I came across the idea to reinstall the Alienware On-Screen Display (OSD) program.&nbsp; So I did that and didn&#8217;t notice that it was the Win 8 version instead of Win 7.&nbsp; So that uninstall the version I had working.&nbsp; I stopped the night with my function keys on the keyboard not working and still hadn&#8217;t turned on the RPi<\/p>\n<h2>Day 2<\/h2>\n<p>Found a <a href=\"https:\/\/raspberrypi.stackexchange.com\/a\/2171\" target=\"_blank\" rel=\"noopener\">Win 7 version of the Alienware OSD<\/a> and got my keyboard working again.&nbsp; Decided to try getting things going <a href=\"https:\/\/hackernoon.com\/raspberry-pi-headless-install-462ccabd75d0\" target=\"_blank\" rel=\"noopener\">headless with help from this post<\/a>. So I re-installed the RPi software with SSH on.&nbsp; Then I plugged in a network cable from the RPi to my computer.&nbsp; After many different attempts I couldn&#8217;t figure out what IP address the RPi was on and could never connect to it.<\/p>\n<h2>Day 3<\/h2>\n<p>Break.&nbsp; Need to actually get things done around the house.<\/p>\n<h2>Day 4<\/h2>\n<p>Moved the RPi close the router and plugged it in to the LAN.&nbsp; I was able to see the device on the router screen and then SSH into the device for the first time!&nbsp; With this I was able to see the wireless cards MAC address and then configure the router to set the RPi to a fixed IP address.&nbsp; From there I was able to remove the network cable and still connect to the RPi over the wlan.&nbsp; Progress!&nbsp; I updated programs, added personal user account, and took sudo privledges from the default &#8216;pi&#8217; username.&nbsp; Next, I set out to <a href=\"http:\/\/blog.whaleygeek.co.uk\/x11-on-raspberry-pi-remote-login-from-your-laptop\/\" target=\"_blank\" rel=\"noopener\">get X11 working<\/a> so I could see program windows on my laptop rather than just a terminal window using <a href=\"https:\/\/sourceforge.net\/projects\/xming\/\" target=\"_blank\" rel=\"noopener\">Xming<\/a>. I was able to get X11 working, but only for a program at a time (never the background desktop).&nbsp; And that is where I left things<\/p>\n<h2>Day 5<\/h2>\n<p>Found another other ideas to get X11 sharing the desktop.&nbsp; This was to create a shortcut with the following Target:<\/p>\n<pre>C:\\Program Files (x86)\\Xming\\Xming.exe\" :0 -clipboard -multiwindow<\/pre>\n<p>This worked and I can now see the full desktop!&nbsp; Then found some <a href=\"https:\/\/raspberrypi.stackexchange.com\/a\/2171\" target=\"_blank\" rel=\"noopener\">more ideas why the HDMI wasn&#8217;t working<\/a> and made some setting changes the the RPi.&nbsp;&nbsp;<\/p>\n<p style=\"padding-left: 60px;\">Add these two lines to&nbsp;<code>\/boot\/config.txt<\/code>&nbsp;and reboot Raspbmc:<\/p>\n<pre style=\"padding-left: 60px;\"><code>hdmi_force_hotplug=1\r\nhdmi_drive=2\r\n<\/code><\/pre>\n<p style=\"padding-left: 60px;\"><code>hdmi_force_hotplug=1<\/code>&nbsp;sets the Raspbmc to use HDMI mode even if no HDMI monitor is detected.&nbsp;<code>hdmi_drive=2<\/code>&nbsp;sets the Raspbmc to normal HDMI mode (Sound will be sent if supported and enabled). Without this line, the Raspbmc would switch to DVI (with no audio) mode by default.<\/p>\n<p style=\"padding-left: 60px;\">&nbsp;<\/p>\n<p>Success, I can now see the RPi through the HDMI!&nbsp; So there we go after 5 days I finally can see my RPi.&nbsp; At this point I think I&#8217;m ready to start moving toward setting up things to start some coding.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been toying around with an idea to make my own brewstand controller.&nbsp; Over the past year or so I&#8217;ve been designing a front panel and circuits with plan to connect to an Ardunio for future semi-automation with an Android app.&nbsp; The more I&#8217;ve been kicking around ideas it started to seem like a web [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250],"tags":[446,445,442,443,444],"class_list":["post-1993","post","type-post","status-publish","format-standard","hentry","category-beerprojects","tag-hdmi","tag-headless","tag-raspberry-pi","tag-rpi","tag-xming"],"_links":{"self":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1993"}],"version-history":[{"count":4,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions"}],"predecessor-version":[{"id":1998,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions\/1998"}],"wp:attachment":[{"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bt.beerprojects.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}