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:
#~/.dropbox-dist/dropboxd
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.
#~/.dropbox-dist/dropboxd &
Now, install the Hubic package for Debian from http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/1.2.4/
Instructions: https://forums.hubic.com/showthread.php?272-hubiC-for-Linux-beta-is-out-!
Summary:
wget http://mir7.ovh.net/ovh-applications/hubic/hubiC-Linux/1.2.4/hubiC-Linux-1.2.4.35-linux.deb dpkg -i hubiC-Linux-1.2.4.35-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:
hubic status
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
commands:
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 do:
#export DBUS_SESSION_BUS_ADDRESS=’unix:abstract=/tmp/dbus-eG8rW6f2iR,guid=c51a477c991da9681f80b58a5376246d’
Now try logging into hubic again.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
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.