Skip to content

TD Setup (MediaBox)

agamus edited this page May 3, 2020 · 1 revision

Cloudbox Setup

  1. Install Dependencies & Cloudbox Repo

curl -s https://cloudbox.works/scripts/dep.sh | sudo -H sh; curl -s https://cloudbox.works/scripts/repo.sh | bash >/dev/null 2>&1; cd ~/cloudbox

  1. Edit accounts.yml

https://github.com/Cloudbox/Cloudbox/wiki/Install%3A-accounts.yml

  1. Run preinstall script

https://github.com/Cloudbox/Cloudbox/wiki/Install%3A-Preinstall

Note: you may have to run it twice

  1. Install Cloudbox Core

sudo ansible-playbook cloudbox.yml --tags core

Note: you may have to run it twice

  1. Reboot Server

Smount Setup

RGEN rclone setup

git clone https://github.com/maximuskowalski/smount.git

cd smount

sudo nano rgen.sh

Add your client ID and secret

client_id=somebody.apps.googleusercontent.com

client_secret=eleventyseven

Run rclone config and edit each mount to auth the token

Mount Setup

cd smount

sudo nano mountup.sh

USER=seed #user name goes here

GROUP=seed #group name goes here

SET_DIR=./smount/sets

chmod +x mountup.sh

Run the script:

./mountup.sh set.mount

MergerFS Setup

sudo nano /etc/systemd/system/mergerfs.service

Replace this line in the service file:

/mnt/local=RW:/mnt/remote=NC:/mnt/sharedrives/share-drive-name*=RO /mnt/unionfs

sudo systemctl daemon-reload

sudo systemctl restart mergerfs

Check mount:

ls /mnt/unionfs/

Plex or Emby Setup

cd ~/cloudbox

sudo ansible-playbook cloudbox.yml --tags plex

or

sudo ansible-playbook cloudbox.yml --tags emby

Clone this wiki locally