Migrating Plex TrueNAS plugin to a custom jail

TrueNAS includes a set of plugins that will configure a certain application in a jail, for instance Plex. It’s a really nice feature, it works and it’s easy to use. But for long term use the plugins tend to not work as well. I’ve seen issues keeping the jail up to date, both with the latest release of Plex but also with the latest release of FreeBSD. For long term use a custom jail is a better choice since you have much more control over it. Here I will show how you can migrate Plex already running as a plugin to a custom jail on TrueNAS.

Continue reading “Migrating Plex TrueNAS plugin to a custom jail”

Using Podget to download podcasts for Plex on TrueNAS

Plex has support for podcasts and web shows (which I henceforth will refer to as video podcasts) but I’ve never been a fan of their implementation. You can only listen to podcasts offline on Android (I have at least not seen a download feature on other platforms that I use) and there are constant problems with resuming playback where I left off. For video podcasts I have never seen an option to download them on any platform.

Therefore I have been searching for an alternative solution that still would work with Plex and that solution is called Podget. Podget is basically just a bash-script that can download any podcast that supplies a RSS-feed. So the idea is that Podget will download the episodes into a folder Plex can read from. Here is how I set it up in a jail on TrueNAS.

Continue reading “Using Podget to download podcasts for Plex on TrueNAS”

Backing up a Linux server using FreeNAS – harder than you would think

I recently finished building a new FreeNAS machine, my first actually. One of the goals for the machine was to use it to backup my servers. My requirements were the following:

  • It needs to be able to backup an entire Linux server ( / ) but some paths needs to be excluded like /dev and /proc.
  • It should not put too much strain on the server that is being backed up.
  • The FreeNAS server needs to initiate the backup. It’s behind NAT and I don’t want to open up any ports.
  • It would be very beneficial if the UID and GID of the files and folders are kept. So this is not strictly a requirement but I very much would like this feature.
Continue reading “Backing up a Linux server using FreeNAS – harder than you would think”

How to check if your server or any services needs restarting with Nagios

If you are running a Linux server that don’t have rebootless kernel patching like KernelCare or Canonical Livepatch then chances are you are running an out of date kernel. And that is understandable because keep tracking of new kernels and rebooting your servers isn’t fun. But Nagios can do that job for you, or at least the part of looking for a new kernel, and then notify you of when it’s time to reboot! That way you don’t have to worry about being vulnerable to known kernel exploits just because you haven’t rebooted your server.

Continue reading “How to check if your server or any services needs restarting with Nagios”

Two 950 Pro 512GB in raid0 vs one 970 Evo Plus 2TB

I’ve been running two Samsung 950 Pro 512GB in raid0 for a total of 1TB of NVMe storage as my boot drive in my desktop PC. I didn’t really want to run raid0 originally but I started with one drive and it turned out to not be enough space so I added another one a couple of years ago. Now I’ve used almost 900GB so it was time for an upgrade, I blame all these huge modern games. Continue reading “Two 950 Pro 512GB in raid0 vs one 970 Evo Plus 2TB”

How to setup a custom SSL certificate for the free version of Pritunl

I haven’t been able to find much information on this but from what I’ve found it looks like you have to pay in order to install a custom SSL certificate for the Pritunl web interface. You get a self signed certificate when you install Pritunl but I’m sure most people that do that want a valid certificate, even if it’s just for a small server running in a closet. Continue reading “How to setup a custom SSL certificate for the free version of Pritunl”

How to use Git over a custom SSH port

This will be a quick tip! If you are using Git over SSH and the Git server isn’t using the default port of 22 for SSH things doesn’t just work any more. You can no longer for instance run:

git clone git@gitlab.domain.net:group/project.git

That will just time out since Git assumes you are using the default port. Instead you need to run the following command:

git clone ssh://git@gitlab.domain.net:5555/group/project.git

Replace 5555 with the custom port that your Git server is using.