Debian下搭建jellyfin流媒体服务器

jellyfin项目地址:https://github.com/jellyfin/jellyfin

Jellyfin客户端:https://jellyfin.readthedocs.io/en/latest/user-docs/apps/

本篇教程以debian10为例

导入GPG安装密钥:

wget -O - https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | apt-key add -

如遇到报错

root@JellyFin:~# wget -O - https://repo.jellyfin.org/jellyfin_team.gpg.key | apt-key add -
--2021-05-12 02:28:46--  https://repo.jellyfin.org/jellyfin_team.gpg.key
Resolving repo.jellyfin.org (repo.jellyfin.org)... 68.183.204.194
Connecting to repo.jellyfin.org (repo.jellyfin.org)|68.183.204.194|:443... connected.
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
HTTP request sent, awaiting response... 200 OK
Length: 3078 (3.0K) [application/octet-stream]
Saving to: 'STDOUT'

-                                   0%[                                                           ]       0  --.-KB/s    in 0s      


Cannot write to '-' (Broken pipe).

请尝试安装环境:

apt install gnupg2 -y

配置apt源:

echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

然后进行jellyfin安装

apt更新源
apt update
安装所需依赖
apt install apt-transport-https -y
安装jellyfin
apt install jellyfin -y
启动jellyfin
service jellyfin start

最后通过IP:8096即可访问jellyfin

#相关使用命令
重启程序:service jellyfin restart
查看状态:service jellyfin status
开机自启:systemctl enable jellyfin

 

发表回复

电子邮件地址不会被公开。必填项已用 * 标注