The easy way
The easiest way to configure the a static IP for your Raspberry Pi (network settings at large) is to use Screenly Configuration Wizard. All you need to do is to populate the desired fields, and a configuration file will be created for you.
Once you have generated the configuration file, save it to the boot partition of your SD card. On a Windows or macOS computer, this is the only partition that will show up when you insert the SD card into your computer.
The hard way
Mount the Screenly card on your computer.
- Rename network.ini-sample on the card to network.ini.
- Edit the file according to your needs in Notepad (Windows) or TextEdit (Mac).
- Safely remove (Windows) or eject (Mac) the card and insert it into your Raspberry Pi.
After you have flashed out the disk image to an SD card, re-insert the card into your computer. Upon doing so, there should only be one partition visible (assuming you’re using Windows or Mac OS X). This partition should automatically appear.
On this partition, you will find a file named network.ini-sample. You need to copy or rename this file to network.ini. Upon boot, Screenly will check for this file, and if it is present configure the system according to the settings in there.
To configure your network, you need to open network.ini in a text editor (Notepad on Windows and TextEdit on Mac OS X will do the job). When opening the file you’ll find the following content:
[eth0] ip=192.168.1.10 netmask=255.255.255.0 gateway=192.168.1.1 [generic] ; Provide a comma separated list dns=188.8.131.52,184.108.40.206 ntp=0.pool.ntp.org,1.pool.ntp.org
Simply edit the values above to fit your needs and save the file. If you don’t want to use a custom NTP server, simply remove that line. Safely remove (Windows) or eject (Mac) the card, place it in your Raspberry Pi and boot the device. The system should automatically configure itself according to the entries in the file upon boot. If you have any questions or difficulties, please don’t hesitate to contact our support.