Hubic offers 25 GB of storage for free. It makes sense therefore to transfer your Dropbox-ed files to Hubic.
First download the Dropbox files to your linux server with the dropbox CLI.
cd ~/ wget --content-disposition https://www.dropbox.com/download?plat=lnx.x86_64 tar xf dropbox-lnx.x86_64-2.6.20.tar.gz ~/.dropbox-dist/dropboxd
For 32 bit, you should use https://www.dropbox.com/download?plat=lnx.x86
Alternately, choose a package appropriate for your OS from here.
Now you will be prompted to link your server to Dropbox by visiting a weblink:
This computer isn't linked to any Dropbox account...
Please visit https://www.dropbox.com/cli_link?host_id=d1ecdecdf47d8e38732ffde33256fbb9e43 to link this device.
Enter your Dropbox password to link the server.
This computer is now linked to Dropbox. Welcome Joel
Once it is setup for the first time, you should start the dropbox daemon once again and send it to background.
Now, install the Hubic package for Debian from http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/1.2.4/
wget http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/1.2.4/hubiC-Linux-188.8.131.52-linux.deb dpkg -i hubiC-Linux-184.108.40.206-linux.deb apt-get install -f dbus-daemon --session --fork --print-address
Now use the output of the last command:
export DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-9VodnJEWDS,guid=7d86192aab25825f0feee264532e4bc4' hubic login [email protected] Dropbox/ hubic start
To automatise login, do:
#hubic login --password_path=/root/.hubicpassword [email protected] Dropbox/
Here, you should be creating a file /root/.hubicpassword which contains your password in plaintext.
To get the status of synchronization, use the following:
Keep the Dropbox service running:
You should install the Dropbox CLI (command line interface) which can be used to get the status of dropbox daemon, start and stop the daemon etc.
Install the CLI:
#mkdir -p ~/bin #wget -O ~/bin/dropbox.py "https://www.dropbox.com/download?dl=packages/dropbox.py" #chmod +x ~/bin/dropbox.py #~/bin/dropbox.py help
Dropbox command-line interface
Note: use dropbox help
status get current status of the dropboxd
help provide help
puburl get public url of a file in your dropbox
stop stop dropboxd
running return whether dropbox is running
start start dropboxd
filestatus get current sync status of one or more files
ls list directory contents with current sync status
autostart automatically start dropbox at login
exclude ignores/excludes a directory from syncing
lansync enables or disables LAN sync
Start the daemon with the CLI:
#~/bin/dropbox.py start Starting Dropbox...Dropbox isn't running! Done!
Solutions to common problems:
“Cannot contact daemon, are you sure it is running?”
Try the following:
#dbus-launch --sh-syntax DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-eG8rW6f2iR,guid=c51a477c991da9681f80b58a5376246d'; export DBUS_SESSION_BUS_ADDRESS; DBUS_SESSION_BUS_PID=1552;
Now try logging into hubic again.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.