1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #create new pyhton environment python -m venv envpicframe #switch to python environment source envpicframe/bin/activate # install picframe via pip pip install picframe #start picframe - will create default config picframe -i . # if this fails - try to install sdl2 sudo apt install libsdl2-dev -y # and run picframe i . again - this will create picframe_data folder #adjust config sudo nano picframe_data/config/configuration.yaml #run picframe and test config /usr/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml #add autostart config sudo nano /etc/systemd/system/picframe.service |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # picframe.service content [Unit] Description=Picframe autostart After=multi-user.target [Service] Type=idle User=root ExecStart=/home/pi/envpicframe/bin/python3 /home/pi/picframe_data/run_start.py /home/pi/picframe_data/config/configuration.yaml #Restart=always [Install] WantedBy=multi-user.target |
1 2 3 4 | #enable picframe service sudo systemctl enable picframe.service #start service sudo systemctl start picframe.service |
more is available here: https://github.com/helgeerbe/picframe/wiki/Getting-Started