diff options
author | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-02-25 16:33:40 +0100 |
---|---|---|
committer | Paolo T <tuscanhobbit@users.noreply.github.com> | 2014-02-25 16:33:40 +0100 |
commit | 0a98f6b878ec89be7282621192d9daf80f125e6c (patch) | |
tree | 718a4771ce1fb86931531226898b0b5d00e4a337 /doc/dav_davfs2.md | |
parent | 34d30e4d7eb48bd801482531a0d775328bd43ab4 (diff) | |
parent | b1021df485fb6129acda5bba616bac10aea75a45 (diff) | |
download | volse-hubzilla-0a98f6b878ec89be7282621192d9daf80f125e6c.tar.gz volse-hubzilla-0a98f6b878ec89be7282621192d9daf80f125e6c.tar.bz2 volse-hubzilla-0a98f6b878ec89be7282621192d9daf80f125e6c.zip |
Merge pull request #1 from friendica/master
Update this fork
Diffstat (limited to 'doc/dav_davfs2.md')
-rw-r--r-- | doc/dav_davfs2.md | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/doc/dav_davfs2.md b/doc/dav_davfs2.md new file mode 100644 index 000000000..e4313e810 --- /dev/null +++ b/doc/dav_davfs2.md @@ -0,0 +1,58 @@ +**Installing The Cloud as a Filesystem on Linux** + +To install your cloud directory as a filesystem, you first need davfs2 installed. 99% of the time, this will be included in your distributions repositories. In Debian + +`apt-get install davfs2` + +If you want to let normal users mount the filesystem + +`dpkg-reconfigure davfs2` + +and select "yes" at the prompt. + +Now you need to add any user you want to be able to mount dav to the davfs2 group + +`usermod -aG davfs2 {{DesktopUser}}` + +Edit /etc/fstab + +`nano /etc/fstab` + +to include your cloud directory by adding + +`example.com/cloud/{{Username}} /mount/point davfs user,noauto,uid={{DesktopUser}},file_mode=600,dir_mode=700 0 1` + +Where {{Username}} is your username at your Red hub, example.com is the URL of your hub, /mount/point is the location you want to mount the cloud, and {{DesktopUser}} is the user you log in to one your computer. Note that if you are mounting as a normal user (not root) the mount point must be in your home directory. + +For example, if I wanted to mount my cloud to a directory called 'cloud' in my home directory, and my username was bob, my fstab would be + +`example.com/cloud/ /home/bob/cloud davfs user,noauto,uid=bob,file_mode=600,dir_mode=700 0 1` + +Now, create the mount point. + +`mkdir /home/bob/cloud` + +and also create a directory file to store your credentials + +`mkdir /home/bob/.davfs2` + +Create a file called 'secrets' + +`nano /home/bob/.davfs2/secrets` + +and add your cloud login credentials + +`example.com/cloud {{username}} {{password}}` + + +Where {{username}} and {{password}} are the username and password for your hub. + +Don't let this file be writeable by anyone who doesn't need it with + +`chmod 600 /home/bob/.davfs2/secrets` + +Finally, mount the drive. + +`mount example.com/cloud/{{username}}` + +You can now find your cloud at /home/bob/cloud and use it as though it were part of your local filesystem - even if the applications you are using have no dav support themselves. |