Mounting box.net account on Ubuntu
For those who don't know, box.net is offering 50GB of free storage to iPad and iPhone users for a limited time. I signed up for an account and wanted to access this 50GB from my headless linux box. Box.net offers access through WebDAV so the first thing I tried was mounting via davfs2. Mounting worked but I was unable to access any of my directories. File access was fine but creating a directory resulted in an html file instead.
As a workaround, I stumbled across a FUSE filesystem called boxfs. Mounting my box.net account via boxfs works great and everything is working as it should. Here's how I got it working:
- Install dependencies:
$ sudo apt-get install libxml2-dev libfuse-dev libcurl4-gnutls-dev libzip-dev fuse-utils - Compile and install libapp:
$ git clone http://github.com/drotiro/libapp.git$ cd libapp$ make$ sudo make install
- Compile and install boxfs:
$ svn co http://boxfs.googlecode.com/svn/trunk/ boxfs$ cd boxfs$ vi Makefile(add-D_FILE_OFFSET_BITS=64to the end of theFLAGSline)$ make$ sudo make install$ sudo ldconfig
- Create box config file (
$ vi ~/.boxfs) and add the following info: - Change permission of config file:
$ chmod 600 ~/.boxfs - Create the mountpoint you specified in the config file:
$ sudo mkdir /mnt/box.net - Mount the directory:
$ boxfs -f ~/.boxfs
username = email@domain.com
mountpoint = /mnt/box.net
verbose = yes
secure = yes
password = password
largefiles = yes