Both sides previous revisionPrevious revisionNext revision | Previous revision |
info:rpi_frame [2020/06/28 09:01] – [Installation] link internal NFS exports moritz | info:rpi_frame [2020/06/28 09:07] (current) – [Installation] moritz |
---|
- Install [[https://www.raspberrypi.org/downloads/raspberry-pi-os/|Raspian Lite]] on the SD card. | - Install [[https://www.raspberrypi.org/downloads/raspberry-pi-os/|Raspian Lite]] on the SD card. |
- Edit ''/etc/fstab'' to mount the network share. Skip this step if using a local directory.<code>host:/export/media /export/media nfs4 auto 0 0</code> Replace ''host:/export/media'' with your host and export name. See [[infra:x.antiguru.de|x.antiguru.de]] for NFS exports. | - Edit ''/etc/fstab'' to mount the network share. Skip this step if using a local directory.<code>host:/export/media /export/media nfs4 auto 0 0</code> Replace ''host:/export/media'' with your host and export name. See [[infra:x.antiguru.de|x.antiguru.de]] for NFS exports. |
- Crate a script ''picframe.sh'' in ''/home/pi'':<code>#!/bin/bash | - Crate a script ''picframe.sh'' in ''/home/pi''. Update ''myfolder'' to point to the correct location.<code>#!/bin/bash |
myfolder="/export/media/picframe" | myfolder="/export/media/picframe" |
if [ -d "$myfolder" ]; then | if [ -d "$myfolder" ]; then |
fi | fi |
exit 0</code> | exit 0</code> |
- Now boot the sd card in the pi. | - Make the script runnable: ''chmod u+x picframe.sh'' |
| - Now boot the pi from the SD card. |
| - Install ''fbi'': ''sudo apt update'', ''sudo apt upgrade'', ''sudo apt install fbi'' |
- Configure auto login: ''sudo raspi-config'' | - Configure auto login: ''sudo raspi-config'' |
- Append ''~/picframe.sh'' to ''/home/pi/.bashrc' | - Append ''~/picframe.sh'' to ''/home/pi/.bashrc'' |
- Configure read-only overlay fs: ''sudo raspi-config'' | - Configure read-only overlay fs: ''sudo raspi-config'' |