This guide is about how to install Dropbox and its CLI (command line interface) on an Ubuntu server. Specifically, I am using a BuyVM Ubuntu 11.10 VPS without a GUI. An important note is that Dropbox increased my RAM usage by ~150MB, even while idling. This installation is probably not suited for a computer with 256MB or less.
The next two commands will download Dropbox and install it to the root of the home directory of the current user.
1 2 |
|
Start the daemon for the current user
1
|
|
What will happen now is the terminal will output a website URL that you will need to navigate to using an internet browser. This is to link the installation to your Dropbox account. YOU MUST LEAVE THE PROGRAM RUNNING WHILE GOING TO THE WEBSITE.
Once you have finished this step, Dropbox will say is has been successful with linking. You may hit CTRL-C
now to stop the program.
Currently, we now have new folder, ~/Dropbox
.
We are now going to install the CLI for Dropbox, because it will make our lives much easier.
1 2 |
|
Now we need to start Dropbox, and let it initialize some of the folders and files so we can apply settings to them.
1
|
|
To have Dropbox start when the system is booted, we are going to edit the crontab. Usually, scripts are placed in init.d, but the script never worked for me on Ubuntu 11.10.
Open the crontab by typing
1
|
|
Add @reboot ~/.dropbox-dist/dropboxd
somewhere in the file on its own line.
Make sure cron is configured correctly to start up on a reboot.
1
|
|
In my experience, it is now best to reboot the server. If I did not restart the computer now, I was not able to configure my Dropbox installation using the CLI we downloaded. It would always give me the error “Dropbox is not responding”
To find out what the CLI can do, you can type
1
|
|
To exclude specific folders, you can type
1
|
|
There you have it. Dropbox is now installed, it runs when the computer is booted using a cron command, and you can only sync the folders that you want.