Skip to content

Instantly share code, notes, and snippets.

View mrpjevans's full-sized avatar

PJ Evans mrpjevans

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mrpjevans on github.
  • I am mrpjevans ( on keybase.
  • I have a public key whose fingerprint is 5C88 EF5C 1AD8 94F6 D24A 278E 2EBA BCDD AB94 5B4A

To claim this, I am signing this object:

mrpjevans /
Created June 30, 2020 15:00
Start Mopidy Iris in kiosk mode on Chromium on Raspberry Pi OS
unclutter -idle 0.5 -root &
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences
/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk &
mrpjevans / mopidy.conf
Created July 15, 2020 13:16
Sample mopidy.conf file for MagPi tutorials
# Make sure the web interface can be accessed by the local network
hostname =
# Direct audio to the DAC, not HDMI
output = alsasink
# The File extension isn't of much use, so we can disable it
mrpjevans /
Last active January 6, 2024 21:17
Installation process for facial recognition dependancies

Step 1: Install dependancies

sudo apt -y update && sudo apt -y full-upgrade
sudo apt install build-essential \
    cmake \
    gfortran \
    git \
    wget \
 curl \
comment = Shared
path = /var/shared
read only = no
browsable = yes
comment = Huge
path = /mnt/huge
read only = no
browsable = yes
mrpjevans /
Last active August 15, 2021 10:54
Install Plex on Raspberry Pi
# Plex's repository uses HTTPS as the transport, so we need to install support
sudo apt update
sudo apt install apt-transport-https ca-certificates curl
# Get Plex's public key and add the Plex repo
curl | sudo apt-key add -
echo deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list
mrpjevans /
Last active August 16, 2021 11:17
Install Mopidy and Iris
# Add Mopidy repo and install
wget -q -O - | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list
sudo apt update
sudo apt install mopidy
sudo adduser mopidy video
# Configure (be careful with this line!)
mrpjevans / gist:c20e728c0dfd4cddc35a6e19e32d8381
Last active November 30, 2021 16:39
Install Home Assistant Core
Please run the following commands line-by-line, not as a script:
sudo apt -y update && sudo apt -y upgrade
sudo apt install -y python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0 tzdata
sudo useradd -rm homeassistant -G dialout,gpio,i2c
sudo mkdir /srv/homeassistant
sudo chown homeassistant:homeassistant /srv/homeassistant
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
mrpjevans / smb.cnf
Last active October 22, 2021 14:30
Add Time Machine support to a Samba share
# To support macOS Time Machine backups in Samba
# Create a share that has the following properties
# in /etc/samba/smb.conf
# In this example we have a mounted drive called 'huge'
# with a directory called 'Time Machine'
[Time Machine]
comment = Time Machine
path = /mnt/huge/Time Machine
read only = no