Installation...
Take
a CentOS 6.x box for a smooth install (the curl on centos 5.x seems
buggy/incompatible)
- As root user, run the 2 commands below
- curl "https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh"
-o /tmp/dropbox_uploader.sh
- install
/tmp/dropbox_uploader.sh /usr/local/bin/dropbox_uploader
- dropbox_uploader is installed and can be run by any
user. As root or as any other user... run command
- dropbox_uploader
- Do the instructions as
the script says
- 1) Open the
following URL in your Browser, and log in using your account: https://www2.dropbox.com/developers/apps
- 2) Click on
"Create App", then select "Dropbox API app"
- 3) Select
"Files and datastores"
- 4) Now go on
with the configuration, choosing the app permissions and access
restrictions to your DropBox folder
- 5) Enter the
"App Name" that you prefer (e.g. JunedTest)
- Now, click on the
"Create App" button.
- When your new
App is successfully created, please COPY the, App Key, App Secret and
the Permission type shown in the confirmation page
- Asks you to confirm by
going to a URL like https://www2.dropbox.com/1/oauth/authorize?oauth_token=<SOMETOKEN>,
click ALLOW
- It saves your info (in
the file .dropbox_uploader)
- Run
"dropbox_uploader" which prints all commands
To
remove the credentials, remove the file .dropbox_uploader in your home
dir.
Remove
/usr/local/bin/dropbox_uploader if u no longer need it.
No comments:
Post a Comment