I'm stuck. WebDAV FileBrowser Dietpi

Hi,

I installed Dietpi on my RP5 two days ago.The first steps went well. Hang in hard drives. Set up SMB and user rights. Move the first files from the phone’s file browser to the hard disk in the Pi. Now I’ve spent the day finding out how to get from (outside) to my home network and to reach the individual services like PiHole. Now I just want to access my hard drive in the Pi via such links. Unfortunately, I fail because there are a lot of services that I am not familiar with and how all this is done works. I would like to access the files in the Pi via WebDAV. With which application is this possible to use without Docker Compose or similar processes complicated for me. I’ve already tried Nginx web server. Unfortunately, after the installation, I fail at the setup. I don’t know if this is the right one for my use case. I would be very grateful for a little hint which application allows easy access via WebDAV to my files.

Greetings

Maybe you should try Nextcloud.

I would like to access the hard drive in the Pi via WebDAV from my Android file browser. Which service can I use? I have a fixed link. I just have to provide the files but what does this work with?

As said, have a look into Nextcloud Accessing Nextcloud files using WebDAV — Nextcloud latest User Manual latest documentation

As a lightweight alternative you could use rclone

I’ve already tried that and didn’t get it. Is there no way to install a simple WebDAV service and access this service via a shared port on my router and login?

A simple webdav service would be rclone:

rclone serve webdav /mnt/nas --addr :8080 --user user --pass password

But this is pretty insecure, so do not expose port 8080, but either dial in to your LAN via VPN or you use a reverse proxy like nginx.

Do you use a domain or do you jsut connect via IP:port?

Hello, cool that you are trying to help. However, I’m not sure if this will work out. I try to explain the situation briefly. :slight_smile: I have very little idea of Linux/Debian or SSH. I can copy&paste. :confused: Now it’s like this: RP5 with Dietpi on SD card and a built-in NVMe.I have access to the PI via SSH and to the files also via Samba from my local network. Now I want to be able to access the NVMe files from outside. This should happen via an Android file manager. VPN works via WireGuard/FritzBox. I don’t want to use this because I have to switch it on and off all the time. There are services on my phone that don’t work like that. I can access services in my home network with a Myfritz link, this also works. However, I don’t know exactly how the mechanics behind it work. What I can’t do is access the NVMe from my file browser from the phone outside the home network. Maybe you also have an idea which application is easy for beginners like me to manage on the pi. I would like a graphical interface.I’ve tried OMV, but I’ve failed at Docker and Portainer and what there is, because these containers also need special configurations again.I just want to have pihole running and the NVMe as storage for my family and backup.

You already got 2 hints on how to do this. Nextcloud or rclone.

You can expose port 8080 (or whatever port you wanna use) but I do not consider this as a safe approach.
It doesn’t get much easier then nextcloud or rclone IMO.

If you don’t need to use WebDAV you could use just SMB or maybe a solution with a web UI like File Browser.

BTW rclone is also available via dietpi-software

No, I would like to use a special file browser (Xplore).

I’m fighting my way through the Nextcloud tutorial for WebDAV. In step 7. I’m not sure if I did it right and in step 8 I don’t know what to do next. Should I use the directory in step 8 /etc/fstab or write the link to the secrets file?

Creating WebDAV mounts on the Linux command lin

excuse my bad english. :confused:

You are talking about “Creating WebDAV mounts on the Linux command line” ?
YOu said you wanna access it via your phone, or do you also wanna mount it as a folder on a linux machine?

If you just wanna access it via phone just follow this:

I think there’s been a misunderstanding here. The page explains how to access a NC WebDAV server as a client. This has nothing to do with server configuration. You are moving the wrong way.

I assumed he already has installed Nextcloud and is now trying to access it via WebDAV.

Correct, I installed NC and now I want to access the SSD in my PI via WebDAV. I just want to create an address through which I can access the data of the SSD from outside via Xplore (Android FileManager).

Can’t I address the PI or SSD directly without NC in between?

I don’t mean to offend you, but perhaps you should reconsider making services openly accessible on the web. This has nothing to do with the apps; rather, you don’t really know what you’re doing or how things work. WebDAV is a specific protocol on a web server. To use it, you need server applications that provide this functionality. Nextcloud is an example of one that comes with this feature built-in. Nextcloud is relatively powerful and comprehensive, but can be configured via a web interface. RClone is a bit more streamlined, but requires some knowledge to set it up correctly on the console. Regardless of which application you use, you must secure it on the web. Without security measures, your system will be taken over by some botnet within a few days.

To explain that again. I only want to access the SSD from the outside via Xplore. She should act as a NAS. Xplore is my management tool.

You don’t need to explain what you want; we understood that the first time round. Unfortunately, you don’t understand how things work or what’s needed to access applications via the web.

Exactly, that’s why I was looking for help here. :slight_smile:

And we’ve mentioned several tools that can do that

You already have a VPN, don’t you? That’s the perfect and most secure way to access your data. You’ve also got Samba running – that’s good too. With a VPN and a file manager app that supports SMB, you could have been accessing your data for ages without having to configure anything. But you don’t want that; you want to take the hard route via WebDAV.