Hi. I own a Raspberry Pi 4 and I would like to set up a little server that would let me access some of my files from my PC and my laptop. A PC is no problem, as it is right next to my Pi. A laptop is though, I would like to access it from outside my house and I have no way to set up port forwarding. What could I do to access it?
OS I plan to use on my Pi is EndeavourOS ARM if that matters.
You want the server to be able to access files from your remote laptop? For what purpose? Are you just trying to copy them to server or are you streaming some kind of media to the server?
Install on a micro SD of at least 64 GB or preferably 128 GB.
On first boot up a script will auto run and ask for Name, Timezone, passwords, and importantly HostName, etc.
It will also ask if you want to format a USB3 SSD, create mount points for the SSD, and edit /etc/fstab so it will mount at boot up for data storage. Note this uses a micro SD for the OS, and a USB SSD for data storage. It is best to keep them separated.
Also included are EnOS WiKi articles on how to set up your new server to work with Linux clients, and Windows clients. How to use a second USB SSD and use it as data backup using rsync.
Lastly, an WiKi article to install mini-DLNA to stream Music, Pictures, and Videos.
I have this running on a RPi 4b with 4 GB RAM and it has been running great with no problems for literally years.
To meet my security standards, the above setup does not include accessing from outside your house or local WiFi access. But I am sure someone here can help with that.
If you have any questions, I will try my best to answer them.
I would want to use just a single microSD card, I don’t exactly have a way to use an additional USB SSD. It will store nothing critical and nothing not stored anywhere else, it’s safe enough for my needs. After all, all I need is ability to copy a few files.
Also, how could I set it up to access it remotely without port forwarding?
Does your ISP provide you with a dynamic IP address, or a Static IP address.
Most likely it will be a dynamic IP address.
There are two ways to access your RPi 4. By IP address or by a domain name.
With a dynamic IP address, you could check the IP address when you leave home.
But if the ISP changes your IP address after you leave, then you will not be able to access the RPi 4. Most ISPs don’t change your home IP address often, but it can happen.
So if your IP address is dynamic, the sure way that you would be able to access is with a DNS service such as noip.com but most DNS services charge a monthly fee, and there are free ones available, but free ones come with nagging or make you notify them every month if you want to continue.
So you need to decide how you want to go about this first.
Even if @Pudge won’t like my recommendation. But instead of running EndeavourOS ARM on it, I would suggest to consider DietPi as an alternative. It’s is based on Debian. But in comparison to RaspberryOS Lite, much lighter and does perform quiete well in headless mode. And they cater essentially a good choice of options in their software stack which would essentially cover all most use-cases.
I do have a soft spot for Archlinux ARM, but I have always practiced “your computer…your rules’”. If a better option exists outside of Archlinux ARM, I would like to know about it and check it out. I am more of a tinkerer, than a developer.
This is a good suggestion. You can use tailscale to have your computers in the same network so that they have static IP addresses. This is what I use across my computers and even my phone.
Thanks I was able to set up tailscale and add my devices to network, and now I can access my files on a Pi on my laptop and PC. Maybe one day my Pi will do more. Maybe. But for now file server is enough.