Code Monkey home page Code Monkey logo

media-server's Introduction

media-server

Quick setup of pi. v2.x

Stack:

  • Deluge - torrent client - port 8112
  • Jackett - torrent indexer - port 9117
  • Sonarr - TV show management - port 8989
  • Radarr - movie management - port 7878

Install:

  1. Install Docker Refer to Docker's official documentation for installation steps.

  2. Clone repository and set up Docker compose file

    git clone [email protected]:SJMakin/media-server.git /opt/media-server
    cd /opt/media-server
    chmod +x docker-compose.yml

    It is a best practice to place Docker Compose files in /opt.

  3. Mount external USB hard drive

    Find the UUID of the drive using the following command:

    lsblk -o NAME,UUID

    Look for your external USB hard drive in the output and note the corresponding UUID.

    Edit /etc/fstab to include:

    UUID=0E340C47340C33ED /mnt ntfs-3g defaults,nofail 0 2

    Then mount the drive:

    sudo mount -a
  4. Install Samba and configure shared folder a. Install Samba:

    sudo apt update
    sudo apt install samba

    b. Edit /etc/samba/smb.conf:

    sudo nano /etc/samba/smb.conf

    Add the following to the end of the smb.conf file:

    [media]
    path = /mnt
    available = yes
    valid users = pi
    read only = no
    browsable = yes
    public = yes
    writable = yes

    c. Create the system user (if not already existing):

    sudo adduser pi

    d. Set a Samba password for the user:

    sudo smbpasswd -a pi
    sudo smbpasswd -e pi

    e. Restart Samba:

    sudo systemctl restart smbd
  5. Firewall configuration

    sudo ufw allow OpenSSH
    sudo ufw allow 8112/tcp
    sudo ufw allow 9117/tcp
    sudo ufw allow 8989/tcp
    sudo ufw allow 7878/tcp
    sudo ufw enable

Docker Compose Usage:

  1. Start the services:

    docker compose up -d --force-recreate
  2. Update the services:

    docker compose pull
    docker compose up -d --force-recreate
  3. Stop the services:

    docker compose down --remove-orphans

Pi-Hole

Quick installation:

curl -sSL https://install.pi-hole.net | bash

Setup:

Disable DHCP on your router and enable it on Pi-hole.

TODO:

Add Pi-hole to the Docker stack instead of bare metal.

media-server's People

Contributors

sjmakin avatar

Watchers

 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.