Skip to content

Instantly share code, notes, and snippets.

View petergerdes's full-sized avatar

petergerdes petergerdes

View GitHub Profile
@petergerdes
petergerdes / Howto Play media files Linux from USB sticks
Last active July 29, 2022 09:29
Play media files Linux from USB sticks
1. Have Linux setup with X and JWM window manager with autologin for a single user.
2. Install VLC including all codecs.
3. Setup usb automount: https://www.linuxuprising.com/2019/04/automatically-mount-usb-drives-on.html
4. Have JWM start startplaying.sh on boot, <StartupCommand>/home/username/startplaying.sh</StartupCommand> in /etc/jwm/system.jwmrc
5. Run a cron every minute running checkchanges.sh
@petergerdes
petergerdes / hass-rpi4.md
Last active October 14, 2019 09:01
Home-Assistant on Raspberry Pi 4

Getting Home-Assistant to run on a Raspberry Pi 4

Install Docker through this guide

Install python

sudo apt install -y python python-pip libffi-dev python-backports.ssl-match-hostname

Install Docker Compose

@petergerdes
petergerdes / homekit-adventures.md
Last active July 22, 2019 15:29
My adventures with HomeKit and Homebridge

Adventures with HomeKit and Homebridge


Because Dax said I need to write this stuff down, so here I go.

Hardware in my setup

  • AppleTV 4K & HD
  • Raspberry Pi 2b
  • Philips Hue lights + Squared v2 bridge
  • Philips Hue Sensors
  • Amazon Echo Dot (3rd gen)