Gentoo and webdav

Sep 27th, 2010 | Filed under gentoo

Getting tired of using ftp to sync some resources. Clicking connect is very tiresome so..
emerge devfs2 -av
groupadd -r davfs2
useradd davfs2 -g davfs2

If your webdav resource is secured edit /etc/davfs2/secrets and add simple line
http://yourresurce/path user pass

These are credentials to remote webdav.

Try to mount drive from cmdline
mount.davfs http://http://yourresurce/path /mnt/webdav/path

If it works unmount for a second
mount -u /mnt/webdav/path

If it works you can add following line to /etc/fstab
http://yourresurce/path /mnt/webdav/path davfs uid=wlos,gid=users 1 2

Try now mount -a and voila! Your remote drive will be available automagically.

There are many other options you can provide.. try docs!

No comments yet.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image