Skip to content

Instantly share code, notes, and snippets.

@jaimemrjm
Last active March 28, 2023 11:22
Show Gist options
  • Save jaimemrjm/beca9ae22278a14deaaf040870c17eed to your computer and use it in GitHub Desktop.
Save jaimemrjm/beca9ae22278a14deaaf040870c17eed to your computer and use it in GitHub Desktop.
Syncthing, Apache/Nextcloud/Pi-hole, Plex Media Server and Home Assistant

Syncthing

How to add a new device

Install Syncthing-Fork when Android device. From the Android app, Device tab, add new device, scan the server Syncthing ID, enabled as Introductor device and wait for notification on the phone. Please, don't add the sync folders in Android app previously, because you will be notified in Android automatically to add the folders when the process finishes. If doesn't, open the Web UI from the Android app.

Apache:

I will use 81 for Apache (Nextcloud)

  • Step 1: change 80 to 81 /etc/apache2/ports.conf and /etc/apache2/sites-enabled/000-default.conf config files.

127.0.0.1 in /etc/resolv.conf fix the problem for pi-hole docker in Raspbian.

Plex Media Server

Check remote access

https://app.plex.tv/desktop/#!/settings/server/<key>/settings/remoteAccess

Avoid transcoding

  • Include these profiles in the directory Profiles of Plex Media Server to avoid transcoding with iOS devices:
wget https://raw.githubusercontent.com/titelas/plexvps/master/iOS.xml https://raw.githubusercontent.com/titelas/plexvps/master/tvOS.xml
mkdir /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Profiles
cp  iOS.xml tvOS.xml /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Profiles
  • Check Ref Frames: if Ref Frames > 4 for 4.1 Profile in 1080p H.264 videos, Plex Media Server will transcode them.

TODO:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment