Dropbox on Linux: installing from source, commands, and repositories
The information in this article applies to all Dropbox users on Linux.
The Dropbox desktop app is available on supported Linux operating systems. If you use Dropbox on a Linux machine, we recommend that you download and install the appropriate Linux package of the Dropbox desktop app.
Learn more about the system requirements for Dropbox on Linux.
Note: If you use single sign-on (SSO), you’ll need to log in to dropbox.com before installing the Dropbox desktop app.
How to install Dropbox on Linux
To install Dropbox on your Linux desktop, download and install the appropriate package:
Once installed, you’ll be prompted to either log in or create a new account.
Learn more about installing the Dropbox desktop app on Linux.
How to build the Dropbox installer for Linux from source
The Dropbox installation package source has been released to the public via a GPL license. This means that if the installation packages for your Linux or Unix distribution of choice aren't available, you can still compile a version yourself.
Due to legal requirements, patches can only be accepted into a release if you release your patch into the public domain.
You'll be credited in the CONTRIBUTORS file included with every package. To submit your patches, contact us. If you want to develop on the Dropbox platform, visit the developers site and check out the Dropbox API.
What Linux commands are available on Dropbox?
The Dropbox desktop app can be controlled with the Linux Command Line Interface (CLI). Before running commands, ensure that you’re running the available commands while your prompt is located at the root (top level) of the Dropbox folder.
By default, the Dropbox folder is located in ~/Dropbox (or ~/Dropbox (Your team name), if you have a Dropbox team account). If you moved the Dropbox folder to a different location, be sure you navigate to the root of your actual Dropbox folder before running the commands below.
Important note: The Dropbox desktop app for Linux is being updated and simplified. To continue enjoying the full desktop experience on Linux, you may need to update your system or download additional libraries.
Commands
This following list provides information on settings you can manage in the CLI, with sample commands to help you.
Help
Print a list of available commands and a short description of each one to provide guidance on how to use it:
dropbox help [command]
Start
This starts the Dropbox daemon, if it isn’t already running. If it’s already running, this won’t do anything:
dropbox start [-i]
dropbox start [i--install]
Autostart
Choose whether to have Dropbox start automatically at login:
dropbox autostart [y/n]
- y: Dropbox will start automatically at login
- n: Dropbox won’t start automatically at login
Note: This command may only work on currently supported Ubuntu distributions.
Proxy
If you’re behind a proxy and need to configure access, this allows you to manually change proxy settings for Dropbox:
dropbox proxy MODE [TYPE] [HOST] [PORT] [USERNAME] [PASSWORD]
You can choose from the following configurations:
MODES
- none
- auto
- manual
The following selections are only valid in manual mode:
- TYPE
- https
- socks4
- socks5
- HOST: Proxy hostname
- PORT: Proxy port
- USERNAME: Proxy username (if required)
- PASSWORD: Proxy password (if required)
Lansync
This enables or disables LAN sync, depending on your network preferences:
dropbox lan sync [y/n]
- y: Dropbox will use LAN sync (default)
- n: Dropbox won't use LAN sync
Throttle
This sets bandwidth limits for file syncing, with the option to change the DOWNLOAD and UPLOAD limits:
dropbox throttle DOWNLOAD UPLOAD
- DOWNLOAD
- unlimited
- Set a manual limit in KB/s
- UPLOAD
- unlimited
- auto
- Set a manual limit in KB/s
For example:
dropbox throttle 500 unlimited
dropbox throttle unlimited auto
dropbox throttle 500 100
Running
This command can only be used in scripts to check if Dropbox is running. This command doesn't output anything to the CLI.
dropbox running
Status
This command prints out the current sync status of the Dropbox daemon:
dropbox status
Filestatus
This checks the current sync status of each specific file:
dropbox filestatus [-l] [-a] [FILE]…
- -l or --list: Prints out information in a format similar to the native Linux command ls
- -a or --all: Doesn’t ignore entries starting with "."
Note: Aliases include stat.
ls
This is an alias for filestatus -l that lists Dropbox contents to the CLI:
dropbox ls [FILE]…
Sharelink
This prints out a sharable link, which can be used to share a chosen file with others, even if they don’t have a Dropbox account:
dropbox sharelink FILE
Stop
This stops the Dropbox daemon:
dropbox stop
Managing selective sync settings
Selective sync is a feature in the Dropbox desktop app that allows you to add or remove Dropbox folders from your hard drive to save space on your computer, without deleting the files themselves. Learn more about selective sync.
You can manage selective sync settings using the following commands:
Exclude
If you run exclude list, or just exclude with no other input, the CLI will display a list of directories that are currently excluded from syncing.
dropbox exclude [list]
dropbox exclude
dropbox exclude add [DIRECTORY] [DIRECTORY] …
dropbox exclude remove [DIRECTORY] [DIRECTORY] …
Note: A specified path must be within the Dropbox folder if you want to remove it from the exclusion list.
The following is an example of managing selective sync settings using the CLI. It covers some scenarios where you might need to adjust these settings, with a breakdown of each command and what it means.
First, you needed to change directory to the Dropbox folder location:
username@machine:~$ cd ~/Dropbox
username@machine:~/Dropbox$ tree -d
├── Documents
│ ├── Personal
│ └── Work
├── Fun
│ └── Largest Folder Ever
└── Media
├── Images
└── Videos
8 directories
username@machine:~/Dropbox$ dropbox exclude list
No directories are being ignored.
username@machine:~/Dropbox$ dropbox exclude add Documents/Personal Media/Videos/
Excluded:
Documents/Personal
Media/Videos
username@machine:~/Dropbox$ dropbox exclude list
Excluded:
Documents/Personal
Media/Videos
username@machine:~/Dropbox$ tree -d
.
├── Documents
│ └── Work
├── Fun
│ └── Largest Folder Ever
└── Media
└── Images
6 directories
username@machine:~/Dropbox$ dropbox exclude add Fun/Largest\ Folder\ Ever/
Excluded:
Fun/Largest Folder Ever
username@machine:~/Dropbox$ tree -d
.
├── Documents
│ └── Work
├── Fun
└── Media
└── Images
5 directories
username@machine:~/Dropbox$ dropbox exclude list
Excluded:
Documents/Personal
Fun/Largest Folder Ever
Media/Videos
username@machine:~/Dropbox$ dropbox exclude remove Media/Videos Documents/Personal
No longer excluded:
Media/Videos
Documents/Personal
username@machine:~/Dropbox$ tree -d
.
├── Documents
│ ├── Personal
│ └── Work
├── Fun
└── Media
├── Images
└── Videos
7 directories
username@machine:~/Dropbox$
Community answers
-
Posted by: MrShifty 60 days ago
141
2
0
-
Posted by: augsburg75 166 days ago
72
1
0
-
Posted by: gonzalesc 198 days ago
240
4
0