This post is about how to sync your photos on your digital picture frame between one or several computers using Resilio Sync. In short, Resilio Sync is like Dropbox but for the Raspberry Pi. It is especially useful if you want to allow one or more persons to add or modify the pictures without access to the local wifi network to which the picture frame connects.
It is ideal for a family where, e.g., the photo frame is with the parents, and the children live outside of the family home or for companies wanting to administer an advertising frame in the reception area remotely.
Resilio Sync works like Dropbox with the difference that no copies of the files are being stored in the Cloud or on any other server. And unlike Dropbox, it works on the Raspberry Pi.
I’ll show you how to install it on every current Raspberry Pi model and how to share your image folder with anyone you like.
Folder sharing among colleagues, family & friends
Imagine you have three children living all over the world who can all quickly add images to your digital picture frame at home. It can be a lot of fun.
When one of my nieces got pregnant, she didn’t immediately tell her mother. Instead, she uploaded an ultrasonic image with a little baby-peanut to her parents’ digital picture frame using Resilio Sync. So imagine the surprise when a few days later, this image randomly came up on the screen. Tears rolled, calls were made, bottles were uncorked.
To open up your digital photo frame to others is quite simple. You are undoubtedly familiar with Dropbox, the software that allows you to sync and share entire folders with business partners or friends, or to keep a copy in the cloud. Unfortunately, Dropbox does not work on ARM-based computers like the Raspberry Pi.
Resilio, however, does. It is a similar tool with one exciting advantage.
Resilio Sync – like Dropbox but more private
Resilio Sync doesn’t store the files on a cloud server but keeps them only synchronized between peers. This means that your data is never shared outside of the community that you define. This is great for managing your photos on your digital picture frame.
Resilio Sync used to be called BitTorrent Sync but was spun out of BitTorrent Inc. in 2016. The company claims to offer “for a wide array of applications such as large file collaboration, file sync, folder sync, automated backup, and sending large files faster and more securely, the industry-leading and fastest private cloud solution trusted by millions of consumers and thousands of business worldwide.”
For many years, I have come to appreciate the speed and stability of Resilio Sync. It works great for managing your images on your digital picture frame from wherever you are. And it’s free for home use.
Why Dropbox doesn’t work on the Raspberry Pi
It took me a while to figure this out. I tinkered with an app called Dropbox Uploader but wasn’t successful to make it sync bi-directionally.
Dropbox natively isn’t compiled for the ARM processor. Any solutions you can find are more or less complicated workarounds and emulate an x86 environment.
To my knowledge, Dropbox has not announced any plans to bring it to the Raspberry Pi.
The following instructions assume that you have access to your Raspberry Pi via Terminal and that you have file sharing activated. If you haven’t, please read the article “How to set up your Raspberry Pi for your digital picture frame” first.
There is one specific setting for the Raspberry Pi Zero that is why there is a separate section below.
This is a free version that has all the functionality that we need for our use case. If you have a corporate use case, you should check the licensing terms.
How to install Resilio Sync on your Raspberry Pi 2, 3, and 4
Connect to your Raspberry Pi in Terminal through ssh and register the Resilio repository:
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list
Next, add a public key.
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -
Add the correct architecture and update the repository list with the new information:
sudo dpkg --add-architecture armhf && sudo apt update
Now, we need to alter the repository file to include information about the Raspberry Pi architecture.
sudo nano /etc/apt/sources.list.d/resilio-sync.list
Delete the only line in the editor windows with CTRL+K and copy/paste this line into it.
deb [arch=armhf] http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
Save (CTRL+O) and exit (CTRL+X).
Install Resilio Sync
sudo apt update && sudo apt install resilio-sync
and make sure that Resilio is started automatically at boot:
sudo systemctl enable resilio-sync
How to install Resilio Sync on your Raspberry Pi Zero
Connect to your Raspberry Pi in Terminal through ssh and register the Resilio repository:
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list
Next, add a public key.
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -
Add the correct architecture and update the repository list with the new information:
sudo dpkg --add-architecture armel && sudo apt update
Now, we need to alter the repository file to include information about the Raspberry Pi architecture.
sudo nano /etc/apt/sources.list.d/resilio-sync.list
Delete the only line in the editor windows with CTRL+K and copy/paste this line into it.
deb [arch=armel] http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free
Save (CTRL+O) and exit (CTRL+X).
Install Resilio Sync
sudo apt update && sudo apt install resilio-sync
and make sure that Resilio is started automatically at boot:
sudo systemctl enable resilio-sync
How to install the user and the sync directories
Resilio Sync is now up and running on your Raspberry Pi.
Go into the “Pictures” folder on your Raspberry Pi and create a new directory “ourphotos”.
Then, access the graphical interface by opening a browser window on your computer by typing
the-ip-address-of-your-raspbery-pi:8888/gui
For example:
192.168.1.2:8888/gui
You may get the message below. Click “Advanced” and then “Proceed”.
Enter your username and your password. Press “Continue”.
Now enter the name how you want your digital picture frame to appear in Resilio, e.g., “digitalpictureframe”. Check the two boxes.
Another window will come up and ask you for username and password, enter the same values as you just did.
Tell Resilio Sync which folder you want to designate for sharing by clicking on “+” in the upper left corner. Select a Standard Folder and navigate to the folder with your photos that you created earlier. Start by selecting “Home” and you will find your Pictures folder. Click “Open”.
If you encounter this error message
Don’t have permissions to write to selected folder.
you need to grant permissions to the rslsync user that Resilio Sync is running as. To do this, enter the following commands:
sudo apt install acl && sudo setfacl -R -m "u:rslsync:rwx" /home/pi
Replace “pi” with your chosen user name should it be different.
In the share window, change the permission to “Read & Write” and uncheck “New peers I invite must be approved by me”.
Click “Email” if you want to send someone the link to this folder, “Copy” to store the link in the clipboard.
If you want the link to be used several times because you are sending it to a group of people, you have to increase the value in “Link can be used .. time(s)”.
On each computer that you designate for sharing your folder, Resilio Sync must be installed. This is also explained in the email that the recipient receives.
If you later want to add people to your shared folder, repeat the procedure.
Conclusion
Congratulations! You have now made it very easy to add images to your digital photo frame.
If you don’t want to install Resilio Sync on all shared computers, you can also use Dropbox by placing your shared Resilio Sync folder in your Dropbox directory. From there on, you can share your Dropbox folder.
Was this article helpful?
Thank you for your support and motivation.