Wiki source code of Nextcloud access
Last modified by Jan Rhebergen on 2022/01/24 15:56
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | Below two way to access [[https:~~/~~/nextcloud.bladzij.de>>https://nextcloud.bladzij.de]] from windows. | ||
| 2 | |||
| 3 | = Desktop client = | ||
| 4 | |||
| 5 | 1. Download the client fromĀ [[https:~~/~~/nextcloud.com/install/#install-clients>>https://nextcloud.com/install/#install-clients]]. | ||
| 6 | 1. Open the client and click on //"login"//. | ||
| 7 | 1. Enter [[https:~~/~~/nextcloud.bladzij.de>>https://nextcloud.bladzij.de]]. | ||
| 8 | 1. Click on //"server"// and //"next"//. | ||
| 9 | 1. Login on the webinterface to grant access to the client. | ||
| 10 | 1. Select whatever you want synchronised. | ||
| 11 | |||
| 12 | = Netwerk drive = | ||
| 13 | |||
| 14 | 1. In the file manager (windows explorer) select //"This PC"//. | ||
| 15 | 1. Right click on the panel background and select //"Add a network location"//. | ||
| 16 | 1. Double-click the icon and enter: [[https:~~/~~/nextcloud.bladzij.de/remote.php/dav/files/max_musterman/>>https://nextcloud.bladzij.de/remote.php/dav/files/max_musterman/]] (replace max_musterman with your own login credentials). | ||
| 17 | 1. Double-click on //"Chose a custom network location"//. | ||
| 18 | 1. Complete the //"login dialog"//. | ||
| 19 | |||
| 20 | = Commandline / shell = | ||
| 21 | |||
| 22 | **NB:** this way is particularly useful if you want to get files from the nextcloud instance on ##beethoven## to you home directory on ##liszt##. | ||
| 23 | |||
| 24 | 1. Install ##rclone## from [[here>>https://rclone.org/downloads/]] | ||
| 25 | 1. Configure a ##remote## (this is our nextcloud site) using the ##rclone config## command option ##n## | ||
| 26 | 11. Give the ##remote## a ##name## (e.g. ##uog##) | ||
| 27 | 11. Select storage type ##webdav## (number 29) | ||
| 28 | 11. 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/>>https://nextcloud.bladzij.de/remote.php/dav/files/max_musterman/]] | ||
| 29 | 11. Select vendor ##nextcloud##, option 1 | ||
| 30 | 11. Enter your username e.g. ##max_musterman## | ||
| 31 | 11. Enter your password | ||
| 32 | 11. No need to supply ##bearer_token## nor invoking ##advanced config## | ||
| 33 | 11. More info [[here>>https://wiki.surfnet.nl/pages/viewpage.action?pageId=35801437]] | ||
| 34 | 1. Test using something like this: ##rclone ls uog:/## or this: ##rclone lsd uog:/## | ||
| 35 | 1. Copy a local file to the remote: ## rclone copy my-special-word-file.doc uog:/Documents/## | ||
| 36 | 1. ##rtfm## (i.e. ##man rclone## or ##rclone -h##) | ||
| 37 | |||
| 38 | == Examples == | ||
| 39 | |||
| 40 | Show the configuration file in/on the terminal window: | ||
| 41 | (% class="box" %) | ||
| 42 | {{{(base) jan@beethoven:~$ cd .config/rclone/ | ||
| 43 | (base) jan@beethoven:~/.config/rclone$ cat rclone.conf | ||
| 44 | }}} | ||
| 45 | |||
| 46 | Output: | ||
| 47 | (% class="box" %) | ||
| 48 | {{{(base) jan@beethoven:~/.config/rclone$ cat rclone.conf | ||
| 49 | [beethoven] | ||
| 50 | type = webdav | ||
| 51 | url = https://nextcloud.bladzij.de/remote.php/dav/files/jan_rhebergen/ | ||
| 52 | vendor = nextcloud | ||
| 53 | user = jan_rhebergen | ||
| 54 | pass = NTJEUCJOhoA43uD8Icn2zNrYLPkGY5pm1FuWu_WabtJiQ | ||
| 55 | |||
| 56 | [localhost] | ||
| 57 | type = webdav | ||
| 58 | url = http://localhost:8080/remote.php/dav/files/jan_rhebergen/ | ||
| 59 | vendor = nextcloud | ||
| 60 | user = jan_rhebergen | ||
| 61 | pass = 6XzA_FO_o4iEstCrW-gbmieIqziq4uiANN2lfBO81Fs6w | ||
| 62 | }}} | ||
| 63 | |||
| 64 | Copy directory ##13## from current working directory to the ##Berlin-BFT/2021/10/13## location in the ##Photos## folder. | ||
| 65 | (% class="box" %) | ||
| 66 | {{{rclone copy -P 13 localhost:/Photos/Berlin-BFT/2021/10/13 | ||
| 67 | }}} |