The easy way
The easiest way to configure a static IP for your Raspberry Pi, (without dealing with network settings), is to use the 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, reinsert the card into your computer. Upon doing so, there should only be one partition visible (assuming you are 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 up, Screenly will check for this file, and, if it is present, Screenly will configure the system according to the settings detailed in the file.
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 will 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 do not want to use a custom NTP server, simply remove the 'ntp' 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 do not hesitate to contact our support.