ubuntu安装ffmpeg_安装 Jellyfin 开始肥宅生活

本文介绍了如何在Ubuntu系统上安装Jellyfin媒体服务器,包括从官方源安装Jellyfin和ffmpeg,设置依赖,以及开始使用和配置反向代理。同时,提供了Windows系统的简单安装方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

先放两张效果图

786e6de8c86d907c9f41fe93ac9954c1.png

e1d42a2e0322dd782f8bfdbdcd612ff5.png

完美的宅家生活 不就是这样嘛

在 Windows 系统上安装

直接去 官网( https://jellyfin.org/ ) 下载安装包就好,我才懒得讲怎么装(

Ubuntu/Debian 安装

从官方源中安装

Debian

#添加 Jellyfin Team 的签名  wget -O - https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | sudo apt-key add -#添加源echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/debian $( lsb_release -c -s ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list#更新缓存sudo apt update#安装 Jellyfinsudo apt install jellyfin#开机自启sudo systemctl enable jellyfin

Ubuntu

#启用 Universe repositoryadd-apt-repository universe#添加 Jellyfin Team 的签名  wget -O - https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo apt-key add -#添加源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#安装 Jellyfinsudo apt install jellyfin#开机自启sudo systemctl enable jellyfin
获取 deb 包方式安装 (如果前面那种方法很慢可以试试这种)
  • 中国大陆地区建议找个代理来进行下面操作
  • 下载最新版本的 Jellyfin 主程序 和  jellyfin-ffmpeg,Repo在下面?
  • https://repo.jellyfin.org/releases/server/debian/versions/
  • https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/
  • Ubuntu用户请把上面俩链接中的 debian 换成 ubuntu
  • 将两个deb文件发送到服务器上
  • 安装依赖(Debian)  sudo apt install at libass9 libbluray2 libfl2 libmp3lame0 libnuma1 libogg0 libopus0 libtheora0 libva-drm2 libva2 libvdpau1 libvorbis0a libvorbisenc2 libwebpmux3 libx264-155 libx265-165 libzvbi-common libzvbi0
  • 安装依赖(Ubuntu)  sudo apt install sudo apt install at libsqlite3-0 libfontconfig1 libfreetype6 libssl1.0.0
  • 安装 Jellyfin  sudo dpkg -i jellyfin_*.deb jellyfin-ffmpeg_*.deb
  • 解决剩下的依赖问题  sudo apt -f install

开始使用

打开浏览器,进入 http://ip:8096/,选择中文

选择显示语言

93a0ab514bab57c642412f031dec4189.png

设置用户名密码

045629905726d8c4f8ce682cd294869e.png

添加媒体库

70f58cdf6f306f8259ff49a7779f6ad2.png

设置首选元数据语言,注意中国在这里显示的是People’s Republic of China

ca6253268f09ee8a3ab9c5e0e0ac1843.png

允许远程访问,如果要使用反向代理之类的建议不选择第二项

a3eb2679b3dd79001f2e24440f107439.png

完成!

bb9a273c7f53eeacc0a3b27132cdb4e1.png

反向代理

根据官方贴出来的配置修改

server {    listen 端口号 ssl http2;    server_name 你的域名;    ssl_certificate 证书路径;    ssl_certificate_key 密钥路径;    ssl_stapling on;    ssl_stapling_verify on;    # Security / XSS Mitigation Headers    add_header X-Frame-Options "SAMEORIGIN";    add_header X-XSS-Protection "1; mode=block";    add_header X-Content-Type-Options "nosniff";    # Content Security Policy    # See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP    # Enforces https content and restricts JS/CSS to origin    # External Javascript (such as cast_sender.js for Chromecast) must be whitelisted.    add_header Content-Security-Policy "default-src https: data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' https://www.gstatic.com/cv/js/sender/v1/cast_sender.js; worker-src 'self' blob:; connect-src 'self'; object-src 'none'; frame-ancestors 'self'";    location / {        # Proxy main Jellyfin traffic        proxy_pass http://127.0.0.1:8096/;        proxy_set_header Host $host;        proxy_set_header X-Real-IP $remote_addr;        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_set_header X-Forwarded-Proto $scheme;        proxy_set_header X-Forwarded-Protocol $scheme;        proxy_set_header X-Forwarded-Host $http_host;        # Disable buffering when the nginx proxy gets very resource heavy upon streaming        proxy_buffering off;    }    location /socket {        # Proxy Jellyfin Websockets traffic        proxy_pass http://127.0.0.1:8096/socket;        proxy_http_version 1.1;        proxy_set_header Upgrade $http_upgrade;        proxy_set_header Connection "upgrade";        proxy_set_header Host $host;        proxy_set_header X-Real-IP $remote_addr;        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;        proxy_set_header X-Forwarded-Proto $scheme;        proxy_set_header X-Forwarded-Protocol $scheme;        proxy_set_header X-Forwarded-Host $http_host;    }}

最下面的 location /socket 是必须的,不然会导致无法登录

服务控制

#查看状态

systemctl status jellyfin

#启动服务

systemctl start jellyfin

#停止服务

systemctl stop jellyfin

c4cd88693eb8c60c1829e985656d595f.png b79f482e2a640c1b3684a9939326d1fb.png

张哲

主页

home.asec01.net

博客

blog.asec01.net 博客 - 中国大陆镜像

blog-mirror.zhangzhe-tech.cn

Github

@zzzz0317

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值