[Home]Raspsberry Pi

HomePage | RecentChanges | Preferences | My Website home page

Showing revision 3

The Raspberry Pi

https://www.raspberrypi.com/

I like the PC version that runs off a USB memory stick in an old laptop.

Starting a simple Busybox Webserver

https://oldforum.puppylinux.com/viewtopic.php?t=115252

sudo busybox httpd -p 0.0.0.0:8086 -h /home/pi/www

A Way to start a web server when the RPi boots:-

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


HomePage | RecentChanges | Preferences | My Website home page
This page is read-only | View other revisions | View current revision
Edited February 16, 2025 9:44 am by dougrice.plus.com
Search: