{"id":1193,"date":"2016-01-15T20:00:41","date_gmt":"2016-01-15T19:00:41","guid":{"rendered":"https:\/\/www.nico-maas.de\/?p=1193"},"modified":"2016-01-14T08:12:04","modified_gmt":"2016-01-14T07:12:04","slug":"rpi-the-cheapest-raspberry-pi-cluster-ever-made-v2","status":"publish","type":"post","link":"https:\/\/www.nico-maas.de\/?p=1193","title":{"rendered":"[RPi] The cheapest Raspberry Pi Cluster Ever Made v2"},"content":{"rendered":"<p>Ok, an little update on the PiZero Cluster Front:<br \/>\nNow, that OTG is compiled directly into the \"next\" kernel of RPi, we can use the OTG USB Virtual Ethernet directly - which makes it a lot easier. So I updated this :).<\/p>\n<p>0. Preparing Minibian Jessie Image<br \/>\nI used some old Appliance Image I created from an Minibian Wheezy Image (<a href=\"https:\/\/minibianpi.wordpress.com\/\" target=\"_blank\">https:\/\/minibianpi.wordpress.com\/<\/a>) earlier this year - for the 1.) section on the RPi Modell B pre 2.0 and RPi Modell A+. For the 2.) section, I used an special Appliance Image I made from an Minibian Jessie Image. However, I will document needed changes here, to get it running from any source. I recommend the Minibian Jessie Image as starting point, with this changes:<\/p>\n<p><code><br \/>\napt-get update<br \/>\napt-get install -y raspi-config keyboard-configuration<br \/>\nraspi-config<br \/>\n# Default Configuration and Expand Filesystem using raspi-config<br \/>\n# Enter Finish and press Yes on Reboot the Device<\/p>\n<p>apt-get install -y rpi-update sudo<br \/>\napt-get -y dist-upgrade<br \/>\nreboot<\/p>\n<p>rpi-update<br \/>\nreboot<\/p>\n<p># Create Default User pi<br \/>\nadduser pi<br \/>\n# Enter Password as wanted, i.e. raspberry<br \/>\n# Add user to default groups<br \/>\nusermod -a -G pi,adm,dialout,cdrom,audio,video,plugdev,games,users pi<br \/>\n# Add sbin Paths to pi<br \/>\necho 'export PATH=\"$PATH:\/sbin:\/usr\/sbin:usr\/local\/sbin\"' &gt;&gt; \/home\/pi\/.bashrc<br \/>\n# Add user to sudo<br \/>\nvisudo<br \/>\n# Add under<br \/>\n# # User privilege specification<br \/>\n# root ALL=(ALL:ALL) ALL<br \/>\npi ALL=(ALL:ALL) ALL<br \/>\n# Save and Exit<br \/>\nreboot<\/p>\n<p># Disable root login<br \/>\nsudo passwd -l root<br \/>\n<\/code><\/p>\n<p>or - and default RPi Jessie Image.<\/p>\n<p>1. Building mpich 3<br \/>\n<code><br \/>\n# Update and Install Dependencies, then reboot<br \/>\nsudo apt-get update<br \/>\nsudo apt-get -y dist-upgrade<br \/>\nsudo apt-get install -y build-essential<br \/>\nsudo reboot<\/p>\n<p># Make MPICH 3.2<br \/>\ncd ~<br \/>\nwget http:\/\/www.mpich.org\/static\/downloads\/3.2\/mpich-3.2.tar.gz<br \/>\ntar -xvzf mpich-3.2.tar.gz<br \/>\ncd mpich-3.2<br \/>\n# This will take some time<br \/>\nsudo .\/configure --disable-fortran<br \/>\n# This will take several cups of tea ;)<br \/>\nsudo make<br \/>\nsudo make install<br \/>\n<\/code><\/p>\n<p># Create SSH on Master, distribute to Slaves<br \/>\n<code><br \/>\ncd ~<br \/>\nssh-keygen -t rsa \u2013C \"raspberrypi\"<br \/>\n<\/code><br \/>\nDefault location should be set to \/home\/pi\/.ssh\/id_rsa if you're using the standard user pi. Then choose this command to distribute the key to all your \"slave maschines\":<br \/>\ncat ~\/.ssh\/id_rsa.pub | ssh pi@IP_OF_SLAVES \"mkdir .ssh;cat &gt;&gt; .ssh\/authorized_keys\"<br \/>\n( Was taken from <a href=\"http:\/\/www.southampton.ac.uk\/~sjc\/raspberrypi\/\" target=\"_blank\">http:\/\/www.southampton.ac.uk\/~sjc\/raspberrypi\/<\/a> - he was the original father of the RPi Clusters and his work inspired me already years ago - so please read and support his work :)! Additional infos can be found at <a href=\"http:\/\/westcoastlabs.blogspot.co.uk\/2012\/06\/parallel-processing-on-pi-bramble.html\" target=\"_blank\">http:\/\/westcoastlabs.blogspot.co.uk\/2012\/06\/parallel-processing-on-pi-bramble.html<\/a>)<br \/>\nYou could also just<br \/>\ncat ~\/.ssh\/id_rsa.pub &gt;&gt; ~\/.ssh\/authorized_keys<br \/>\nto your own authorized files, shutdown your Master Pi after that and clone the card several times for all your Clients. This way, you would only need to do the work once - however, maybe you should release the keys in ~\/.ssh\/ so that only your Master Pi could command the slaves<\/p>\n<p>2. PiZero on Virtual Ethernet<br \/>\nI build my MPICH as mentioned in 1) on an Minibian Jessie image (SDCard running on an RPi B). Then I installed the new RPi Kernel and prepared the image for OTG Ethernet, using the new information provided by <a href=\"https:\/\/github.com\/raspberrypi\/linux\/pull\/1239#issuecomment-170220201\" target=\"_blank\">NicoHood<\/a>:<\/p>\n<p><code><br \/>\n#install new kernel with OTG support<br \/>\nsudo BRANCH=next rpi-update<\/p>\n<p># This is required in the config.txt<br \/>\necho \"device_tree=bcm2708-rpi-zero.dtb\" | sudo tee -a \/boot\/config.txt<\/p>\n<p># Regarding the readme this is applied automatically for a pi zero (and yes it works without) - so not really needed<br \/>\n# echo \"dtoverlay=dwc2\" | sudo tee -a \/boot\/config.txt<\/p>\n<p># Only use this, if the new kernel causes sd card errors<br \/>\n# echo \"dtoverlay=mmc\" | sudo tee -a \/boot\/config.txt<\/p>\n<p># permanently add the g_ether (or any other) module, add it to \/etc\/modules<br \/>\necho \"dwc2\" | sudo tee -a \/etc\/modules<br \/>\necho \"g_ether\" | sudo tee -a \/etc\/modules<\/p>\n<p># Add settings to network interfaces<br \/>\necho '<br \/>\nallow-hotplug usb0<br \/>\niface usb0 inet static<br \/>\naddress 192.168.7.2<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 192.168.7.0<br \/>\nbroadcast 192.168.7.255<br \/>\ngateway 192.168.7.1<br \/>\ndns-nameservers 8.8.8.8' | sudo tee --append \/etc\/network\/interfaces<\/p>\n<p># Some additional tweaks:<br \/>\nAdd<\/p>\n<p># Turn HDMI Off<br \/>\n\/usr\/bin\/tvservice -o<br \/>\n# Turn HDMI Back On<br \/>\n#\/usr\/bin\/tvservice -p<\/p>\n<p># Turn ACT LED Off on Pi Zero<br \/>\necho none | tee \/sys\/class\/leds\/led0\/trigger<br \/>\necho 1 | tee \/sys\/class\/leds\/led0\/brightness<br \/>\n<\/code><\/p>\n<p>to your \/etc\/rc.local before exit 0 to turn off the HDMI Interface on boot,<br \/>\nas well as the LED of the Pi Zero to use less energy. Found on:<br \/>\n<a href=\"http:\/\/www.midwesternmac.com\/blogs\/jeff-geerling\/raspberry-pi-zero-conserve-energy\" target=\"_blank\">http:\/\/www.midwesternmac.com\/blogs\/jeff-geerling\/raspberry-pi-zero-conserve-energy<\/a> and <a href=\"http:\/\/www.midwesternmac.com\/blogs\/jeff-geerling\/controlling-pwr-act-leds-raspberry-pi\" target=\"_blank\">http:\/\/www.midwesternmac.com\/blogs\/jeff-geerling\/controlling-pwr-act-leds-raspberry-pi<\/a><\/p>\n<p>This was enough to create an Pi Zero Slave Image.<br \/>\nShutdown the RPi now with<br \/>\n<code><br \/>\nsudo shutdown -h now<br \/>\n<\/code><br \/>\nremove the Power and insert the SDcard into your Pi Zero.<\/p>\n<p>On the Master Machine, I did following changes:<br \/>\n<code><br \/>\n# Add settings to network interfaces<br \/>\necho '<br \/>\nallow-hotplug usb0<br \/>\niface usb0 inet static<br \/>\naddress 192.168.7.1<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 192.168.7.0<br \/>\nbroadcast 192.168.7.255' | sudo tee --append \/etc\/network\/interfaces<\/p>\n<p># Allow Ipv4 Forward<br \/>\necho 'net.ipv4.ip_forward=1' | sudo tee --append \/etc\/sysctl.conf<\/p>\n<p># Install iptables<br \/>\nsudo apt-get install -y iptables<\/p>\n<p># Define NATing rules<br \/>\nsudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br \/>\nsudo iptables -A FORWARD -i eth0 -o usb0 -m state --state RELATED,ESTABLISHED -j ACCEPT<br \/>\nsudo iptables -A FORWARD -i usb0 -o eth0 -j ACCEPT<\/p>\n<p># Save NAT rules \/ load iptables on interface up<br \/>\nsudo touch \/etc\/iptables_masq.rules<br \/>\nsudo chown pi:pi \/etc\/iptables_masq.rules<br \/>\nsudo iptables-save > \/etc\/iptables_masq.rules<\/p>\n<p>Add<br \/>\npre-up iptables-restore < \/etc\/iptables_masq.rules\nunder the eth0 section in the network interfaces\n\nsudo vi \/etc\/network\/interfaces\n\ni.e.\nauto eth0\niface eth0 inet dhcp\n        pre-up iptables-restore < \/etc\/iptables_masq.rules\n\n( Info taken from: <a href=\"http:\/\/serverfault.com\/questions\/405628\/routing-traffic-on-ubuntu-to-give-raspberry-pi-internet-access\" target=\"_blank\">http:\/\/serverfault.com\/questions\/405628\/routing-traffic-on-ubuntu-to-give-raspberry-pi-internet-access<\/a> )   <\/p>\n<p>#After that, I shutdown the RPi via<br \/>\nsudo shutdown -h now<br \/>\n#removed power from it.<br \/>\n<\/code><\/p>\n<p>Then I attached the Pi Zero to the Hub of Pi B via an Micro USB Cable by using the Micro USB OTG Slot on the Pi Zero, connecting it to the Hub of the Pi Modell B. Next, I powered up the Pi B - and both booted.<\/p>\n<p>I pinged 192.168.7.2 - which was the IP of the Pi Zero - and it answered. Now I only had to use cat ~\/.ssh\/id_rsa.pub | ssh pi@192.168.7.2 \"mkdir .ssh;cat &gt;&gt; .ssh\/authorized_keys\" from Section 0 to get the SSH Key, created in Step 0 onto the Pi Zero and could use that to automatically login in into the Pi Zero.<br \/>\nWith the new IP of the RPi B and Pi Zero in the machinefile of mpich I could then use my both RPis with higher speed and nearly zero costs for cabeling and power :)!<br \/>\nThe clou: I don't need an additional powersupply for the Pi Zero - nor network adapters, RJ45 cabling, an switch - only one USB A to USB Micro cable per Pi Zero - and maybe an big, active USB Hub ;)!<\/p>\n<p>Now, I need to get more Pi Zeros - I plan on using an Modell B as Master with an big active USB Hub to support 4 Pi Zeros - or an Modell B+ with an REALLY BEFFY USB Supply to work them all the same RPi - but that would come down to trying this... And I got only one Pi Zero - so I need some more time (or some sponsors?) to get me more RPi Zeros to try and see, whether this approach does scale ;)!<\/p>\n<p>Best thing: This can also be used to try the awesome work of <a href=\"http:\/\/blog.hypriot.com\" target=\"_blank\">http:\/\/blog.hypriot.com<\/a>\/ to build an Docker Cluster from that - cool, ain't it?<\/p>\n<div class=\"shariff shariff-align-left shariff-widget-align-left\"><ul class=\"shariff-buttons theme-round orientation-horizontal buttonsize-small\"><li class=\"shariff-button printer shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"javascript:window.print()\" title=\"print\" aria-label=\"print\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 30 32\"><path fill=\"#999\" d=\"M6.8 27.4h16v-4.6h-16v4.6zM6.8 16h16v-6.8h-2.8q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-11.4v11.4zM27.4 17.2q0-0.5-0.3-0.8t-0.8-0.4-0.8 0.4-0.3 0.8 0.3 0.8 0.8 0.3 0.8-0.3 0.3-0.8zM29.7 17.2v7.4q0 0.2-0.2 0.4t-0.4 0.2h-4v2.8q0 0.7-0.5 1.2t-1.2 0.5h-17.2q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-4q-0.2 0-0.4-0.2t-0.2-0.4v-7.4q0-1.4 1-2.4t2.4-1h1.2v-9.7q0-0.7 0.5-1.2t1.2-0.5h12q0.7 0 1.6 0.4t1.3 0.8l2.7 2.7q0.5 0.5 0.9 1.4t0.4 1.6v4.6h1.1q1.4 0 2.4 1t1 2.4z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button mailto shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"mailto:?body=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&subject=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Send by email\" aria-label=\"Send by email\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#999\" d=\"M32 12.7v14.2q0 1.2-0.8 2t-2 0.9h-26.3q-1.2 0-2-0.9t-0.8-2v-14.2q0.8 0.9 1.8 1.6 6.5 4.4 8.9 6.1 1 0.8 1.6 1.2t1.7 0.9 2 0.4h0.1q0.9 0 2-0.4t1.7-0.9 1.6-1.2q3-2.2 8.9-6.1 1-0.7 1.8-1.6zM32 7.4q0 1.4-0.9 2.7t-2.2 2.2q-6.7 4.7-8.4 5.8-0.2 0.1-0.7 0.5t-1 0.7-0.9 0.6-1.1 0.5-0.9 0.2h-0.1q-0.4 0-0.9-0.2t-1.1-0.5-0.9-0.6-1-0.7-0.7-0.5q-1.6-1.1-4.7-3.2t-3.6-2.6q-1.1-0.7-2.1-2t-1-2.5q0-1.4 0.7-2.3t2.1-0.9h26.3q1.2 0 2 0.8t0.9 2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&text=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button linkedin shariff-nocustomcolor\" style=\"background-color:#1488bf\"><a href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on LinkedIn\" aria-label=\"Share on LinkedIn\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0077b5; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#0077b5\" d=\"M6.2 11.2v17.7h-5.9v-17.7h5.9zM6.6 5.7q0 1.3-0.9 2.2t-2.4 0.9h0q-1.5 0-2.4-0.9t-0.9-2.2 0.9-2.2 2.4-0.9 2.4 0.9 0.9 2.2zM27.4 18.7v10.1h-5.9v-9.5q0-1.9-0.7-2.9t-2.3-1.1q-1.1 0-1.9 0.6t-1.2 1.5q-0.2 0.5-0.2 1.4v9.9h-5.9q0-7.1 0-11.6t0-5.3l0-0.9h5.9v2.6h0q0.4-0.6 0.7-1t1-0.9 1.6-0.8 2-0.3q3 0 4.9 2t1.9 6z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on Reddit\" aria-label=\"Share on Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button pinterest shariff-nocustomcolor\" style=\"background-color:#e70f18\"><a href=\"https:\/\/www.pinterest.com\/pin\/create\/link\/?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&media=https%3A%2F%2Fwww.nico-maas.de%2Fwordpress%2Fwp-content%2Fplugins%2Fshariff%2Fimages%2FdefaultHint.png&description=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Pin it on Pinterest\" aria-label=\"Pin it on Pinterest\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#cb2027; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#cb2027\" d=\"M27.4 16q0 3.7-1.8 6.9t-5 5-6.9 1.9q-2 0-3.9-0.6 1.1-1.7 1.4-2.9 0.2-0.6 1-3.8 0.4 0.7 1.3 1.2t2 0.5q2.1 0 3.8-1.2t2.7-3.4 0.9-4.8q0-2-1.1-3.8t-3.1-2.9-4.5-1.2q-1.9 0-3.5 0.5t-2.8 1.4-2 2-1.2 2.3-0.4 2.4q0 1.9 0.7 3.3t2.1 2q0.5 0.2 0.7-0.4 0-0.1 0.1-0.5t0.2-0.5q0.1-0.4-0.2-0.8-0.9-1.1-0.9-2.7 0-2.7 1.9-4.6t4.9-2q2.7 0 4.2 1.5t1.5 3.8q0 3-1.2 5.2t-3.1 2.1q-1.1 0-1.7-0.8t-0.4-1.9q0.1-0.6 0.5-1.7t0.5-1.8 0.2-1.4q0-0.9-0.5-1.5t-1.4-0.6q-1.1 0-1.9 1t-0.8 2.6q0 1.3 0.4 2.2l-1.8 7.5q-0.3 1.2-0.2 3.2-3.7-1.6-6-5t-2.3-7.6q0-3.7 1.9-6.9t5-5 6.9-1.9 6.9 1.9 5 5 1.8 6.9z\"\/><\/svg><\/span><\/a><\/li><\/ul><\/div>","protected":false},"excerpt":{"rendered":"<p>Ok, an little update on the PiZero Cluster Front: Now, that OTG is compiled directly into the \"next\" kernel of RPi, we can use the OTG USB Virtual Ethernet directly - which makes it a lot easier. So I updated this :). 0. Preparing Minibian Jessie Image I used some old Appliance Image I created &hellip; <a href=\"https:\/\/www.nico-maas.de\/?p=1193\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">[RPi] The cheapest Raspberry Pi Cluster Ever Made v2<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"shariff shariff-align-left shariff-widget-align-left\"><ul class=\"shariff-buttons theme-round orientation-horizontal buttonsize-small\"><li class=\"shariff-button printer shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"javascript:window.print()\" title=\"print\" aria-label=\"print\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 30 32\"><path fill=\"#999\" d=\"M6.8 27.4h16v-4.6h-16v4.6zM6.8 16h16v-6.8h-2.8q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-11.4v11.4zM27.4 17.2q0-0.5-0.3-0.8t-0.8-0.4-0.8 0.4-0.3 0.8 0.3 0.8 0.8 0.3 0.8-0.3 0.3-0.8zM29.7 17.2v7.4q0 0.2-0.2 0.4t-0.4 0.2h-4v2.8q0 0.7-0.5 1.2t-1.2 0.5h-17.2q-0.7 0-1.2-0.5t-0.5-1.2v-2.8h-4q-0.2 0-0.4-0.2t-0.2-0.4v-7.4q0-1.4 1-2.4t2.4-1h1.2v-9.7q0-0.7 0.5-1.2t1.2-0.5h12q0.7 0 1.6 0.4t1.3 0.8l2.7 2.7q0.5 0.5 0.9 1.4t0.4 1.6v4.6h1.1q1.4 0 2.4 1t1 2.4z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button mailto shariff-nocustomcolor\" style=\"background-color:#a8a8a8\"><a href=\"mailto:?body=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&subject=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Send by email\" aria-label=\"Send by email\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#999; color:#fff\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#999\" d=\"M32 12.7v14.2q0 1.2-0.8 2t-2 0.9h-26.3q-1.2 0-2-0.9t-0.8-2v-14.2q0.8 0.9 1.8 1.6 6.5 4.4 8.9 6.1 1 0.8 1.6 1.2t1.7 0.9 2 0.4h0.1q0.9 0 2-0.4t1.7-0.9 1.6-1.2q3-2.2 8.9-6.1 1-0.7 1.8-1.6zM32 7.4q0 1.4-0.9 2.7t-2.2 2.2q-6.7 4.7-8.4 5.8-0.2 0.1-0.7 0.5t-1 0.7-0.9 0.6-1.1 0.5-0.9 0.2h-0.1q-0.4 0-0.9-0.2t-1.1-0.5-0.9-0.6-1-0.7-0.7-0.5q-1.6-1.1-4.7-3.2t-3.6-2.6q-1.1-0.7-2.1-2t-1-2.5q0-1.4 0.7-2.3t2.1-0.9h26.3q1.2 0 2 0.8t0.9 2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button twitter shariff-nocustomcolor\" style=\"background-color:#595959\"><a href=\"https:\/\/twitter.com\/share?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&text=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Share on X\" aria-label=\"Share on X\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#000; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 24 24\"><path fill=\"#000\" d=\"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button facebook shariff-nocustomcolor\" style=\"background-color:#4273c8\"><a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on Facebook\" aria-label=\"Share on Facebook\" role=\"button\" rel=\"nofollow\" class=\"shariff-link\" style=\"; background-color:#3b5998; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 18 32\"><path fill=\"#3b5998\" d=\"M17.1 0.2v4.7h-2.8q-1.5 0-2.1 0.6t-0.5 1.9v3.4h5.2l-0.7 5.3h-4.5v13.6h-5.5v-13.6h-4.5v-5.3h4.5v-3.9q0-3.3 1.9-5.2t5-1.8q2.6 0 4.1 0.2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button linkedin shariff-nocustomcolor\" style=\"background-color:#1488bf\"><a href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on LinkedIn\" aria-label=\"Share on LinkedIn\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#0077b5; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#0077b5\" d=\"M6.2 11.2v17.7h-5.9v-17.7h5.9zM6.6 5.7q0 1.3-0.9 2.2t-2.4 0.9h0q-1.5 0-2.4-0.9t-0.9-2.2 0.9-2.2 2.4-0.9 2.4 0.9 0.9 2.2zM27.4 18.7v10.1h-5.9v-9.5q0-1.9-0.7-2.9t-2.3-1.1q-1.1 0-1.9 0.6t-1.2 1.5q-0.2 0.5-0.2 1.4v9.9h-5.9q0-7.1 0-11.6t0-5.3l0-0.9h5.9v2.6h0q0.4-0.6 0.7-1t1-0.9 1.6-0.8 2-0.3q3 0 4.9 2t1.9 6z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button reddit shariff-nocustomcolor\" style=\"background-color:#ff5700\"><a href=\"https:\/\/www.reddit.com\/submit?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193\" title=\"Share on Reddit\" aria-label=\"Share on Reddit\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#ff4500; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path fill=\"#ff4500\" d=\"M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z\"\/><\/svg><\/span><\/a><\/li><li class=\"shariff-button pinterest shariff-nocustomcolor\" style=\"background-color:#e70f18\"><a href=\"https:\/\/www.pinterest.com\/pin\/create\/link\/?url=https%3A%2F%2Fwww.nico-maas.de%2F%3Fp%3D1193&media=https%3A%2F%2Fwww.nico-maas.de%2Fwordpress%2Fwp-content%2Fplugins%2Fshariff%2Fimages%2FdefaultHint.png&description=%5BRPi%5D%20The%20cheapest%20Raspberry%20Pi%20Cluster%20Ever%20Made%20v2\" title=\"Pin it on Pinterest\" aria-label=\"Pin it on Pinterest\" role=\"button\" rel=\"noopener nofollow\" class=\"shariff-link\" style=\"; background-color:#cb2027; color:#fff\" target=\"_blank\"><span class=\"shariff-icon\" style=\"\"><svg width=\"32px\" height=\"20px\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 27 32\"><path fill=\"#cb2027\" d=\"M27.4 16q0 3.7-1.8 6.9t-5 5-6.9 1.9q-2 0-3.9-0.6 1.1-1.7 1.4-2.9 0.2-0.6 1-3.8 0.4 0.7 1.3 1.2t2 0.5q2.1 0 3.8-1.2t2.7-3.4 0.9-4.8q0-2-1.1-3.8t-3.1-2.9-4.5-1.2q-1.9 0-3.5 0.5t-2.8 1.4-2 2-1.2 2.3-0.4 2.4q0 1.9 0.7 3.3t2.1 2q0.5 0.2 0.7-0.4 0-0.1 0.1-0.5t0.2-0.5q0.1-0.4-0.2-0.8-0.9-1.1-0.9-2.7 0-2.7 1.9-4.6t4.9-2q2.7 0 4.2 1.5t1.5 3.8q0 3-1.2 5.2t-3.1 2.1q-1.1 0-1.7-0.8t-0.4-1.9q0.1-0.6 0.5-1.7t0.5-1.8 0.2-1.4q0-0.9-0.5-1.5t-1.4-0.6q-1.1 0-1.9 1t-0.8 2.6q0 1.3 0.4 2.2l-1.8 7.5q-0.3 1.2-0.2 3.2-3.7-1.6-6-5t-2.3-7.6q0-3.7 1.9-6.9t5-5 6.9-1.9 6.9 1.9 5 5 1.8 6.9z\"\/><\/svg><\/span><\/a><\/li><\/ul><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","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":"[RPi] The cheapest Raspberry Pi Cluster Ever Made v2","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":[4,32,280],"tags":[522,516,525,484,523],"class_list":["post-1193","post","type-post","status-publish","format-standard","hentry","category-computer","category-network","category-raspberry-pi","tag-cluster","tag-mpich","tag-otg","tag-raspberry-pi","tag-zero"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/piXYf-jf","jetpack-related-posts":[{"id":1151,"url":"https:\/\/www.nico-maas.de\/?p=1151","url_meta":{"origin":1193,"position":0},"title":"[RPi] The cheapest Raspberry Pi Cluster Ever Made","author":"Nico Maas","date":"26. December 2015","format":false,"excerpt":"As soon as the Pi Zero came out, I started on thinking about Clusters again. I wanted to create an big - but at the same time, cheap cluster. Yes, an Pi Zero is not nearly as fast, as an RPi 2. And yes, there are some problems with this\u2026","rel":"","context":"In &quot;Projects&quot;","block_context":{"text":"Projects","link":"https:\/\/www.nico-maas.de\/?cat=23"},"img":{"alt_text":"ppplink","src":"https:\/\/i0.wp.com\/www.nico-maas.de\/wordpress\/wp-content\/uploads\/ppplink-300x225.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1076,"url":"https:\/\/www.nico-maas.de\/?p=1076","url_meta":{"origin":1193,"position":1},"title":"[RaspPi] Minibian Basic Setup","author":"Nico Maas","date":"7. April 2015","format":false,"excerpt":"For basic appliances with an very specific task, an complete Raspbian Installation can be too heavy weight and unnecessary. Striping down Raspbian of things like Mathematica can be time consuming. Enter Minibian: Just download the Image at https:\/\/minibianpi.wordpress.com\/ and flash it to your SD Card like a normal Raspbian Image.\u2026","rel":"","context":"In &quot;Raspberry Pi&quot;","block_context":{"text":"Raspberry Pi","link":"https:\/\/www.nico-maas.de\/?cat=280"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1033,"url":"https:\/\/www.nico-maas.de\/?p=1033","url_meta":{"origin":1193,"position":2},"title":"[RaspPi] Install Kali Linux on RPi with HDMIPi","author":"Nico Maas","date":"11. March 2015","format":false,"excerpt":"1.) Download Kali for RPi https:\/\/www.offensive-security.com\/kali-linux-vmware-arm-image-download\/ 2.) Extract if with 7zip, format your SDCard with the Formatter from the SDCardAssociation and write the Image (kali-1.0.9-rpi.img) to your SD Card 2b.) If you plan on using Kali with your HDMIPi Screen, create an config.txt file with following content on the sdcard\u2026","rel":"","context":"In &quot;Raspberry Pi&quot;","block_context":{"text":"Raspberry Pi","link":"https:\/\/www.nico-maas.de\/?cat=280"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":925,"url":"https:\/\/www.nico-maas.de\/?p=925","url_meta":{"origin":1193,"position":3},"title":"[RaspPi] Raspberry Pi and the ili9341 Display","author":"Nico Maas","date":"27. April 2014","format":false,"excerpt":"https:\/\/www.youtube.com\/watch?v=cEcIem6R4aQ 1.) Enable SPI # remove or comment out the spi blacklist line sudo nano \/etc\/modprobe.d\/raspi-blacklist.conf 2.) Install a) FBTFT drivers as loadable modules sudo REPO_URI=https:\/\/github.com\/notro\/rpi-firmware rpi-update sudo shutdown -r now OR b) FBTFT drivers built into the kernel proper sudo REPO_URI=https:\/\/github.com\/notro\/rpi-firmware BRANCH=builtin rpi-update sudo shutdown -r now 3.) Install\u2026","rel":"","context":"In &quot;Hardware&quot;","block_context":{"text":"Hardware","link":"https:\/\/www.nico-maas.de\/?cat=11"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1035,"url":"https:\/\/www.nico-maas.de\/?p=1035","url_meta":{"origin":1193,"position":4},"title":"[RaspPi] Faintly glowing steady green LED on Raspberry Pi","author":"Nico Maas","date":"7. March 2015","format":false,"excerpt":"[RaspPi] Faintly glowing steady green LED on Raspberry Pi I got some serious issues with one of my Raspberry Pi, Modell B Rev. 2.0. With an recent image, the Raspberry Pi refused to boot, but did only light up the red ACT LED as well as an really faintly glowing\u2026","rel":"","context":"In &quot;Computer&quot;","block_context":{"text":"Computer","link":"https:\/\/www.nico-maas.de\/?cat=4"},"img":{"alt_text":"repair_rpi_sdcard_reader","src":"https:\/\/i0.wp.com\/www.nico-maas.de\/wordpress\/wp-content\/uploads\/repair_rpi_sdcard_reader-300x199.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":860,"url":"https:\/\/www.nico-maas.de\/?p=860","url_meta":{"origin":1193,"position":5},"title":"[RaspPi] OpenWRT Trunk with latest Raspberry Pi 3.10.18+ #585 Kernel - as Image download","author":"Nico Maas","date":"10. November 2013","format":false,"excerpt":"THIS POST IS OUTDATED! A NEW IMAGE HAS BEEN POSTED! PLEASE USE THE SEARCH FUNCTION TO FIND THE LATEST VERSION! As I found out that the old tutorials weren't helpful and either the OpenWRT Trunk OR the Raspberry Pi Kernel broke the build process (you can still build it successfully,\u2026","rel":"","context":"In &quot;OpenWRT&quot;","block_context":{"text":"OpenWRT","link":"https:\/\/www.nico-maas.de\/?cat=107"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/posts\/1193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1193"}],"version-history":[{"count":2,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions"}],"predecessor-version":[{"id":1195,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=\/wp\/v2\/posts\/1193\/revisions\/1195"}],"wp:attachment":[{"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nico-maas.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}