• 3 Posts
  • 75 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle


  • 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:

    1. Install and configure network file sharing protocols: Samba (files sharing compatible with Windows, Linux, Android and others), NFS (more like network drive)
    2. Install: S.M.A.R.T monitoring tools
    3. 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:

    1. Setup SSH for remote connection with the terminal
    2. Install htop or btop for system monitoring in the terminal
    3. wireguard is a very nice VPN, it’s easy to configure on all platforms in order to access your NAS from outside your home

    Power optimization

    1. Enable C-stats in the BIOS (warning in case your CPU is a 1st gen Ryzen, do not activate)
    2. powertop is an utility to optimize power saving settings (I’ve not bothered with this until now)
    3. hdparm is 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

    1. 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.
    2. CasaOS, similar in concept, I have not used it.
    3. 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


  • I have a Pixel 7 and my wife has the Pixel 6a, I don’t find them particularly well made. My pixel 7 is already show signs of wear with the power button getting stuck after about 2 years of use, with a case pretty much always on. My former phone, Huawei P20 worked flawlessly and was like new after 5 years of use. In the end I wanted to run GrapheneOS and decided for the Pixel. But at this price, I am quite disappointed with the hardware quality.




  • He told Newsnight the addiction caused him to isolate himself from friends and family because he was “afraid of anyone discovering that I was hooked.”

    Mr Lane described finding “the only place I could get, I guess, love and intimacy was from pornography” at the same time as feeling “heaps of guilt and shame”

    The problem seems to have more to do with lack of proper sex education and social pressure rather than pornography. Why did he have to feel so ashamed that he isolated himself? That’s a real issue here!




  • openmediavault and casas are good noob-friendly OSes for NAS purpose. Much faster and simpler to get it running than some Proxmox and True NAS overkill solution.

    You can also just install whatever Linux OS you like, and plug-in some screen, keyboard and mouse and do your setup this way, like any other computer!

    For Hardware, I recommend to build a computer out of standard parts. For what you said, a small motherboard with an integrated Intel N100 CPU and a nice looking case like the Jonsbo N2 will sever you well. This is very close to my current setup, using an older j5040 CPU and it runs everything just fine with no effort (Jellyfin w/ light transcoding, *arr stack, Usenet and torrent clients, syncthing, SMB and NFS filesharing, and more)


  • I second this proposition of DIY build. My current build is an older version of this using an ASRock motherboard with integrated Intel j5040. It’s already very capable! I run Jellyfin with HW transcoding and a dozen other containers and there is still plenty of headroom.

    The Jonsbo N2 case is pricey but good quality, nice looking and nice to build with ! Cheaper options are there but not as nice in terms of looks and usability.








  • I have a good experience with the NVidia shield TV (2017). Jellyfin app work great without tinkering and HEVC deciding is supported by this device, minimizing the need of transcoding.

    The experience outside of Jellyfin needs some work though, to get an ad-free experience. Once Projectivy Launcher and Smart Tube installed and configured, I am fully satisfied.

    I haven’t played too much with Raspberry, I think HW decoding is still a point of pain.


  • Take the time to properly understand Linux file ownership and permission. Permission will be the cause of many issues you will encounter in you self-hosting journey on Linux. Make sure you know the basics of chmod (change permission) and chown (change ownership), Linux users and groups. This will save you some head-scratching, but don’t worry, you will learn by doing !

    Remember that, if you setup everything right, especially with docker, running as root / with sudo is not required for any of the services you may want to run.


  • I use 2 VPN with my setup:

    1. The private one, hosted on a VPS (OVHcloud). I set it up my self. It’s a bit of work, as you need to take care of properly setting up firewall and reasonably security this server as it is directly facing the Internet. OVH provids some good guides on their website and you can find other resources. You can rent the lowest tire VPS and deploy Debian and Wireguard and you’re all set ! This VPN is for connecting to my NAS at home from outside, and also for secure Internet browsing from public WiFi. This is my own VPN for me and myself (plus my family to a lesser extent).
    2. The one for Torrenting exclusively Linux ISO of course. This one is a Nord on subscription, and the benefits is not really privacy IMO but rather to be drown into the traffic of thousands of other users.