Using Alma linux on raspberry 4 as a media server
This post will serve as guide to walk through the hardware/setup, and some of the podman commands use to get a media server up and running on a raspberry 4 using the jellyfin container.
Software:
- alma linux pi image can be grabbed here: http://repo.almalinux.org/rpi/images/
Hardware:
- raspberry pi 4, running alma linux
- I purchased the hink sink, and a few fans to keep it cool
- an external hard drive, I am using a 1TB seagate ssd usb drive
This guide assumes that you already have OS installed and connected with wired or wifi as well.
Lets get started.
Mount your hard drive, in my case:
mount /dev/sda1 /MOUNTPOINT. Once mounted, create your media directory
Instead of creating a network in podman, decided to create an interface and hang it off my wlan0 interface.
ip addr add IPADDR/MASK dev wlan0
Open jellyfin port via firewalld.
firewall-cmd --zone=public --permanent --add-port=8096/tcp
Fire up, and grab the jellyfin image with podman.
podman run -d --volume ~/jellyfin/config:/config:z --volume ~/jellyfin/cache:/cache:z --volume /home/$USER/transfer/$MEDIA:/media:z -p 172.20.7.10:8096:8096 --label "io.containers.autoupdate=image" --name myjellyfin jellyfin/jellyfin
- replace $USER with your user account, and then your media path
If all goes well, you should that your podman up and running in rootless mode.
podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
402efc6e0d24 docker.io/jellyfin/jellyfin:latest 5 days ago Up 5 days ago 172.20.7.10:8096->8096/tcp myjellyfin