Install Dropbox via command line
The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.
cd ~ && wget -O – “https://www.dropbox.com/download?plat=lnx.x86” | tar xzf –
cd ~ && wget -O – “https://www.dropbox.com/download?plat=lnx.x86_64” | tar xzf –
Next, run the Dropbox daemon from the newly created .dropbox-dist folder.
If you’re running Dropbox on your server for the first time, you’ll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory. Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.
1.2. Instal CLI Manager
$ mkdir -p ~/bin $ wget -O ~/bin/dropbox.py "http://www.dropbox.com/download?dl=packages/dropbox.py" $ chmod 755 ~/bin/dropbox.py $ ~/bin/dropbox.py help 1.3. Automatically Start at StartUP Reference: http://www.dropboxwiki.com/tips-and-tricks/install-dropbox-in-an-entirely-text-based-linux-environment#debianubuntu
1.3.1. Create /etc/init.d/dropbox
Change DROPBOX_USERS to include all users that want to run dropboxd (separated by spaces), and save the file to /etc/init.d/dropbox. You need root permission to do it. You might also have to specify the full path to start-stop-daemon if it is not in your $PATH
1.3.2. Confire StartUp Script
sudo chmod +x /etc/init.d/dropbox sudo update-rc.d dropbox default
To check the status of your connection:
Start: ~/bin/dropbox.py start
Stop: ~/bin/dropbox.py stop