EPISODE Webserver
February 4, 2018
Webserver
Simple website
(Not scalable)
Needs
- Tiny Computer
Generate
- Download and write RasPi SD card image
xz -e hypriot-1.7.0.img.xz
dd if=hypriot-1.7.0.img of=/dev/sda bs=128KB conv=fsync
When this completes, the card is ready to boot up the RasPi.
- Insert SD card into RasPi, boot up, and configure
- Create a new directionctory with index file and start script
cp tinydatacenter/starter-website.com mysite.com
cd mysite.com
nano index.html
Nano is a text editor similar to MS Word, except it runs without a cursor or windows that can be moved around. It's called a "Command line tool"
If this is too uncomfortable we can skip sraight to installing a desktop system so that you can use a normal window based text editor.
Operate
- Start website with start script
- Make a change
- Rebuild and restart website
Destroy
- Stop script