How to set up your Raspberry PI
Download
Raspberry Pi imager program.
Insert an sd card on your
PC.
Run the program raspberry pi imager
Choose operating system the minimal linux OS
When is done, the Os installed you remove your SD card and you insert
it again.
You'll find a root Folder called boot.
You ll make your
Pi headless. You 'll have access to it remotely via SSH
To do so fill the data form with the host name, password, and the rerequired data for the wifi connection.
on your router choose the LAN tab find the DHCP Binding and make a
static choice for your zero 's IP
So your server will be given the static IP you choose.
If SSH is not enabled by default but you make it permanantly enabled by
puting an empty file named ssh on the root of boot disk partition of SD
card.
But you'll need to enable the wifi to communicate with your router and have access to local network and internet if you missed to it when you configured the card.
Create a new file called wpa_supplicant.conf in the root partition and paste the following.
country=GR # Your 2-digit country code
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="YOUR_ROUTER SSID_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
If you later need to change the wifi settings you can repeat the procedure.
How to build a web server
You don't need to connect a screen to your Raspberry Pi, because is
running now a SSH server so you can access it using another windows PC
running
Putty,
MobaXterm or using a Linux PC from the Terminal with the command ssh
pi@your_RPip (ssh@192.168.1.66) . That
will ask you the permition to procceed, you answer yes and will prompt
you for the password you have chosen.
Please fill your settings: