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
 1.	Download the client from  https://nextcloud.com/install/#install-clients.
 2.	Open the client and click on "login".
 3.	Enter https://nextcloud.bladzij.de.
 4.	Click on "server" and "next".
 5.	Login on the webinterface to grant access to the client.
 6.	Select whatever you want synchronised.
Netwerk drive
 1.	In the file manager (windows explorer) select "This PC".
 2.	Right click on the panel background and select "Add a network location".
 3.	Double-click the icon and enter: https://nextcloud.bladzij.de/remote.php/dav/files/max_musterman/ (replace max_musterman with your own login credentials).
 4.	Double-click on "Chose a custom network location".
 5.	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.
 1.	Install rclone from here
 2.	Configure a remote (this is our nextcloud site) using the rclone config command option n
 1.	Give the remote a name (e.g. uog)
 2.	Select storage type webdav (number 29)
 3.	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/
 4.	Select vendor nextcloud, option 1
 5.	Enter your username e.g. max_musterman
 6.	Enter your password
 7.	No need to supply bearer_token nor invoking advanced config
 8.	More info here
 3.	Test using something like this: rclone ls uog:/ or this: rclone lsd uog:/
 4.	Copy a local file to the remote:  rclone copy my-special-word-file.doc uog:/Documents/
 5.	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