Pi Software Setup

For a nice lean and speedy setup, I recommend using Raspbian Lite with Chromium in Kiosk Mode, to boot directly to a webpage. I used this guide to setup my Pi and here’s a quick reference of what I installed and what I did different:

First I installed Raspbian Lite using Etcher on a 4GB card (non Lite doesn’t fit anymore!).

  • Run sudo raspi-config:
    • change the default password (and optionally the hostname)
    • enable SSH
    • enable Wait for Network at Boot (under Boot Options)
    • enter WiFi credentials (under Network Options)
    • change locale to your TimeZone

  • Update the Pi and install the lxde desktop and chromium:
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade
    sudo apt-get install chromium-browser unclutter lxde
  • Run sudo raspi-config again and enable GUI boot (under Boot Options) – select Desktop/CLI -> Desktop/Autologin
  • Save and reboot
  • Run sudo nano ~/.config/lxsession/LXDE/autostart, delete everything and put this content in the file – the last line is the link to your webpage you want to display:
  • @xset s off
    @xset -dpms
    @xset s noblank
    @sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium-browser Default/Preferences
    @chromium-browser --noerrdialogs --kiosk https://moteino.com --incognito --disable-translate
    
  • To flip/rotate the LCD by 180 degrees run sudo nano /boot/config.txt and add this line:
    lcd_rotate=2
  • sudo reboot and the display should show you the configured URL above!
  • To allow reboot/shutdowns from the power button through the MightyBoost/Moteino, you need to install the shutdown script as described in the ATXRaspi guide:
  • sudo wget https://raw.githubusercontent.com/LowPowerLab/ATX-Raspi/master/shutdownchecksetup.sh
    sudo bash shutdownchecksetup.sh
    sudo rm shutdownchecksetup.sh
    
  • sudo reboot again and now the BOOTOK green LED on MightyBoost should come ON and a short press will trigger a reboot and long press will issue a shutdown