Technical Documentation - Nextcloud access

Page / - last modified by Jan Rhebergen on 2022/01/24 15:56

Nextcloud access

last modified by Jan Rhebergen

on 2022/01/24 15:56

Table of Contents

Desktop client

Netwerk drive

Commandline / shell

Examples

Below two way to access https://nextcloud.bladzij.de from windows.

Desktop client

Download the client from https://nextcloud.com/install/#install-clients.

Open the client and click on "login".

Enter https://nextcloud.bladzij.de.

Click on "server" and "next".

Login on the webinterface to grant access to the client.

Select whatever you want synchronised.

Netwerk drive

In the file manager (windows explorer) select "This PC".

Right click on the panel background and select "Add a network location".

Double-click the icon and enter: https://nextcloud.bladzij.de/remote.php/dav/files/max_musterman/ (replace max_musterman with your own login credentials).

Double-click on "Chose a custom network location".

Complete the "login dialog".

Commandline / shell

NB: this way is particularly useful if you want to get files from the nextcloud instance on beethoven to you home directory on liszt.

Install rclone from here

Configure a remote (this is our nextcloud site) using the rclone config command option n

Give the remote a name (e.g. uog)

Select storage type webdav (number 29)

Supply the URL which you can get from the nextcloud files page, bottom left when clicking on settings, e.g. https://nextcloud.bladzij.de/remote.php/dav/files/max_musterman/

Select vendor nextcloud, option 1

Enter your username e.g. max_musterman

Enter your password

No need to supply bearer_token nor invoking advanced config

More info here

Test using something like this: rclone ls uog:/ or this: rclone lsd uog:/

Copy a local file to the remote: rclone copy my-special-word-file.doc uog:/Documents/

rtfm (i.e. man rclone or rclone -h)

Examples

Show the configuration file in/on the terminal window:

(base) jan@beethoven:~$ cd .config/rclone/

(base) jan@beethoven:~/.config/rclone$ cat rclone.conf

Output:

(base) jan@beethoven:~/.config/rclone$ cat rclone.conf

[beethoven]

type = webdav

url = https://nextcloud.bladzij.de/remote.php/dav/files/jan_rhebergen/

vendor = nextcloud

user = jan_rhebergen

pass = NTJEUCJOhoA43uD8Icn2zNrYLPkGY5pm1FuWu_WabtJiQ

[localhost]

type = webdav

url = http://localhost:8080/remote.php/dav/files/jan_rhebergen/

vendor = nextcloud

user = jan_rhebergen

pass = 6XzA_FO_o4iEstCrW-gbmieIqziq4uiANN2lfBO81Fs6w

Copy directory 13 from current working directory to the Berlin-BFT/2021/10/13 location in the Photos folder.

rclone copy -P 13 localhost:/Photos/Berlin-BFT/2021/10/13