Install RuTorrent with Docker on Rapsberry Pi

1. Flash Raspbian Lite

2. Run the following commands (through serial, SSH, or directly)

#install docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh

#don't need sudo to run future docker commands
#make sure to log out and back in after this!
sudo usermod -aG docker pi

#make directories
mkdir -p ~/rutorrent/conf
mkdir -p ~/rutorrent/downloads

#make a container: https://hub.docker.com/r/lsioarmhf/rutorrent/
docker create --name=rutorrent \
-v ~/rutorrent/conf:/config \
-v ~/rutorrent/downloads:/downloads \
-e PGID=`id -g` -e PUID=`id -u` \
-e TZ=America/Vancouver \
-p 80:80 -p 5000:5000 \
-p 51413:51413 -p 6881:6881/udp \
--restart unless-stopped \
lsioarmhf/rutorrent

#run the container
docker start rutorrent

Install Syncthing on Raspberry Pi Tutorial

1. Flash Raspbian Lite

2. Run the following commands (through serial, SSH, or directly)

# Add the release PGP keys:
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

# Add the "stable" channel to your APT sources:
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

# Update and install syncthing:
sudo apt-get update
sudo apt-get install syncthing

sudo systemctl enable syncthing@pi.service
sudo systemctl start syncthing@pi.service

#make accessible over the network by replacing 127.0.0.1 to 0.0.0.0
sudo sed -i "s/127\.0\.0\.1/0.0.0.0/g" ~/.config/syncthing/config.xml