Dropbox Daemon Management for KDE

Dropbox in KDE does not offer the same level of integration with the file manager, dolphin, as it does with its gnome equivalent so I installed it and settled on choosing the dropbox daemon whenever I required to run dropbox as opposed to running it every time on startup. This gradually became a pain so I wrote a handy script that can start or stop dropbox easily. I placed this in a binary directory in my home directory.

~/bin

you can make with
mkdir ~/bin

In debian , this is automatically added to to the path via an if clause in the ~/.profile file like so.

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi

If for some reason it is different for your distribution you can just add the directory to your path by adding the above if statement to you ~/.profile or adding

export PATH=$PATH:~/bin

at the end of the ~/.profile file.

once done you can reload your .profile by typing


source ~/.bash_profile

Alternatively, if you like saving keystrokes you can type . ~/.bash_profile

Now save the code below to a file called dropbox in the ~/bin directory.
Change the permissions to make it executable
chmod u+x ~/bin/dropbox

now on a terminal you can type dropbox to start the daemon or the stop the daemon. Optionally you could add it to a gui menu.

#!/bin/sh
#script to start or stop the dropbox daemon
#Usage: simply type dropbox to start or stop the dropbox daemon

#check if daemon is already running
procs=`ps aux | grep -i "dropbox-dist" |grep -v grep | wc -l`

if [ "$procs" -eq "1" ];

then
echo "Stopping dropbox daemon"

killall dropbox

echo "daemon stopped"

exit

else

echo "Starting Dropbox Daemon . . "

~/.dropbox-dist/dropboxd &

echo "Running . ."

exit
fi

Advertisements

Minus File Sharing Service

I have recently discovered Minus. Minus is a simple file sharing platform that allows users to upload, publish and discover photos, docs, music, videos and more. It is similar to Dropbox however you get 10gbs starting off and 1gb per referral up to 50gbs. You can upload files with a maximum of 2gbs per file. What sets it apart from Dropbox and others alike is that users can search other users publicly uploaded files and follow users in a similar style to twitter. Also you do not need to provide an email address to sign up. Just choose a username and password and you are good to go.

Uploading Files to Minus

Uploading files to Minus can be done in a number of ways. The “main” method is by visiting the Minus website in an HTML5-enabled browser and ‘drag and dropping’ files on to the designated area.

Although the ‘drag and drop’ web interface for Minus is quick and easy to use – so much so that one could argue it negates the need for desktop apps – the folks at Minus also provide desktop apps for all major desktop and mobile platforms, as well as browser extensions for Chrome and Firefox. 

And the fun doesn’t end there as 3rd party app developers can make use of the Minus API to integrate the service into their applications.

If you wish to signup you can get an extra 1gb free with my referral