running jellyfin in docker

What is jellyfin?

Jellyfin is a home run mediacenter to playback your local media files (video, music). It’s like your own private netflix, where you decide what comes, goes and stays. You can access it through your browser, but there are also many many clients available. You can run it on your computer, or nas. You could even run it on a raspberry pi. It only takes a lot of processing power when trickplay is running, creating thumbnail pictures to display in the timeline when rewinding or going fast forward. Apart from that, it doesn’t really use much, unless you’ve enabled transcoding (for the output to meet the connected client’s capabilities).

Read More

Running immich in docker (with TLS/SSL)

Fed up with the notifications from google that your disk space is getting full? Then host your own photos.google.com, but it’s called immich (image, duh). You’ll need a machine with docker installed and plenty of disk space for what you want to save.

Now, apart from your photos you’ll need 3 files, .env and docker-compose.yml, and an empty file in ./data/vhosts with the name of the vhost in you want your immich site to be available on. This file will be used to tell Let’s Encrypt what the hostname is you want an SSL certificate for. I’ve mounted a disk specifically for storing my data on /var/store/immich.

Note that in the machine learning section, rocm is for Radeon.Check the original docker-compose.yml file for the name for NVidia. Read More

CSF is pulling the plug

A number of scripts on here use csf for blocking assholes. Unfortunately CSF will be closing down at the end of the month. As it is not yet certain what the future bring (will directadmin continue to offer it as a download/install or will it go open source), we can’t exactly plan for the future.

Announcement

Way to the Web Ltd and Configserver.com will be closing down permanently on 31 August 2025.

This closure affects all of our commercial software including ConfigServer Exploit Scanner (cxs), MailScanner Front-End (MSFE), and Outgoing Spam Monitor (osm). It also affects our free software including ConfigServer Security and Firewall (csf), ConfigServer Mail Queues (cmq), ConfigServer Mail Manage (cmm), ConfigServer Modsecurity Control (cmc), and ConfigServer Explorer (cse).

After 31st August, there will be no further support, downloads, or license IP changes available.

In order to continue using any of our commercial software after the 31st of August, you must update the software to the latest version. If not updated, any of our commercial software products will cease to function and cannot be reactivated once the download and license servers are shut down.

We have prepared a list of FAQs to assist you with any questions you may have. If your question is not answered here, feel free to email us or log a ticket on the helpdesk between now and 31st August.

Add all unblocked ip addresses from directadmin’s brute force list to CSF’s block list

This isn’t that difficult, but adding a lot of ip addresses through CSF’s command line can take a long time, especially when some/a lot of these ip addresses are already present. So this script checks /etc/csf/csf.deny for the ip addresses to be added and if it isn’t present already will add it through csf with the comment “Abuse”.

#!/bin/bash

###################################################################
# abuse.sh v1.0                                                   #
# ip addresses in /usr/local/directadmin/data/admin/brute_ip.data #
# are added to /etc/csf/csf.deny with the comment Abuse when not  #
# yet added.                                                      #
# (c)opyleft Take13                                               #
###################################################################

for IP in `cat /usr/local/directadmin/data/admin/brute_ip.data | awk -F = '{print $1}'` ; do
	COUNT=`grep $IP /etc/csf/csf.deny | wc -l`
	if [ "$COUNT" -ne 0 ] ; then
		echo $IP" already in block list"
	else
		csf -d $IP Abuse
	fi
done
domain already exists

When you want to add a domain to a directadmin server and you get the message that it already exists but you can’t find it in directadmin, there might be some lingering files left over. This script will let you find them.

#!/bin/bash
DOMAIN=$1

if [[ -z "$DOMAIN" ]] ; then
	echo "Usage: "$0" domain"
	exit;
fi

echo "Bind config          : "`grep $DOMAIN /etc/named.conf`
echo "Bind zone            : "`ls -l /var/named/$DOMAIN.db`
echo "Virtual domains list : "`grep $DOMAIN /etc/virtual/domains`
echo "Virtual domainowners : "`grep $DOMAIN /etc/virtual/domainowners`
echo "Virtual domain config: "`ls -ld /etc/virtual/$DOMAIN`
echo "rndc file            : "`ls -l /var/named/*.nzf`
Dump all databases

Simple script with minimal settings to be set. Will dump databases and save them in a location of your choosing after cleaning backups that are deemed to old (age of your choosing). It’s been written with mariadb as primary target. Mariadb binaries complain now when called on with their mysql-counterpart names. So mysql is now mariadb. mysqldump is now mariadb-dump

#!/bin/bash

# SETTING ENVIRONMENT - free choices
TARGETDIR=/backup
MAXAGE=7
GZIPCOMPRESSION=8
# SETTING ENVIRONMENT - default
TIMESTAMP=`date +%Y%m%d`
# SETTING ENVIRONMENT - mariadb binaries complain when called on with mysql-name
MYSQLBIN=/usr/bin/mariadb
MYSQLDUMPBIN=/usr/bin/mariadb-dump

# PREPERATION - Create backup target
mkdir -p $TARGETDIR/$TIMESTAMP
# PREPERATION - Clean backup target
find $TARGETDIR -ctime +$MAXAGE -exec rm -rf {} \;


# ACTION write database backups
# Loop through all database names
for DATABASE in `echo "show databases;" | $MYSQLBIN | grep -v Database | grep -v information_schema | grep -v mysql | grep -v sys | grep -v performance_schema` ; do
	echo "Dumping "$DATABASE" to "$TARGETDIR/$TIMESTAMP/$DATABASE".sql.gz"
	$MYSQLDUMPBIN $DATABASE | gzip -$GZIPCOMPRESSION > $TARGETDIR/$TIMESTAMP/$DATABASE.sql.gz
	ls -l $TARGETDIR/$TIMESTAMP/$DATABASE.sql.gz
done