IoT : Internet of Things – Installing DietPi on my Pi Zero’s

Installing DietPi on my Pi Zero’s

Today I had a field day installing DietPi Linux on my Raspberry Pi Zero W’s.

Start out on the Pi Zero

  • got file DietPi_RPi-armv6-(Jessie).7z from this page
  • unzipped it using UnArchiver on MacOS
  • burned the image on a 16GB (Copernicus) and to a 8GB (einstein) SD card using Etcher
  • plugged the card into my RPi zero W and hooked up a monitor to see what happens
    • system boots
    • cannot find eth0 (for obvious reasons)
    • did not receive an IP address
  • the USB hub I own has a mini-USB connection, not micro, so I cannot proceed…
  • unplugged the power

… continuing on the Pi3B

  • I put the card into my RPi3 (galileo)
  • booted it up (it has ‘normal’ USB connections so I could hook up a keyboard)
  • logged in on root/dietpi and got into the installation script
    • disabled ethernet
    • enabled wifi
    • changed to static IP address ( for copernicus, …204 for einstein)
    • exited config
  • Installation continues
  • got coffee, came back, system seems to have rebooted, is generating swapfile
  • ‘inflating’ files
  • system updated to latest versions, ready to reboot

… on the network! configuring …

  • rebooted, it responds to pings, it’s connected – Yeee!
  • logged in as root
  • entered into Diet-Pi Software
  • went to DietPi Config
    • enabled I2C
    • changed root password
    • changed hostname to ‘copernicus’
  • performed recommended reboot

almost done…

  • rebooted
  • logged in as root
  • continuing install
    • selected openSSH instead of default package ‘Dropbear’
  • selected ‘Install’ from menu
    • [keeping fingers crossed that it will install software that’s gonna run on the Pi Zero W]
  • install ended
  • reboot
  • shutdown

Core installation complete

  • Got card out and put it back into copernicus, my RPi Zero W
  • booted copernicus / einstein- I’m in with SSH!

Finishing up with ‘the-script’ (by Peter Scargill e.a.)

  • Downloaded and ran the-script as per this page.
    • This will install what I need for my IoT experiments
    • It takes a long, long time on the Pi Zero…

Finishing touches

After having installed the software using the-script, I tested Node-RED and MQTT. They are both running okay. Both copernicus and einstein are reporting in for duty in my IoT network now. See the picture below. The systems check in with the main node galileo – a RPi 3B – over MQTT using Node-RED every minute; when they don’t, their status is set to ‘is down’.

Dashboard on galileo