I want to mount a folder to sync with my Ubuntu One account. The only restriction is that I don't want to use the client provided. I use Arch Linux if it counts. And if you can provide a general solution for all WebDAV(??) resources it would be useful and good reference.
To mount a WebDAV resource as a drive in linux, you can use davfs2. In Debian-based distributions, this can be downloaded as the
davfs2 package from the main repositories:
# apt-get install davfs2
I wrote a blog entry about mounting a specific WebDAV resource using davfs2 a while ago. I will outline the relevant details here.
Once you have davfs2 installed on your system, you should be able to use the
mount -t davfs) command on your machine. The syntax is
mount -t davfs https://webdav-server.com/path/to/remote/dav /path/to/local/mountpoint
Depending on how your davfs2 install is configured, you may be able to mount as a normal user, or you may need to be root (or have superuser privileges). On my Ubuntu system, I added my username to the davfs2 group (
adduser [my_username] davfs2) and set the suid bit (using
mount.davfs so that I would not need to be root to mount WebDAV resources.
If you are going to be repeatedly mounting a particular WebDAV source, you can simplify the mounting process by adding an entry to
/etc/fstab, for example
https://webdav-server.com/path/to/remote/dav /path/to/local/mountpoint davfs noauto,defaults,uid=myusername,gid=myusergroup 0 0
You can further simplify the mounting process by storing your username and password for the WebDAV resource in
~/.davfs2/secrets in the following format:
/path/to/local/mountpoint my_dav_username password
My setup had some particular quirks, the solutions to which are outlined in my blog post
Just following up here for others that might be interested in this - see Ubuntu's wiki page regarding the architecture. It is not possible to access Ubuntu One via WebDAV.
This provides remotely accessible disk space stored on Amazon S3. Rather than using an existing protocol (eg. FTP, SFTP, NFS, Webdav) access to this remote disk space is via an invented-here communication protocol called "ubuntuone-storageprotocol" based on Google Protocol Buffers.