Script to configure a Raspberry Pi with omxplayer-sync for synchronised video display.
- Get the latest raspian image
- Get Etcher to burn it with
- Burn image to mini SD card for use in Pi
Raspbian has some built in magic to help configure sd cards directly. Mount the flashed SD card on your PC and add two files to the boot folder.
- An empty file called
ssh
, this will turn on sshd - Copy the
wpa_supplicant.conf
file from theboot
folder of this repo and update it with the ssis and psk of your local wifi. - Determine the ip address of the pi, either by booting with a screen attatched, working on a network where the host broadcast works or other devious means.
- Clone this repo locally
- Create python 3 virtualenv
- Install requirements.txt:
pip3 install -r requirements.txt
- Create a
config_local.py
editing the following variables:
HOSTNAME = "hostname"
PASSWORD = "password"
USERNAME = "pivideo"
ACCESS_IP = "XXX.XXX.XXX.XXX"
- In a terminal window,
cd
to the root of this repo - Run
fab omxplayer_sync
and respondy
to all the questions - Run
fab make-master
if the connected raspberry pi is intended to be a master node, orfab make-slave
if it is inteded to be a slave node - Run
fab reboot
Other commands are available and shown using fab -l