Share
How to Install Dropbox on a Raspberry Pi

September 19, 2023
22 minutes
Share
What you’ll need
Interests
Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.
- Raspberry Pis use ARM processors, which Dropbox doesn’t officially support.
- Dropbox is typically used in a web browser or using the Dropbox client, but many people use Raspberry Pis in “headless” mode without a screen or keyboard, making it impossible to do this.
1 – What you’ll need
For this example, we’re using a Raspberry Pi 3 running the latest version of Raspberry Pi OS in headless mode to install Dropbox. However, the model of Raspberry Pi you personally use doesn’t matter, as these steps should work for all Raspberry Pi models. If you prefer to use a graphical interface for your machine, simply open up a new Terminal window to get started. Otherwise, you’ll need to connect remotely using SSH to run the necessary commands instead. On the software side, you’ll need to use an open-source program called rclone. Often described as “The Swiss army knife of cloud storage”, rclone acts as a third-party interface to over 40 different cloud storage products and protocols. This means you can use rclone to access any files or folders stored on Dropbox using your Raspberry Pi, even without official Dropbox support.2 – Installing rclone
Before you begin installing rclone, you’ll need to make sure your Raspberry Pi is up-to-date. To this, open your terminal window or SSH connection and run the following commands:sudo apt update && sudo apt upgrade
.
To be sure that everything is in order after it finishes, go ahead and reboot the system with sudo reboot
.

curl https://rclone.org/install.sh | sudo bash
in the terminal or SSH window.

https://rclone.org/install.sh > install.sh
followed by cat install.sh
or nano install.sh
to view the script contents locally.
The script is completely safe to run, but it’s always best to be cautious.
3 – Configuring rclone
Rclone refers to any cloud service that it connects to as a remote. As such, you’ll need to configure your own Dropbox account as a new remote. Runrclone config
in the terminal or SSH window and type n to add a new remote. It will ask for a name to identify it in the system, so type in dropbox or another suitable name. If you’re running a more complex setup (with multiple Dropbox accounts, for instance), you can use a different descriptive name instead.


rclone authorize "dropbox"
on it (not on the Pi!), replacing dropbox with the remote name you used in the previous step. The quote marks in this case make no difference since the name contains no spaces, but it doesn’t hurt to include them. You’ll need to provide them if you use a remote name that uses spaces, however.


4 – Installing rclonesync
Since rclone by default does not allow for bidirectional sync to allow you to make changes back and forth between your Dropbox storage and your local devices (as Dropbox should support), you’ll need to use an additional script called rclonesync to enable support for it. Type the following two commands in the terminal window or via SSH to download rclonesync and set it up on your Raspberry Pi:sudo curl https://raw.githubusercontent.com/cjnaz/rclonesync-V2/master/rclonesync --output /usr/local/bin/rclonesync && sudo chmod +x /usr/local/bin/rclonesync
mkdir ~/.rclonesyncwd
As before, the files will download a script to run from the internet. If you’re unsure about this, type the following command in your terminal or SSH window first:
sudo curl https://raw.githubusercontent.com/cjnaz/rclonesync-V2/master/rclonesync --output /usr/local/bin/rclonesync
This will download the file to your /usr/local/bin
directory, allowing you to view the file before you run it using cat
or nano
.
5 – Configuring rclonesync
For this example, rclone will synchronize a folder named MyStuff located in Dropbox with a local folder called dropbox in the Raspberry Pi’s home directory. You can replace these example directory names with your own in the commands below.
mkdir ~/dropbox
into the terminal or SSH window (with ~ referring to the Pi’s home directory).
You’ll then need to set up rclonesync by running rclonesync --first-sync dropbox:/Mystuff ~/dropbox
in the terminal or via SSH. Note that the dropbox before the colon is the remote name used earlier (so replace this if you used something else), while the other folder is the local folder.

rclonesync dropbox:/Mystuff ~/dropbox
You can test this by creating an empty file in the local sync folder with touch ~/dropbox/testfile.txt
or by removing a file on Dropbox using your web browser or another computer. You can then run the command again, possibly with the –verbose option to see more information:
rclonesync --verbose dropbox:/Mystuff ~/dropbox
,
If the connection is working, new files should appear or deleted files should disappear, depending on the action you performed.
6 – Automating the sync process
Manually running therclonesync
command every time you want to sync your files isn’t the best solution. To automate the sync process with Dropbox, you’ll need to use the Cron tool.
Cron allows us to run specific commands on a schedule, while Crontab allows us to configure this schedule.
In the terminal or SSH window, type crontab -e
to begin changing your Crontab schedule. If it asks you to choose an editor, select nano.
At the bottom of the file, add the following statement, making sure to replace the directories named with the correct directories on your Raspberry Pi and Dropbox storage:
* * * * * /usr/local/bin/rclonesync dropbox:/MyStuff/ ~/dropbox/
Save and exit Crontab by typing Ctrl + X, Y and Enter in sequence.

7 – Next Steps
Once you’ve set up rclonesync, you should be able to sync your files using Dropbox to your Raspberry Pi (and back again). If you need to change the sync schedule or the folders that you sync, just repeat the steps above to change your Crontab schedule and alter the rclonesync command. Installing Dropbox on a Raspberry Pi is a great way to keep your important files backed up, but it isn’t the only thing you can do with your Pi. There are plenty of Raspberry Pi projects you can try, from building your own RetroPie retro gaming rig to building a Raspberry Pi DIY NAS solution for all your important files. Do you use Dropbox on your Pi, or do you prefer a different cloud storage solution? Let us know how you use your Pi for storage in the comments below.How to Run a Minecraft Server on the Raspberry Pi

December 7, 2023
There are several ways to go about running a Minecraft server on the Raspberry Pi. In this guide, I’ll cover how to install Nukkit—a cross-platform Minecraft server that’s super easy to set up on the Raspberry Pi. This server should work with PCs, consoles, and tablets running Minecraft 1.14. I’ll be using a Raspberry Pi
Continue Reading