Dropbox Hack on Headless ARM Linux
What I Used
- Headless Ubuntu Server (with python 2.7) running on the Hackberry A10 (https://www.miniand.com/forums/forums/development--3/topics/headless-ubuntu-llmp-server-image-guide)
- Linux Mint 14
- Basic knowledge of the linux terminal & python
What To Do
- Go to http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other, download, and then install the correct version of setup tools on the server (required by Dropbox). Then in the terminal
scp setuptools-0.6c11-py2.7.egg USERNAME@SERVER:LOCATION
ssh USERNAME@SERVER
cd LOCATION
sudo sh setuptools-0.6c11-py2.7.egg - Go to https://www.dropbox.com/developers/start/core. Follow the steps outlined, picking a 'Full Dropbox' app type and the Python SDK. Save the app key and secret key for later. Then in the terminal, again.
scp dropbox-python-sdk-1.5.1.zip USERNAME@SERVER:LOCATIONssh USERNAME@SERVER
cd LOCATIONsudo python setup.py install - Now to update the required fields in (dropboxSDK)/examples/cli_client.py using your favorite text editor. From step 2, copy+paste the app key and secret key into their respective variables at the top of the file.
- Run the program from the terminal with
python cli_client.py
>login
It will ask you to visit a link to authorize the app. Open the link your web browser and click 'Allow'. You should only have to do this once.
This example app is a highly simplified command-line tool for working with your Dropbox folder. It is missing most of what makes Dropbox Dropbox but it forms a great stepping off point for a home-brewed hack.