The first motivation to setup something like this was the needed to share and access files, photos and text between devices. I tried different services, apps and tools but I always ended up missing something from them. So with something like a NAS would fix the problem.
Also, the NAS would allow me not only to share files, but also to store them, so I could just upload things there, and get back to them days later from another device.
After looking for some NAS solution, I always ended up on forums saying that you need 64GB of RAM, a powerful CPU, and some good OS like TrueNAS, and got really confused about it. But after some research and self-tests, I've just realized that I just wanted a simple place to store, upload and get files, not more shit.
Even that would be alright, but I just wanted a little bit more speed for the NAS. Also, my router doesn't even support SMB2+ and it requires authentication, and those are two requirements for me. So, option not valid.
After some research I ended up with the most simple idea; running a Windows PC to use it as a NAS. I was already kind of using this feature on my main PC to grab files from it to my phone using SMB, via sharing my userprofile folder to the network... but didn't want to leave my main pc always on, or ready to wake with WoL.
So the setup of my "NAS", if we can call it that way, was pretty easy, with more than enough hardware for the usage. It's a mini PC with an Intel Core I5-6500T and 8GB of RAM with two NVMe drives.
The OS I used was Windows 10 2016 LTSB, the Windows version I always install as many already know. This version of Windows is the only who doesn't give me any problem since I started using back in 2022, and the performance is just great.
After setting up the OS, cleaning it up, and disabling unnecessary services (like Windows Audio, etc), I created a folder inside the C:\ directory, shared it on the network, and technically we already have a working NAS over the network via SMB3.
I also made sure to tweak some things in the power control to minimize the power usage of the NAS. I've limited the CPU to run at its lowest speed, around 700MHz, and also allowed the server to sleep after 200 mins of inactivity (make sure to enable Wake on LAN). Server uses around 4W in idle, and less than 1W when sleeping, so this way our NAS doesn't even have an impact on the electricity bill.
The next thing I did was disabling the authentication for accessing the NAS. Although this seems like a security issue, I don't really mind anyone accessing this server, as I won't be hosting any personal stuff out there, and by disablign authentication you usually get faster access to the folders (tested with VLC, SolidExplorer in Android, and even when mapping a network drive in Windows).
Writing it for the record, in case I need to set something similar in the future...
To disable authentication
Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbServerConfiguration -RequireSecuritySignature $false
Make sure we allow insecure log ins:
- Go to gpedit.msc.
- Navigate to Computer Configuration > Administrative Templates >*Network** > Lanman Workstation.
- Enable "Enable insecure guest logons".
- Apply and restart.
More info: https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-signing?tabs=powershell
When sharing the folder over the network, make sure to add the "Guest" user read/write permissions.
Folder permission we want to share over the NAS.
I was surprised on how good this works. I mapped the network drive on my main PC so the NAS acts like a regular disk, being it as fast as any other drive on it (only limited via the 1gbps ethernet).
Also, on Android phone using Solid Explorer, and on iPhone using OwlFiles, the acess to the NAS is very intuitive and fast. VLC for mobile even support network discovering so I can watch films stored on NAS directly on my phone. Cheff kiss!
Mapped network drive on Windows 10.