pi0 (local) web server [home][amenities]

14/10/2019


Buy one Raspberry Pi Zero W and a 8GB microSD card.
Download the Raspbian Buster Lite image.
Download also balenaEtcher.
Plug-in the microSD card in your computer and flash Raspbian image in it with balenaEtcher. In the new microSD boot partition create an empty ssh file and a wpa_supplicant.conf file reading

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=UK
network={
ssid="your-wifi-network-name"
psk="your-wifi-password"
key_mgmt=WPA-PSK
}

Insert the SD card, power it on, and ssh pi@raspberrypi.local.
Default root password is raspberry, change it with passwd, install useful stuff

pi@raspberrypi:~ $ sudo apt update
pi@raspberrypi:~ $ sudo apt install -y vim apache2 git python3-pip

The pi0 is now (locally) hosting a page from /var/www/html/, which you can access at http://raspberrypi.local.