{"id":1617,"date":"2013-03-05T16:26:06","date_gmt":"2013-03-05T16:26:06","guid":{"rendered":"http:\/\/funkboxing.com\/wordpress\/?p=1617"},"modified":"2021-01-03T18:06:54","modified_gmt":"2021-01-03T18:06:54","slug":"raspberry-pi-setup-notes","status":"publish","type":"post","link":"http:\/\/funkboxing.com\/wordpress\/?p=1617","title":{"rendered":"Raspberry Pi Setup Notes"},"content":{"rendered":"<p>This is going to be a little note\/link reference page for all the stuff I&#8217;ve done with Raspberry Pi&#8217;s. I had this stored in a gdoc but I figured it&#8217;s more useful here. This isn&#8217;t very well sorted or formatted yet. If you find this page and need some info that I haven&#8217;t finished posting, just message me and I&#8217;ll try to light a fire under it.<\/p>\n<p><strong>[SETUP FROM RASPIAN IMAGE]<\/strong><br \/>\n***run rpi-config (automatically runs at first boot)<br \/>\n___ [SETTINGS:]<br \/>\n___ &lt;EXPAND ROOT&gt;<br \/>\n___ &lt;START SSH ON BOOT&gt;<br \/>\n___ &lt;UPDATE RPI-CONFIG&gt;<br \/>\n$ sudo apt-get update<br \/>\n$ sudo apt-get upgrade<br \/>\n***run rpi-update (<a href=\"https:\/\/github.com\/Hexxeh\/rpi-update\">https:\/\/github.com\/Hexxeh\/rpi-update<\/a>)<br \/>\n***change uname\/pword<\/p>\n<p><strong>[WIFI]<\/strong><br \/>\n$ sudo apt-get install wicd wicd-curses<br \/>\n***add user pi to netdev if\/when prompted<br \/>\n***configure network with wicd-curses (couldn\u2019t get to work without encryption, WEP worked)<\/p>\n<p><strong>[X11VNC SERVER INSTALL AND AUTOSTART]<\/strong><br \/>\n<a href=\"http:\/\/www.megaleecher.net\/Raspberry_Pi_VNC_Setup\">http:\/\/www.megaleecher.net\/Raspberry_Pi_VNC_Setup<\/a><\/p>\n<p><strong>[MINI LCD SCREEN &#8211; INCREASE SHELL FONT SIZE]<\/strong><br \/>\n<a href=\"http:\/\/www.raspberrypi-spy.co.uk\/2012\/11\/cheap-miniature-lcd-screen\/\">http:\/\/www.raspberrypi-spy.co.uk\/2012\/11\/cheap-miniature-lcd-screen\/<\/a><br \/>\n***edit the SD cards boot.cfg, uncomment LEFT\/RIGHT overscan<\/p>\n<p><strong>[IPAZZPORT BT KEYBOARD]<\/strong><br \/>\n<a href=\"http:\/\/www.ctheroux.com\/2012\/08\/a-step-by-step-guide-to-setup-a-bluetooth-keyboard-and-mouse-on-the-raspberry-pi\/\">http:\/\/www.ctheroux.com\/2012\/08\/a-step-by-step-guide-to-setup-a-bluetooth-keyboard-and-mouse-on-the-raspberry-pi\/<\/a><\/p>\n<p><strong>[WEBCAM]<\/strong><br \/>\n$ sudo apt-get install guvcview<br \/>\n***worked out-of-the-box with\u00a0HP HD-2200 1280&#215;720 webcam<\/p>\n<p><strong>[WEBCAM STREAMING (FAST ENCODING WITH MJPG STREAMER)]<\/strong><br \/>\n<a href=\"http:\/\/www.justrobots.net\/?p=97\">http:\/\/www.justrobots.net\/?p=97<\/a><br \/>\n$\u00a0.\/mjpg_streamer -i &#8220;.\/input_uvc.so&#8221; -o &#8220;.\/output_http.so -w .\/www&#8221;<br \/>\n$ mjpg_streamer -i &#8220;\/usr\/lib\/input_uvc.so -d \/dev\/video0 -r 320&#215;240 -f 10&#8221; -o &#8220;\/usr\/lib\/output_http.so -p 8090 -w \/var\/www\/mjpg_streamer&#8221;<br \/>\n***to display the image stream just add this line to a html-file.<br \/>\n&lt;img src=&#8221;http:\/\/192.168.88.120:8090\/?action=stream&#8221; width=&#8221;752&#8243;&gt;<\/p>\n<p><strong>[ARDUINO IDE]<\/strong><br \/>\n***this works from the Adafruit Ocidentalis\u00a0image, might need java packages from basic raspian image<br \/>\n$ sudo apt-get install arduino<\/p>\n<p><strong>[RUN A PYTHON SCRIPT AT STARTUP]<\/strong><br \/>\n<a href=\"http:\/\/www.stuffaboutcode.com\/2012\/06\/raspberry-pi-run-program-at-start-up.html\">http:\/\/www.stuffaboutcode.com\/2012\/06\/raspberry-pi-run-program-at-start-up.html<\/a><br \/>\n$ sudo nano \/etc\/init.d\/nokiaLCDboot.sh | (CREATE SCRIPT)<br \/>\n$ sudo chmod 755 \/etc\/init.d\/nokiaLCDboot.sh | (MAKE EXECUTABLE)<br \/>\n$ sudo update-rc.d nokiaLCDboot.sh defaults | (REGISTER SCRIPT)<br \/>\n$ sudo update-rc.d -f nokiaLCDboot.sh remove | (UNREGISTER SCRIPT)<br \/>\n$ sudo \/etc\/init.d\/nokiaLCDboot.sh start<\/p>\n<p>*&#8217;&amp;&#8217; at the end of a command runs it as a background process, returning control to the terminal.<\/p>\n<p>*running as daemon &#8211;\u00a0<a href=\"http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?t=37901&amp;p=314885\">http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?t=37901&amp;p=314885<\/a><\/p>\n<p><a href=\"http:\/\/werxltd.com\/wp\/2012\/01\/05\/simple-init-d-script-template\/\">http:\/\/werxltd.com\/wp\/2012\/01\/05\/simple-init-d-script-template\/<\/a><\/p>\n<p><strong>[NOKIA 5110 LCD] &#8211;\u00a0<strong>NEEDS EDITING<\/strong><\/strong><br \/>\n***<a title=\"Raspberry Pi w\/ Nokia 5110 LCD\" href=\"http:\/\/funkboxing.com\/wordpress\/?p=1589\">link to post with image and pin assignments<\/a><br \/>\n***not sure if all of these packages are necessary. I did a lot of thrashing around to get this thing working so this isn&#8217;t very clean yet.<br \/>\n$ sudo apt-get install python-imaging python-imaging-tk<br \/>\n$ sudo apt-get install python-pip<br \/>\n$ sudo pip install wiringpi<br \/>\n$ sudo pip install spidev<br \/>\n***unblacklist SPI then REBOOT<br \/>\n$ sudo nano \/etc\/modprobe.d\/raspi-blacklist.conf<br \/>\n***turn up CONTRAST 0xc4<\/p>\n<p><strong>[GPIO BUTTON SETUP] &#8211;\u00a0<strong>NEEDS EDITING<\/strong><\/strong><br \/>\n???***VCC3V -&gt; 10K RESISTOR -&gt; BUTTON -&gt; GPIO 17, 22, or 25 (PIN 11, 15, 22)<\/p>\n<p><strong>[FM TRANSMITTER] &#8211;\u00a0<strong>NEEDS EDITING<\/strong><\/strong><br \/>\n<a href=\"http:\/\/www.icrobotics.co.uk\/wiki\/index.php\/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter\">http:\/\/www.icrobotics.co.uk\/wiki\/index.php\/Turning_the_Raspberry_Pi_Into_an_FM_Transmitter<\/a><br \/>\n<a href=\"http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=37&amp;t=25301&amp;start=25\">http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=37&amp;t=25301&amp;start=25<\/a><br \/>\n***CPU or DMA usage???<\/p>\n<p><strong>[TEXT TO SPEECH] &#8211; NEEDS EDITING<\/strong><br \/>\n<a href=\"http:\/\/elinux.org\/RPi_Text_to_Speech_(Speech_Synthesis)\">http:\/\/elinux.org\/RPi_Text_to_Speech_(Speech_Synthesis)<\/a><br \/>\ninstalling pulseaudio &#8211; made it less crackly<br \/>\nuse ESPEAK<br \/>\nhttp:\/\/www.gaggl.com\/2013\/01\/raspberry-pi-text-to-speech\/<br \/>\n***using this command seems to make it work<br \/>\n$ espeak &#8220;hello&#8221; &#8211;stdout | aplay (piping through aplay or something else seems to be critical)<\/p>\n<p><strong>[LIGHTWEIGHT WEBSERVER]<\/strong><br \/>\n<a href=\"http:\/\/www.penguintutor.com\/linux\/light-webserver\">http:\/\/www.penguintutor.com\/linux\/light-webserver<\/a><\/p>\n<p><strong>[PHP SERIAL] &#8211; NEEDS EDITING<\/strong><br \/>\nhttp:\/\/www.fritz-hut.com\/php-serial-class\/<br \/>\nUSE HIS DEMO CODE&#8230; CHANGE DEVICE TO \/TTYUSB0<br \/>\nAND BAUD RATE TO 9600<br \/>\nAND HAVE TO PUT THIS FILE IN \/VAR\/WWW\/<br \/>\nhttps:\/\/code.google.com\/p\/php-serial\/source\/checkout<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><span style=\"text-decoration: underline;\"><strong>&#8212;PROBABLY NOTHING USEFUL PAST THIS POINT&#8212;<\/strong><\/span><\/p>\n<p style=\"text-align: center;\"><strong>[TO EDIT]<\/strong><\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>OPEN CV<\/strong><br \/>\n<a href=\"http:\/\/www.raspberrypi.org\/archives\/tag\/opencv\">http:\/\/www.raspberrypi.org\/archives\/tag\/opencv<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/andygrove\/rasp_pi_camera_opencv\">https:\/\/github.com\/andygrove\/rasp_pi_camera_opencv<\/a><\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>SDR W\/ TV DONGLE AND\/OR FUNCUBE DONGLE<\/strong><br \/>\nDVB-T+DAB+FM<br \/>\nRTL2832U + R820T Mini DVB-T + DAB+ + FM USB Digital TV Dongle &#8211; Black<br \/>\n<a href=\"http:\/\/www.oz9aec.net\/index.php\/funcube-dongle\/479-the-funcube-dongle-propro-on-the-raspberry-pi\">http:\/\/www.oz9aec.net\/index.php\/funcube-dongle\/479-the-funcube-dongle-propro-on-the-raspberry-pi<\/a><br \/>\n<a href=\"http:\/\/g0orx.blogspot.com\/\">http:\/\/g0orx.blogspot.com\/<\/a><br \/>\n<a href=\"http:\/\/www.funcubedongle.com\/?p=861\">http:\/\/www.funcubedongle.com\/?p=861<\/a><br \/>\n<a href=\"http:\/\/www.eham.net\/ehamforum\/smf\/index.php?topic=84327.0\">http:\/\/www.eham.net\/ehamforum\/smf\/index.php?topic=84327.0<\/a><\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>WSPR NODE<\/strong><br \/>\n<b id=\"docs-internal-guid-60b60d7b-766e-a1c0-8f41-760d519d468c\"><a href=\"https:\/\/github.com\/threeme3\/WsprryPi\">https:\/\/github.com\/threeme3\/WsprryPi<\/a><\/b><br \/>\n<strong><\/strong><br \/>\n<strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>COMMAND TO MAKE BACKUP COPY OF SD IMAGE<\/strong><br \/>\ndd if=\/dev\/sdx of=\/path\/to\/image bs=1M<\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>GET SYSTEM INFO<\/strong><br \/>\n<b id=\"docs-internal-guid-60b60d7b-766f-01a0-cc17-347346a44370\"><a href=\"http:\/\/cagewebdev.com\/index.php\/raspberry-pi-showing-some-system-info-with-a-python-script\/\">http:\/\/cagew<\/a><\/b><b id=\"docs-internal-guid-60b60d7b-766f-01a0-cc17-347346a44370\"><a href=\"http:\/\/cagewebdev.com\/index.php\/raspberry-pi-showing-some-system-info-with-a-python-script\/\">ebdev.com\/index.php\/raspberry-pi-showing-some-system-info-with-a-python-script\/<\/a><\/b><\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>GYRO\/ACCELEROMETER SETUP &#8211; MPU-6050<\/strong><br \/>\nhttp:\/\/playground.arduino.cc\/Main\/MPU-6050<br \/>\nhttp:\/\/arduino.cc\/forum\/index.php?topic=121825.0<br \/>\nhttp:\/\/arduino.cc\/forum\/index.php?topic=124153.0<br \/>\nhttp:\/\/www.botched.co.uk\/pic-tutorials\/mpu6050-setup-data-aquisition\/<br \/>\nhttp:\/\/arduino.cc\/forum\/index.php?topic=103408.0<br \/>\nhttp:\/\/www.i2cdevlib.com\/devices\/mpu6050#help<\/p>\n<p><strong><strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong><strong>\u2022<\/strong>\u2022\u00a0<\/strong>R.O.S. INSTALL ON RASPIAN<\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"text-decoration: underline;\"><strong>&#8212;MORE UNSORTED \/ SOME NOT DIRECTLY RASPERRY PI RELATED&#8212;<\/strong><\/span><br \/>\n<\/strong><\/p>\n<p><strong>\u2022\u00a0R2D2 with VOICE CONTROL AND FACE RECOGNITION&#8230;<\/strong><br \/>\nhttp:\/\/www.wired.com\/design\/2013\/01\/raspberry-pi-r2d2\/<\/p>\n<p><strong>\u2022\u00a0RPI ANDROID HTML5 CONTROL OF SERVOS<\/strong><br \/>\nhttp:\/\/martinsant.net\/?page_id=479<\/p>\n<p><strong>\u2022\u00a0WEB COMMANDS-&gt;PYTHON<\/strong><br \/>\nhttp:\/\/askubuntu.com\/questions\/218496\/sending-keyboard-commands-to-ubuntu-through-python-remote-for-my-blackberry<br \/>\nhttp:\/\/stackoverflow.com\/questions\/3289584\/web-ifing-a-python-command-line-script<br \/>\nhttp:\/\/mail.python.org\/pipermail\/tutor\/2005-November\/043372.html<\/p>\n<p><strong>\u2022 WEB CONTROL OF GPIO<\/strong><br \/>\nhttps:\/\/bitbucket.org\/sbub\/raspberry-pi-gpio-web-control\/overview<br \/>\nhttp:\/\/www.instructables.com\/id\/Web-Control-of-Raspberry-Pi-GPIO\/<br \/>\nhttp:\/\/elinux.org\/RPi_Low-level_peripherals<\/p>\n<p><strong>\u2022 NON ROS ROBOT TELOP<\/strong><br \/>\nhttp:\/\/raspberrypirobot.blogspot.com\/<br \/>\nhttp:\/\/code.google.com\/p\/cmd-robot\/<br \/>\nhttp:\/\/www.finventing.com\/2013\/01\/06\/robotic-light-painting-with-raspberry-pi\/<\/p>\n<p><strong>\u2022 HTML FORM BUTTON<\/strong><br \/>\nhttp:\/\/stackoverflow.com\/questions\/4120678\/multiple-buttons-on-a-form<\/p>\n<p><strong>\u2022\u00a0OPENCV<\/strong><br \/>\nhttp:\/\/www.betasix.net\/opencv-2-2-python-examples\/<br \/>\nhttp:\/\/blog.jozilla.net\/2008\/06\/27\/fun-with-python-opencv-and-face-detection\/<\/p>\n<p><strong>\u2022\u00a0HTML CONTROL<\/strong><br \/>\nhttp:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=32&#038;t=23897<\/p>\n<p><strong>\u2022\u00a0X11VNC MULTIMONITOR<\/strong><br \/>\n<a href=\"http:\/\/en.gentoo-wiki.com\/wiki\/X.Org\/Dual_Monitors\">http:\/\/en.gentoo-wiki.com\/wiki\/X.Org\/Dual_Monitors<\/a> (search &#8216;occasional dual monitors&#8217;)<\/p>\n<p><strong>\u2022 WIIMOTE<\/strong><br \/>\n<a href=\"http:\/\/www.cl.cam.ac.uk\/projects\/raspberrypi\/tutorials\/robot\/wiimote\/\">http:\/\/www.cl.cam.ac.uk\/projects\/raspberrypi\/tutorials\/robot\/wiimote\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is going to be a little note\/link reference page for all the stuff I&#8217;ve done with Raspberry Pi&#8217;s. I had this stored in a gdoc but I figured it&#8217;s more useful here. This isn&#8217;t very well sorted or formatted yet. If you find this page and need some info that I haven&#8217;t finished posting, <a href='http:\/\/funkboxing.com\/wordpress\/?p=1617' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,47],"tags":[],"_links":{"self":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1617"}],"collection":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1617"}],"version-history":[{"count":22,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1617\/revisions"}],"predecessor-version":[{"id":1756,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1617\/revisions\/1756"}],"wp:attachment":[{"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1617"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/funkboxing.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}