Skip to content

Instantly share code, notes, and snippets.

@DonPavlov
Created January 29, 2018 16:11
Show Gist options
  • Save DonPavlov/6c36bb26bbcb34a6ceacce48fb5aeec5 to your computer and use it in GitHub Desktop.
Save DonPavlov/6c36bb26bbcb34a6ceacce48fb5aeec5 to your computer and use it in GitHub Desktop.
Script to install docker and a resilio image on a Raspberry pi
#! /bin/sh
### How to get Resilio and Docker unto your Raspberry Pi ###
# Install Docker unto your Raspberry Pi using the linuxserver resilio armhf image
sudo apt update;
sudo apt dist-upgrade -y;
# Install the latest docker with the easy docker install script. You need to trust this dude.
curl -sSL https://get.docker.com | sh
sudo systemctl enable docker
sudo systemctl start docker
# create folders for resilio sync:
cd ~
mkdir sync
mkdir sync/folders
mkdir sync/mounted_folders
mkdir resilio-conf
# next install the docker image for resilio
# settings for this are using the default user id of the raspberry pi
# you can find this out using $ id pi
# default folders and ports are also used
docker run -d \
--name=resilio-sync \
--restart=unless-stopped \
-v /home/pi/resilio-conf:/config \
-v /home/pi/sync:/sync \
-e PGID=1000 -e PUID=1000 \
-e UMASK_SET=<022> \
-p 8888:8888 \
-p 55555:55555 \
lsioarmhf/resilio-sync
## Next open the webserver on your pi to setup the resilio sync shares.
## i encourage you to create an encrypted share on the webserver/pi and use a read write
## share key to use on your encrypted smartphone or laptop/desktop pc.
# python -mwebbrowser http://localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment