Filebox

From the Linux and Unix Users Group at Virginia Teck Wiki
Revision as of 16:12, 21 February 2011 by imported>Cov
Jump to: navigation, search

Filebox and Webdav

VT's Filebox utilizes an HTTP extension known as WebDav. There are several ways to do this. The first one utilizing davfs2 is probably the most seamless way, but may require a bit more work to get working. Gnome and KDE have built in support for WebDav. Instructions for the is further down. Source: [1]

The Davfs2 way

Using Davfs2 you can mount your Filebox as if it as any 'ol 32MB drive, i.e., you can execute 'mv' 'cp' 'rm', etc., commands and interface with it in your your favorite file manager. What makes this possible is davfs2. "It is a Linux file system driver that allows you to mount a WebDAV server as a local file system, like a disk drive. This way applications can access resources on a Web server without knowing anything about HTTP or WebDAV."

Installing on Ubuntu

First, install davfs2:

sudo apt-get install davfs2

Now, create the mount directory:

sudo mkdir /media/filebox

and mount:

sudo mount -t davfs http://webdav.filebox.vt.edu/users/YOUR_PID

Insert your username and password and it's done! This also works with hosted sites online.

sudo mkdir /media/hosted_site
sudo mount -t davfs https://webdav.hosting.vt.edu/www.WHATEVER_YOUR_SITE

You can also put your username/password in /etc/davfs2/secrets:

echo http://webdav.filebox.vt.edu/users/YOUR_PID username password >> /etc/davfs2/secrets

So, mount will not ask for username/password.

Installing on Gentoo

There is a great Gentoo Wiki article entry here. Make sure to use http://webdav.filebox.vt.edu/users/YOUR_PID as the webdav URL.

Gnome Users

To connect to WebDAV server using Nautilus, click Connect to Server from the Places dropdown or the File dropdown of any open window. In the Service Type field select Secure WebDAV (HTTPS) and fill in the Server field. Nautilus WebDAV.png

KDE Users

In KDE, WebDAV sites can be accessed through webdav:// URLs. In konqueror just browse to webdav://webdav.filebox.vt.edu/users/YOUR_PID