Putting a screen on Wi-Fi
A screen has no keyboard and no settings menu — that is rather the point. With a network cable it needs nothing at all: plug it in and it finds the network by itself. For Wi-Fi, you write a small text file on the card before the screen first starts.
The short version
Write the image to the card (see Download).
Leave the card in your computer. It appears as a small drive, usually called RPIBOOT.
Make a file in the top of that drive called
kiosk.conf:WIFI_SSID=The network's name WIFI_PSK=the password WIFI_COUNTRY=USEject the card, put it in the screen, and switch it on.
That is all. The screen joins the network, shows its code, and you add it to your organisation.
What goes in the file
| Line | Meaning |
|---|---|
WIFI_SSID= |
the network's name, exactly as it appears on a phone, spaces and all |
WIFI_PSK= |
the password |
WIFI_COUNTRY= |
the two-letter country the screen stands in (US, BG, DE…), which decides the legal radio channels |
Write it as plain text, one setting per line, with no quotation marks and no spaces around the
=. Any text editor will do — Notepad, TextEdit, anything — as long as it saves plain text.
A fixed address, if your network does not hand them out, or you want the screen always at the same one:
STATIC_IP=10.0.0.12/24
GATEWAY=10.0.0.1
DNS=10.0.0.1
Things worth knowing
The password does not stay on the card. The first time the screen starts it copies the settings into its own storage and blanks the password line in the file on the card. Anyone who later takes the card to a computer sees the network's name, not its password.
Changing the network later. Put the card back in a computer and write the file again with the new details. The screen picks them up the next time it starts. An empty or missing file changes nothing, so a blanked password is not a problem.
Wired is simpler. If a cable can reach the screen, use one: no file, no password on a card, and no Wi-Fi to drop. A screen that loses its network keeps playing what it has and says so in a line along the bottom, but it cannot show anything new until it is back.
5 GHz networks and hidden networks. A Raspberry Pi 4 handles both bands. A hidden network usually works, but if it does not, make the network visible for the few minutes it takes the screen to join.
If it does not join. The screen says so on its own display, with a code you can quote. The most common causes are a mistyped password, the wrong country, or a network that expects someone to accept terms on a web page — screens cannot do that, so those need a cable or a guest network without the sign-in page.