Cloud app functionality on Linux using +Dropbox
Here at +Qriously
we work mostly on Macs and Linux and most of the time we do so in three different countries. For some time now our Mac people were using the excellent Cloudapp to share screenshots between computers. It works like this: You hit a keyboard shortcut, select the area of your screen, wait for a ding sound and you have a link in your clipboard ready to paste in a chat window or email. We Linux users had to save the screenshot, attach it to an email and send it. That is until the day we finally had enough and that day was today.
Here is how you can replicate the behaviour using open source software and a (free) dropbox account.
Software you need to install beforehand:
sox (to play the ding sound)
python (for the dropbox upload script)
python-setuptools (to install dropbox sdk)
xsel (to manipulate the clipboard)
scrot (to take a screenshot)
1) After you have all the above installed, download the dropbox python sdk (you can find it here https://www.dropbox.com/developers/reference/sdk
), unpack it and run the command "python setup.py install -f" to install it.
2) Find a sound file that should play after the link is ready and rember its location. (You can use mine from here: http://bit.ly/xWdv9d
3) Download the shell script from http://bit.ly/z6b6I2
and open it in a text editor. Modify the path to your tmp folder if necessary and change the line "play /home/XXX/Music/success.ogg" to wherever your sound file from step 2 is located. Copy it to /usr/local/bin and make it executable (chmod +x)
4) Download the python script from http://dl.dropbox.com/u/12761277/uploadDropboxScript.py
and open it in a text editor. Modify the path to python if necessary and the line TOKEN_FILE = "/home/XXX/token_store_dropbox.txt". This file should not exist yet, it will hold the oauth tokens from dropbox. Go to https://www.dropbox.com/developers/apps
and create an app. Replace the key and secret in the script (my default ones I guess will be blocked pretty soon...). Now move the script to /usr/local/bin and make it executable too.
5) run the dropbox script with the -s (setup) parameter to connect it to your dropbox account (uploadDropboxScript.py -s). Open the link from the script in a browser, accept the permissions and hit enter in the console again.
6) all done. now you can run "dropbox_screenshot" in a console to test it. If all works out you cann asign a keyboard shortcut to it and you are good to go.
If you do not happen to have a dropbox account yet and you are creating one, please consider using my referral link http://db.tt/VNmL0tR
as I will get some extra free space for every sign-up.