Giter Site home page Giter Site logo

homescripts's Introduction

README.md

This is my own location that I used to store my scripts for my home Linux server. This is configured for my setup, but welcome any questions.

Home Configuration

  • Verizon Gigabit FIOS
  • Google Drive with an Encrypted Media Folder
  • Debian Stretch 9.5
  • Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
  • 32 GB of Memory
  • 250 GB SSD Storage for my root
  • 6TB mirrored for staging
  • rTorrent, NZBGet, Sonarr, Radarr and Ombi all run locally on my mergerfs mount that allows hard linking of files.

OpenVPN Configuration

For all my private traffic, I use TorGuard as they support port forwarding and have very good support.

Setup and Configuration

Rclone configuration

I use a combination of mergerfs and rclone to keep a local mount that is always written to first and my second mount point is my rclone Google Drive.

    /data/local (local disk)
    /GD (rclone mount)
/gmedia

They all get mounted up via my systemd scripts for gmedia-service.

My gmedia starts up items in order:

  1. rclone mount
  2. mergerfs mount
  3. find command which justs caches the directory and file structure and provides me an output of the structure

I use mergerfs over unionfs as it provides me the ability to define a file system to always write first to.

I use the following options:

Options = use_ino,hard_remove,auto_cache,sync_read,allow_other,category.action=all,category.create=ff

Two important items:

  • sync_read as rclone is default built with this and is required for proper streaming
  • category.action=all,category.create=ff says to always create directories / files on the first listed mount point and for my configuration that is my /data/mounts/local

Scheduled Nightly Uploads

I moved my files to my GD every ngiht via a cron job and an upload cloud script. This leverages an excludes file which gets rid of partials and my torrent directory.

Plex and Caddy Configuration

I use Caddy as a proxy server and route all my items through it. I build via this script.

My plex configuration in my CaddyFile as follows:

# Plex Server
plex.animosity.us {
gzip
timeouts 1h
log /opt/caddy/logs/plex.log
tls {
  dns cloudflare
}
proxy / 127.0.0.1:32400 {
 transparent
 websocket
 keepalive 12
 timeout 1h
    }
}

Known Issues

  • Plex Playback
    • Apple TV (4th generation)
      • Direct Play Stuttering
        • This happens on both vfs-read-chunk-size and cache. Cache masks this more so since the chunks remain local. If you turn off "Allow Direct Play", this will fix the issue as it will Direct Stream instead. Using another player such as Infuse / Emby works as well as they do not exihibit the Direct Play issue. I will retest this once TVOS 12 hits to see if it has been fixed or not.
        • RClone debug log shows the files being rapidly opened and closed as the client seems to request part of the file and close it out.
        • Another work around that seems to be going well for me is using Caddy as a proxy server.

homescripts's People

Contributors

infin8 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.