This tutorial sets up an always-on DIVERA monitor on Raspberry Pi Zero W. Due to only having 512 MB of RAM a Raspberry Pi Zero W is not really suitable to browse the web. That's why a setup as suggested here will most likely not work. Therefore, it is necessary to only setup the things that are really needed and e.g. do not use a full-blown Raspberry Pi OS with a desktop environment.
- Use Raspberry Pi Imager to install 'Raspberry Pi OS Lite (Legacy)' on your SD card.
- Open the advanced settings:
- Set a hostname for you pi
- Enable SSH and set a username and a password
- Optional, but prefered: configure WiFi (you could also do it in Step 2)
- Put the SD card into the pi and connect a display via HDMI.
- Connect to your pi via ssh with
ssh pi@<your-hostname>.local
- Use
sudo raspi-config
and:- Activate
Console Autologin
(→ System Options → Boot Login) - Optional: configure WiFi settings
- Activate
- Reboot with
sudo reboot
- Connect to your pi again via ssh with
ssh pi@<your-hostname>.local
- Run
./setup.sh
- Edit the openbox autostart file via
sudo nano /etc/xdg/openbox/autostart
- Insert the content of the
start-divera-monitor.sh
file and save
- Insert the content of the
- Edit the openbox environment file via
sudo nano /etc/xdg/openbox/environment
- Insert your URL as an environment variable like this:
export MONITOR_URL=<your-url>
and save
- Insert your URL as an environment variable like this:
- Create or edit your
.bash_profile
viasudo nano ~/.bash_profile
- Add this line
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
and save
- Add this line
- Optional: to add a reboot every day use
sudo crontab -e
and add e.g. this line0 6 * * * /sbin/shutdown -r now
(restarts at 6 a.m. every day) - Reboot with
sudo reboot