Ubuntu上安装Jellyfin插件的步骤
在安装插件前,需确保Ubuntu系统已安装Jellyfin媒体服务器。若未安装,可通过以下命令完成安装:
sudo apt update && sudo apt upgrade -y
sudo apt install apt-transport-https ca-certificates curl -y
mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
echo "deb [arch=$(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
sudo apt update
sudo apt install jellyfin -y
sudo systemctl start jellyfin
sudo systemctl enable jellyfin
这是最简单的方式,适用于大多数用户:
http://<服务器IP>:8096
,使用管理员账号登录。若使用Docker运行Jellyfin,需通过容器方式安装插件:
sudo apt update && sudo apt install docker.io -y
sudo docker run -d --name jellyfin -e PUID=1000 -e PGID=1000 -p 8096:8096 -v /path/to/config:/config -v /path/to/media:/media jellyfin/jellyfin
(将/path/to/config
和/path/to/media
替换为实际配置和媒体文件路径)jellyfin/plugin-name
),使用docker pull
命令拉取:docker pull jellyfin/plugin-name:latest
docker run -d --name jellyfin-plugin --link jellyfin:jellyfin -e JELLYFIN_PORT=8096 -e JELLYFIN_BASE_URL=http://your-jellyfin-server jellyfin/plugin-name:latest
若插件未提供Web或Docker安装方式,可手动编译安装:
sudo apt install build-essential git -y
example-plugin
为例):git clone https://github.com/username/example-plugin.git
cd example-plugin
make
sudo make install
/opt/jellyfin/plugins
):sudo cp -r example-plugin /opt/jellyfin/plugins/
sudo systemctl restart jellyfin
.NET
、ffmpeg
等),需提前安装。/config
目录)和媒体库。/var/log/jellyfin/jellyfin.log
)定位问题。