Home media server on Raspberry Pi with Plex and rTorrent.
- Home media server with Plex: Stream downloaded films, series and music to your devices. Compatible with PC, Android, iOS, Chromecast, Fire TV, smart tvs...
- Torrent server with rTorrent: Download torrent files directly on the Raspberry.
- Use Raspberry Pi installer to install raspbian (no desktop version) on an SD card.
- Boot the Raspberry and complete the initial configuration.
- (Optional) Use the
raspi-config
command to enable SSH.
From this point forward you can complete the installation from the Raspberry terminal or through SSH.
- Connect a hard-drive or SSD to the Raspberry via USB to store the media library.
- Identify the device running
lsblk
:$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part /mnt/usbdrive
- Add an entry on
/etc/fstab
to mount the device on/mnt/media
:/dev/sda1 /mnt/media ntfs defaults 0 1
- Reboot the Raspberry and make sure the disk is mounted on
/mnt/media/
.
- Install dependencies:
sudo apt-get update && sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common \ vim \ fail2ban \ ntfs-3g
- Install GPG signatures for the docker repo
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo apt-key fingerprint 0EBFCD88
- Add docker repo
echo "deb [arch=armhf] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | \ sudo tee /etc/apt/sources.list.d/docker.list
- Add your user to the group docker
sudo usermod -a -G docker $YOUR_USERNAME
- Logout and login.
Clone this repo and cd into it:
sudo apt install -y git
git clone https://github.com/manumarquezg/pi-media-server.git
cd pi-media-server
docker-compose up -d
Check the Raspberry IP in the local network (192.168.1.*
) using ifconfig
and go to http://<RASPBERRY_IP>/
.