# install dropbox
# sources are here
# https://www.dropbox.com/install?os=lnx

# download and install:
# 32-bit:
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

# 64-bit:
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.

# Start/restart dropboxd (dropbox daemon)
# when starting dropboxd from an ssh session MUST disable X11 forwarding (use -x)
# otherwise, the following will happen
# - the ssh session won't exit w/o ctrl-C or ctrl-Z 
# - nohup fails with error
     dropbox: Fatal IO error 11 (Resource temporarily unavailable) on 
    X server localhost:10.0.

# use this to start dropbox
ssh -x ops@fangtooth.shore.mbari.org
nohup .dropbox-dist/dropboxd &

~/.dropbox-dist/dropboxd

# 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.

# dropbox.py 
# there is a python utility for managing dropbox here:

http://www.dropboxwiki.com/tips-and-tricks/using-the-official-dropbox-command-line-interface-cli

# download it (e.g. to ~/bin)
wget -O ~/bin/dropbox.py "https://www.dropbox.com/download?dl=packages/dropbox.py"
chmod +x ~/bin/dropbox.py

# use it (disable ssh X11 forwarding before starting dropbox; see above)
dropbox.py help