Davfs2: Difference between revisions

From Newroco Tech Docs
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 18: Line 18:
sudo mount -t davfs https://files.newro.co/remote.php/dav/files/<username>/ ~/nextcloud
sudo mount -t davfs https://files.newro.co/remote.php/dav/files/<username>/ ~/nextcloud
</pre>
</pre>
After the mount you will be prompted for your username and password from nextcloud. You can unmount the directory like this:
After the mount you will be prompted for your username and password from nextcloud.  
 
You can unmount the directory like this:
<pre>
<pre>
umount ~/nextcloud
umount ~/nextcloud

Revision as of 15:47, 6 December 2017

Davfs2 allows you to access resources on a remote server like it would be a local disk, in this case nextcloud.

Install and configure davfs2

Install davfs2:

sudo apt-get install davfs2

Add yourself to davfs group:

sudo usermod -aG davfs2 <username>

Create a directory, and mount it:

mkdir ~/nextcloud
sudo mount -t davfs https://files.newro.co/remote.php/dav/files/<username>/ ~/nextcloud

After the mount you will be prompted for your username and password from nextcloud.

You can unmount the directory like this:

umount ~/nextcloud

Troubleshooting

If you get something like this when mounting /sbin/mount.davfs: warning: the server does not support locks then edit /etc/davfs2/davfs2.conf file and set use_locks 0