Comment on Tips for moving from TrueNAS to Debian for a NAS?
synapse1278@lemmy.world 1 day ago
Hello, I have some experience using Debian in NAS, but none with TrueNAS.
Before anything: BACKUP !
If possible, make a full copy of your pool onto external drives, or another NAS or anything else. If it is not possible to get enough spare storage soace, then at least backup the things your really care about (personal photos, important projects, password database). Just make sure you have a valid backup in case things go terribly wrong ! I am sure everything will go well, but this will give you additional peace of mind.
Setup Debian for NAS use
There are a few things I can think of, many might be obvious, anyway:
- Install and configure network file sharing protocols: Samba (files sharing compatible with Windows, Linux, Android and others), NFS (more like network drive)
- Install: S.M.A.R.T monitoring tools
- Choose and configure filesystem. I have been using BTRFS, but since your pool is ZFS and you probably don’t want to format and start from nothing, I think you are already set on that one. I believe this is extra configuration as it doesn’t come by default on Debian.
More advanced things:
- Setup SSH for remote connection with the terminal
- Install
htoporbtopfor system monitoring in the terminal wireguardis a very nice VPN, it’s easy to configure on all platforms in order to access your NAS from outside your home
Power optimization
- Enable C-stats in the BIOS (warning in case your CPU is a 1st gen Ryzen, do not activate)
powertopis an utility to optimize power saving settings (I’ve not bothered with this until now)hdparmis an utility to manage and configure hard drives, you can use this to configure automatic spin-down after some time of inactivity, this is a bit tricky though.
Dashboards, UI, frontends
- OpenMediaVault is the first one that comes to my mind. It’s actually a Linux distro based on Debian with a web interface that allows you to do all the NAS relevant confirmations from the Webbrowser. It can also be installed on top of an existing Debian install. I have used it a long time ago.
- CasaOS, similar in concept, I have not used it.
- Another simple option to get started, get a monitor, keyboard and mouse. Install Debian with full desktop environment and configure everything in person. You can always go headless at a later time
Docker
You definitely want to install docker to run most of your services. Please, also add your local user to the docker group to not have to run everything as root. Useful services I use:
- Portainer: manage containers with a web interface
- watchtower: Auto-Update other docker containers
- Jellyfin: media Manager and player (similar to Plex)
- *arr, transmission, sabnzbd: sail the high seas
- gluetun: route containers traffic through a VPN
- caddy: reverse proxy, to access your container with sub-domain name, example: jellyfin.mycoolnas.net
- vaultwarden: redistribution of the Bitwarden password manager for self-loading with the premium features available.
Graphics cards
It’s been a long time I didn’t have to deal with NVidia. Debian comes by default with the nouveau open source driver, which works but may not give the best performance. I don’t know if it impacts transcoding performance. I suppose it doesn’t give your the NVENC codecs. Anyway, you can install the NVidia proprietary drivers and should be able to transcode.
Conclusion
Debian is a solid option for a NAS, it’s been serving me well for many years. It is set and forget. However. It takes time to setup and the terminal is going to be your main configuration tool unless you go for OMV or another distro specialty made for NAS.
Your main source of information shall be the Debian Wiki. You will find step-by-step guides to install most of the things mentioned above. The Arch wiki is also a good resource, keep in mind that some files may have different locations and package different names across Linux distributions, but configuration should be similar.
Best of luck my friend
GraveyardOrbit@lemmy.zip 1 day ago
[deleted]synapse1278@lemmy.world 1 day ago
Come on man… I spent so much time typing this from my phone, with formating and everything…
SreudianFlip@sh.itjust.works 1 day ago
Come on, some of us paid attention in school and actually format things properly while using decent grammar. Bonus if you’re an organized thinker. Definitely a touch grass moment, the internet is wearing on you.
GraveyardOrbit@lemmy.zip 1 day ago
[deleted]SreudianFlip@sh.itjust.works 1 day ago
I didn’t even imply that, so I will now call you anxious.
I was defending people who write well and craft long detailed answers. Read it again.
CatLikeLemming@lemmy.blahaj.zone 1 day ago
Huh, sound pretty simple overall. I was mostly afraid I was missing some key features that would be painful to set up and were needed for a NAS, but apart from the filesystem and SMART tools, this isn’t much less setup than I had to do with TrueNAS. Thanks!
kumi@feddit.online 17 hours ago
Filling some gaps:
systemctl enable --now firewalld unattended-upgradesRead through
/etc/firewall/firewalld.conf, especially the part about how containers might bypass your firewall if you don’t change defaults.Also rootless podman should run well out of the box as a mostly drop-in replacement for docker (meanwhile docker also does rootless now) and allows you to run the container runtime unprivileged. Setting up autostart by writing systemd
.serviceunit files works the same for both.synapse1278@lemmy.world 10 hours ago
I have to look into that, thanks !
homesweethomeMrL@lemmy.world 1 day ago
This is awesome
yyprum@lemmy.dbzer0.com 17 hours ago
Awesome comment!
About the dashboards, I have been using CasaOS for a while now, it is not a OS, but it decently handles containers and allows you to install a bunch of services in a very user friendly way. Nowadays (as I found out a few days ago) the project seems to be moving in the direction of a fully purposed OS with NAS capabilities plus the containers stuff. Unfortunately the project (under the name ZimaOS) has gone into proprietary software and (for now) a one payment level to unlock full options with a free limited version.
I don’t think I can recommend anymore to go with casaOS due to that (although for now casaOS remains free OSS kinda separate). I have been also looking for alternatives to set up a NAS and so far I am heavily leaning on OMV as it is a full OS with the idea of handling a NAS with all ready, plus it is based in Debian which is a plus for me too. Alternatively I am looking into YunoHost also, but I think it is not exactly what I want, although it looks promising.