diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2021-02-10 21:07:53 +0000 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2021-02-10 21:07:53 +0000 |
| commit | 3fa6047100fed4bb92889c21d3043f41eb314507 (patch) | |
| tree | 5fe168ec5651b576132a8c1a505ada6633eda5d8 | |
| parent | 0889dc178a37e9cd916d93274c3f263ce872eca9 (diff) | |
Accessing Nextcloud With WebDAV on Arch
| -rw-r--r-- | source/_assets/sass/_tags.scss | 5 | ||||
| -rw-r--r-- | source/_posts/accessing_nextcloud_with_webdav_on_arch.md | 46 | ||||
| -rw-r--r-- | source/_tags/nextcloud.md | 4 |
3 files changed, 55 insertions, 0 deletions
diff --git a/source/_assets/sass/_tags.scss b/source/_assets/sass/_tags.scss index 7e47106..0dc2a76 100644 --- a/source/_assets/sass/_tags.scss +++ b/source/_assets/sass/_tags.scss @@ -40,6 +40,11 @@ @apply text-white; } + &.nextcloud { + background-color: #0082C9; + @apply text-white; + } + &.php { background-color: #8892BF; @apply text-white; diff --git a/source/_posts/accessing_nextcloud_with_webdav_on_arch.md b/source/_posts/accessing_nextcloud_with_webdav_on_arch.md new file mode 100644 index 0000000..cdd0d3a --- /dev/null +++ b/source/_posts/accessing_nextcloud_with_webdav_on_arch.md @@ -0,0 +1,46 @@ +--- +extends: _layouts.post +section: content +title: Accessing Nextcloud With WebDAV on Arch +date: 2021-02-15 +description: A guide to how I synchronise files to Nextcloud. +tags: [Arch, Nextcloud] +--- + +I have a Nextcloud instance and I want to mount it as a directory on my local machine. Since Nextcloud cloud supports the WebDAV protocol its possible to do this by installing davfs2 which can mount a WebDAV resource. + +The first thing I had to do was install davfs2. + +```shell +$ sudo pacman -S davfs2 +``` + +Next I created the directory where Nextcloud would be mounted. + +```shell +$ mkdir -p .local/share/nextcloud +``` + +I then needed to tell Arch how to mount Nextcloud by adding the below line to the */etc/fstab* file. + +```shell +https://my-nextcloud-server.com/path /home/david/.local/share/nextcloud davfs rw,user,uid=david,noauto 0 0 +``` + +Since access to Nextcloud is controlled by a username and password these where added to the *~/.davfs2* file. + +```shell +https://my-nextcloud-server.com/path username password +``` + +I made sure this file had the correct permissions to ensure security. + +```shell +$ chmod 600 ~/.davfs2/secrets +``` + +Now I can mount Nextcloud and access my files just like any others. + +```shell +$ mount .local/share/nextcloud +``` diff --git a/source/_tags/nextcloud.md b/source/_tags/nextcloud.md new file mode 100644 index 0000000..5623d87 --- /dev/null +++ b/source/_tags/nextcloud.md @@ -0,0 +1,4 @@ +--- +extends: _layouts.tag +description: All the Nextcloud posts +--- |
