I like the PC version that runs off a USB memory stick in an old laptop.
sudo busybox httpd -p 0.0.0.0:8086 -h /home/pi/www
cron -A super-simple way to run scripts on boot
https://learn.pimoroni.com/article/running-scripts-at-boot
crontab -e Add:
@reboot python /home/pi/Pimoroni/blinkt/examples/rainbow.py &
A way to start a web server
A Way to start a web server when the RPi boots:-
A way to start a web server using rc.local
# Howevery this already has two web servers you can use. # * busybox httpd # * python -m httpd.server 8080 & # # To get it to boot on power up set up /etc/rc.local # # scp pi@patrickpi:/etc/rc.local rc.local.txt # #================================================= #!/bin/sh -e # owned by root # chmod 755 /etc/rc.local #!/usr/bin/ env python # # You could start a webserver using:- # python -m http.server 8080 &
# log last boot time for debug purposes date > /home/pi/rclocal.txt
# log env to file for debug purposes /usr/bin/env >> /home/pi/rclocal.txt