在樹莓派上安裝 Jellyfin
Jellyfin 可做為家庭媒體伺服器中心
搭配 google drive可擴展容量
安裝
搭配 google drive可擴展容量
安裝
官網建議 raspberry pi 可用 linuxserver版本
建立 /opt/jellyfin 目錄並設定適當權限
在該目錄下建立 docker-compose.yml
version: "3"
services:
jellyfin:
image: linuxserver/jellyfin
container_name: jellyfin
devices:
- /dev/vchiq:/dev/vchiq ##HWA Chip
network_mode: host
ports:
- 8096:8096
environment:
PUID: 1003
PGID: 1003
TZ: Asia/Taipei
UMASK_SET: "022"
volumes:
- /opt/jellyfin:/config
- /mnt/movies:/media
- /dev/shm:/config/data/transcoding-temp/transcodes
- /opt/vc/lib:/opt/vc/lib ## OpenMax Libraries
restart: always
然後 docker-compose up就可安裝並啟動
接下來建立systemd service
在 /etc/systemd/system 下面建立 jellyfin.service
# /etc/systemd/system/jellyfin.service
# Docker-Compose App
[Unit]
Description=Jellyfin Docker-Compose App
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/opt/jellyfin
ExecStart=/usr/local/bin/docker-compose up -d
ExecStop=/usr/local/bin/docker-compose down
TimeoutStartSec=0
[Install]
WantedBy=multi-user.target
儲存後
sudo systemctl enable jellyfin.service
Update 升級
Via Docker Compose
- Update all images:
docker-compose pull
- or update a single image:
docker-compose pull jellyfin
- or update a single image:
- Let compose update all containers as necessary:
docker-compose up -d
- or update a single container:
docker-compose up -d jellyfin
- or update a single container:
- You can also remove the old dangling images:
docker image prune
留言
張貼留言