Skip to content

Instantly share code, notes, and snippets.

@lovrot
Last active May 25, 2017 08:47
Show Gist options
  • Select an option

  • Save lovrot/a9ca090d8e3ccedf2a5b to your computer and use it in GitHub Desktop.

Select an option

Save lovrot/a9ca090d8e3ccedf2a5b to your computer and use it in GitHub Desktop.
Mount KI Box cloud storage on Ubuntu 14.04

Mount KI Box cloud storage on Ubuntu 14.04

Authors: John Lövrot, Max Gordon

Background

KI Box uses the online file sharing and personal cloud content management service by Box.

Box doesn't provide a Linux client.

There is an unofficial attempt to create a Linux synchronization client:

An alternative is to use a WebDAV client, see

Step 1. Create external password

Login, https://ki.box.com.

Go to account settings, https://ki.app.box.com/settings and the section "Create External Password".

Step 2. Mount Box cloud storage on Ubuntu

Based on the blog posts

First, install the davfs2 package:

sudo apt-get install davfs2

Next, reconfigure davfs2 so that regular users can mount storages:

sudo dpkg-reconfigure davfs2

When prompted, answer "Yes".

Add your username to davfs2:

sudo usermod -a -G davfs2 <username>

Copy the davfs2 contents to your home directory and grant permissions:

sudo cp -R /etc/davfs2/ /home/<username>/.davfs2
sudo chown -R <username> /home/<username>/.davfs2/

Edit the secrets file

gedit ~/.davfs2/secrets  

by adding the following line at the end of the file.

https://dav.box.com/dav 	<e-mail-address>	<external_password>

Create a folder called Box in your home directory:

mkdir ~/Box

Edit the file system table

sudo gedit /etc/fstab

by adding the following line at the end of the file.

https://dav.box.com/dav /home/<username>/Box  davfs  _netdev,rw,user 0 0

Mount Box:

mount ~/Box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment