{"id":423,"date":"2022-04-21T15:07:43","date_gmt":"2022-04-21T07:07:43","guid":{"rendered":"http:\/\/blog.simple-dev.top\/?p=423"},"modified":"2024-05-21T12:49:03","modified_gmt":"2024-05-21T04:49:03","slug":"pve7-1%e4%bd%bf%e7%94%a8lxc-ubuntu20-4%e5%ae%89%e8%a3%85jellyfin%e5%8f%8a%e5%bc%80%e5%90%af%e7%a1%ac%e4%bb%b6%e8%a7%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/blog.simple-dev.top\/?p=423","title":{"rendered":"PVE7.1\u4f7f\u7528lxc-ubuntu20.4\u5b89\u88c5Jellyfin\u53ca\u5f00\u542f\u786c\u4ef6\u89e3\u7801"},"content":{"rendered":"\n<p>\u4e00\u3001 \u521b\u5efalxc\u5bb9\u5668<\/p>\n\n\n\n<p>\u76f4\u63a5\u521b\u5efaCT\uff0c\u6a21\u677f\u91cc\u662f\u7a7a\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5728pve\u2014\u2014local\uff08pve\uff09\u2014\u2014\u6a21\u677f\u91cc\uff0c\u627e\u5230\u76f8\u5173\u6a21\u677f\uff08\u5982ubuntu20.04\uff09\u5e76\u4e0b\u8f7d\uff1b<br>\u521b\u5efaCT\uff0c\u53bb\u6389\u201c\u65e0\u7279\u6743\u7684\u5bb9\u5668\u201d\u7684\u52fe\uff1b\u6a21\u677f\u9009\u62e9\u521a\u624d\u4e0b\u8f7d\u597d\u7684\u6a21\u677f\uff1b\u521b\u5efa\u5b8c\u6210\u540e\u9009\u9879\u91cc\u4fee\u6539\u5f00\u673a\u542f\u52a8\uff0c<br>\u521b\u5efa\u5b8c\u6210\u540e\u9009\u9879\u91cc\u4fee\u6539\u5f00\u673a\u542f\u52a8\uff0c\u5728\u9009\u9879\u2014\u2014\u529f\u80fd\u91cc\u52fe\u9009\u5d4c\u5957\uff0cNFS\uff0cSMB\/CIFS\uff1b<br>\u7136\u540e\u542f\u52a8\u865a\u62df\u673a\uff0c\u7528\u6237\u540droot\uff0c\u5bc6\u7801\u4e3a\u521b\u5efa\u65f6\u8bbe\u7f6e\u7684\u5bc6\u7801\uff1b<\/p>\n\n\n\n<p>\u5b89\u88c5vim\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install vim<\/code><\/pre>\n\n\n\n<p>\u4fee\u6539\u8f6f\u4ef6\u6e90\uff1a<\/p>\n\n\n\n<p>\u7f16\u8f91\u5668\u6253\u5f00 \/etc\/apt\/sources.list&nbsp;\u66ff\u6362\u9ed8\u8ba4\u7684&nbsp;archive.ubuntu.com&nbsp;\u4e3a&nbsp;mirrors.aliyun.com<\/p>\n\n\n\n<p>\u4fee\u6539\u65f6\u533a\uff0c\u6539\u4e3a\u4e2d\u56fd\u65f6\u95f4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl set-timezone Asia\/Shanghai<\/code><\/pre>\n\n\n\n<p>\u5f00\u542fssh\u5bc6\u7801\u767b\u9646<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/ssh\/sshd_config  #\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/code><\/pre>\n\n\n\n<p>\u5c06 #PermitRootLogin prohibit-password \u6539\u4e3a PermitRootLogin yes \uff0c\u5141\u8bb8root\u767b\u9646<\/p>\n\n\n\n<p>\u5c06 #PasswordAuthentication yes \u524d\u9762#\u53f7\u53bb\u6389\uff0c\u5141\u8bb8\u5bc6\u7801\u767b\u9646<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e8c\u3001 Ubuntu\u5b89\u88c5Jellyfin\u8fc7\u7a0b<\/p>\n\n\n\n<p>\u6309\u7167\u5b98\u7f51\u6559\u7a0b\uff1a<\/p>\n\n\n\n<p>1\u3001\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5 APT \u7684 HTTPS \u4f20\u8f93\u534f\u8bae:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install apt-transport-https<\/code><\/pre>\n\n\n\n<p>2\u3001\u542f\u7528 Universe \u5b58\u50a8\u5e93\u4ee5\u83b7\u53d6\u6240\u6709 FFMpeg \u4f9d\u8d56\u9879:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add-apt-repository universe<\/code><\/pre>\n\n\n\n<p>3\u3001\u5982\u679c\u4e0a\u9762\u7684\u547d\u4ee4\u5931\u8d25\uff0c\u60a8\u5c06\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u8f6f\u4ef6\u5305 software-properties-common\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install software-properties-common<\/code><\/pre>\n\n\n\n<p>4\u3001\u5bfc\u5165 GPG \u7b7e\u540d\u5bc6\u94a5(\u7531 Jellyfin \u56e2\u961f\u7b7e\u540d) :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget -O - https:\/\/repo.jellyfin.org\/ubuntu\/jellyfin_team.gpg.key | sudo apt-key add -\n<\/code><\/pre>\n\n\n\n<p>5\u3001\u5728\/etc\/apt\/sources.list.d\/jellyfin.list \u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5b58\u50a8\u5e93\u914d\u7f6e:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb &#91;arch=$( dpkg --print-architecture )] https:\/\/repo.jellyfin.org\/ubuntu $( lsb_release -c -s ) main\" | sudo tee \/etc\/apt\/sources.list.d\/jellyfin.list<\/code><\/pre>\n\n\n\n<p>6\u3001\u66f4\u65b0 APT \u5b58\u50a8\u5e93:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<p>7\u3001\u5982\u679c\u62a5\u9519\uff0c\u63d0\u793a\u5b58\u50a8\u5e93\u6ca1\u6709\u53d1\u5e03\u6587\u4ef6<br>E: The repository \u2018https:\/\/repo.jellyfin.org\/ubuntu focal Release\u2019 does not have a Release file.<br>\u5219\u9700\u8981\u5c1d\u8bd5\u66f4\u65b0\u8bc1\u4e66\u5b58\u50a8\uff08\u53c2\u8003\uff1ahttps:\/\/github.com\/jellyfin\/jellyfin\/issues\/6686\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install ca-certificates<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0\u8bc1\u4e66\u5b58\u50a8\u540e\u91cd\u65b0\u66f4\u65b0APT\u5b58\u50a8\u5e93<\/p>\n\n\n\n<p>8\u3001\u5b89\u88c5 Jellyfin:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install jellyfin<\/code><\/pre>\n\n\n\n<p>9\u3001\u4f7f\u7528\u60a8\u9009\u62e9\u7684\u5de5\u5177\u7ba1\u7406 Jellyfin \u7cfb\u7edf\u670d\u52a1:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>service jellyfin status\nsystemctl restart jellyfin\n\/etc\/init.d\/jellyfin stop<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start jellyfin\nsystemctl stop jellyfin\nsystemctl enable jellyfin<\/code><\/pre>\n\n\n\n<p>10\u3001\u8bbf\u95eeJellyfin Web\u754c\u9762\u3002<br>http:\/\/\u4e3b\u673aIP:8096<\/p>\n\n\n\n<p><strong>\u4e09 -1\u3001Jellyfin\u6dfb\u52a0\u5a92\u4f53\u5e93\uff08windows\u5171\u4eab\u78c1\u76d8\uff09<\/strong><\/p>\n\n\n\n<p>\u8f83\u597d\u7684\u65b9\u6cd5\u662f\u628a\u5c40\u57df\u7f51\u5171\u4eab<a href=\"https:\/\/so.csdn.net\/so\/search?q=%E6%8C%82%E8%BD%BD&amp;spm=1001.2101.3001.7020\" target=\"_blank\" rel=\"noreferrer noopener\">\u6302\u8f7d<\/a>\u5230Ubuntu<\/p>\n\n\n\n<p>1\u3001\u5728mnt\u6587\u4ef6\u5939\u4e0b\u65b0\u5efa\u6587\u4ef6\u5939<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/mnt\nmkdir r\nmkdir s<\/code><\/pre>\n\n\n\n<p>2\u3001\u5b89\u88c5CIFS\u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install cifs-utils<\/code><\/pre>\n\n\n\n<p>3\u3001\u6302\u8f7d\u78c1\u76d8\u6216\u5171\u4eab\u6587\u4ef6\u5939\uff08\u91cd\u542f\u540e\u9700\u8981\u91cd\u65b0\u6302\u8f7d\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount \/\/192.168.0.199\/r \/mnt\/r -o username=xxx,password=111,dir_mode=0777,file_mode=0777\nmount \/\/192.168.0.199\/s \/mnt\/s -o username=xxx,password=111,dir_mode=0777,file_mode=0777<\/code><\/pre>\n\n\n\n<p>4\u3001\u53d6\u6d88\u6302\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>umount \/mnt<\/code><\/pre>\n\n\n\n<p>5\u3001\u5f00\u673a\u81ea\u52a8\u6302\u8f7d<\/p>\n\n\n\n<p>\u7f16\u8f91\u6302\u8f7d\u6587\u6863<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/fstab<\/code><\/pre>\n\n\n\n<p>\u6309i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f\u6dfb\u52a0\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/192.168.0.199\/r \/mnt\/r cifs defaults,auto,username=xxx,password=1111,rw,uid=0,gid=0,dir_mode=0777,file_mode=0777     0       0<\/code><\/pre>\n\n\n\n<p>\u8f93\u5165<code>:wq<\/code>\u4fdd\u5b58\uff0c\u91cd\u542f<\/p>\n\n\n\n<p>\u56db\u3001pve\u7269\u7406\u673a\u4e0b\u5b89\u88c5\u663e\u5361\u9a71\u52a8<\/p>\n\n\n\n<p>1\u3001\u767b\u5f55pve\uff0c\u67e5\u8be2\u8bbe\u5907\u7f16\u53f7<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@pve:~# ls -l \/dev\/dri\ndrwxr-xr-x 2 root root         80 Dec 17 00:04 by-path\ncrw-rw---- 1 root video  226,   0 Dec 17 00:04 card0\ncrw-rw---- 1 root render 226, 128 Dec 17 00:04 renderD128<\/code><\/pre>\n\n\n\n<p>2\u3001pve\u4e3b\u673a\u5b89\u88c5intel\u6838\u663e\u9a71\u52a8\u5e76\u6620\u5c04\u7ed9lxc\u5bb9\u5668<\/p>\n\n\n\n<p>2.1 8\u4ee3\u53ca\u4ee5\u4e0acpu\u5b89\u88c5\u65b9\u6cd5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install intel-media-va-driver-non-free\napt install vainfo<\/code><\/pre>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u67e5\u8be2\u663e\u5361\u4fe1\u606f\uff0c\u663e\u793a\u5982\u4e0b\uff0c\u8bf4\u660e\u9a71\u52a8\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"882\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/87fef70faf3582c6ed21230fd232998d.png\" alt=\"\" class=\"wp-image-428\" style=\"width:471px;height:441px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/87fef70faf3582c6ed21230fd232998d.png 942w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/87fef70faf3582c6ed21230fd232998d-300x281.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/87fef70faf3582c6ed21230fd232998d-768x719.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p>\u53ef\u770b\u5230\uff0c\u4ee5\u4e0a\u52a0\u8f7d\u7684\u662fiHD driver,\u4e0d\u662fi965\u3002\u8fd9\u91cc\u4e0d\u5b89\u88c5i965\u9a71\u52a8\uff0c\u56e0\u4e3ai965\u9002\u5408\u4ee5\u524d\u8001\u7248\u672c\u7684cpu\uff0c8\u4ee3cpu\u6700\u597d\u5b89\u88c5\u4ee5\u4e0b\u9a71\u52a8\u3002<\/p>\n\n\n\n<p>2.2 \u8001CPU\u5b89\u88c5\u65b9\u6cd5<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"82\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/dcd440f3dfbb63f085434efa9d78b535.png\" alt=\"\" class=\"wp-image-429\" style=\"aspect-ratio:11.487804878048781;width:735px;height:auto\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/dcd440f3dfbb63f085434efa9d78b535.png 942w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/dcd440f3dfbb63f085434efa9d78b535-300x26.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/dcd440f3dfbb63f085434efa9d78b535-768x67.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p>\u6ce8\u610f\uff1a\u5e94\u8be5\u5148\u5b89\u88c5\u663e\u5361\u9a71\u52a8intel-media-va-driver-non-free\uff0c\u518d\u5b89\u88c5vainfo\u8f6f\u4ef6\u3002<\/p>\n\n\n\n<p>\u76f4\u63a5\u5b89\u88c5vainfo\u4f1a\u81ea\u52a8\u628ai965\u548cintel-media-driver\u9a71\u52a8\u4e00\u8d77\u88c5\u4e0a<\/p>\n\n\n\n<p>\u6267\u884cvainfo\uff0c\u5982\u679c\u663e\u793a\u51fa\u652f\u6301\u7684\u5404\u79cd\u7f16\u89e3\u7801\u4fe1\u606f(Supported profile and entrypoints)\u8bf4\u660e\u9a71\u52a8\u5b89\u88c5\u6210\u529f\u3002\u8f93\u51fa\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@pve:~# vainfo\nerror: can't connect to X server!\nlibva info: VA-API version 1.4.0\nlibva info: va_getDriverName() returns 0\nlibva info: Trying to open \/usr\/lib\/x86_64-linux-gnu\/dri\/i965_drv_video.so\nlibva info: Found init function __vaDriverInit_1_4\nlibva info: va_openDriver() returns 0\nvainfo: VA-API version: 1.4 (libva 2.4.0)\nvainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.3.0\nvainfo: Supported profile and entrypoints\nVAProfileMPEG2Simple : VAEntrypointVLD\nVAProfileMPEG2Simple : VAEntrypointEncSlice\nVAProfileMPEG2Main : VAEntrypointVLD\nVAProfileMPEG2Main : VAEntrypointEncSlice\nVAProfileH264ConstrainedBaseline: VAEntrypointVLD\nVAProfileH264ConstrainedBaseline: VAEntrypointEncSlice\nVAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP\nVAProfileH264Main : VAEntrypointVLD\nVAProfileH264Main : VAEntrypointEncSlice\nVAProfileH264Main : VAEntrypointEncSliceLP\nVAProfileH264High : VAEntrypointVLD\nVAProfileH264High : VAEntrypointEncSlice\nVAProfileH264High : VAEntrypointEncSliceLP\nVAProfileH264MultiviewHigh : VAEntrypointVLD\nVAProfileH264StereoHigh : VAEntrypointVLD\nVAProfileVC1Simple : VAEntrypointVLD\nVAProfileVC1Main : VAEntrypointVLD\nVAProfileVC1Advanced : VAEntrypointVLD\nVAProfileNone : VAEntrypointVideoProc\nVAProfileJPEGBaseline : VAEntrypointVLD\nVAProfileJPEGBaseline : VAEntrypointEncPicture\nVAProfileVP8Version0_3 : VAEntrypointVLD\nVAProfileHEVCMain : VAEntrypointVLD\nVAProfileHEVCMain10 : VAEntrypointVLD\nVAProfileVP9Profile0 : VAEntrypointVLD\nVAProfileVP9Profile2 : VAEntrypointVLD<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u6267\u884c\u62a5\u9519\u6216\u8005\u6ca1\u6709\u6b63\u786e\u8bd5\u522b\u89e3\u7801\u914d\u7f6e\uff0c\u68c0\u67e5\u662f\u5426\u963b\u6b62\u4e86\u6a21\u5757\u52a0\u8f7d\u3002\uff08\u6bd4\u5982\u914d\u7f6e\u663e\u5361\u76f4\u901a\u7684\u65f6\u5019\u4f1a\u914d\u7f6e\u9a71\u52a8\u9ed1\u540d\u5355\uff0c\u8ba9\u5bbf\u4e3b\u673a\u4e0d\u8981\u52a0\u8f7d\u663e\u5361\u7684\u9a71\u52a8\uff0c\u8ba9\u4f4d\u7ed9vfio\u3002<\/p>\n\n\n\n<p>3. \u5c06\u8bbe\u5907\u6620\u5c04\u7ed9LXC\u5bb9\u5668<\/p>\n\n\n\n<p>\u4fee\u6539\u5bb9\u5668\u914d\u7f6e\u6587\u4ef6 \/etc\/pve\/lxc\/ \u865a\u62df\u673aID.conf<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"115\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421154013.png\" alt=\"\" class=\"wp-image-430\" style=\"width:172px;height:58px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421154013.png 343w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421154013-300x101.png 300w\" sizes=\"(max-width: 343px) 100vw, 343px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/pve\/lxc\/106.conf<\/code><\/pre>\n\n\n\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u672b\u5c3e\u52a0\u5165\u4e0b\u9762\u51e0\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lxc.cgroup2.devices.allow: c 226:0 rwm                  \/\/\u6620\u5c04\u7684\u8bbe\u5907\u989d\nlxc.cgroup2.devices.allow: c 226:128 rwm     \nlxc.autodev: 1                                         \/\/\u521d\u59cb\u5316\u8bbe\u5907\nlxc.hook.autodev: \/var\/lib\/lxc\/106\/mount_hook.sh      \/\/\u8fd0\u884c\u7684\u811a\u672c\uff0c\u9700\u8981\u7f16\u5199<\/code><\/pre>\n\n\n\n<p>(\u6ce8\u610f\uff1a\u7f51\u4e0a\u597d\u591a\u6559\u7a0b\u8fd9\u91cc\u7684\u914d\u7f6e\u90fd\u662flxc.cgroup.devices.allow\uff0c\u4f46\u5728\u8f83\u65b0\u7248\u672c\u91cc\uff0c\u53c2\u6570\u5df2\u6539\u6210\u4e86cgroup2)<\/p>\n\n\n\n<p>\u5176\u4e2d226:0\u548c226:128\u662f\u4e0a\u4e00\u6b65ls -l \/dev\/dri \u83b7\u5f97\u7684`\u8bbe\u5907\u53f7`\u3002<\/p>\n\n\n\n<p>\u7f16\u5199\u521d\u59cb\u5316\u811a\u672c\/var\/lib\/lxc\/106\/mount_hook.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/var\/lib\/lxc\/106\/mount_hook.sh<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p ${LXC_ROOTFS_MOUNT}\/dev\/dri\nmknod -m 666 ${LXC_ROOTFS_MOUNT}\/dev\/dri\/card0 c 226 0\nmknod -m 666 ${LXC_ROOTFS_MOUNT}\/dev\/dri\/renderD128 c 226 128<\/code><\/pre>\n\n\n\n<p>\u6700\u540e\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 755 \/var\/lib\/lxc\/106\/mount_hook.sh<\/code><\/pre>\n\n\n\n<p>\u542f\u52a8CT<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e94\u3001lxc\u4e3b\u673a\u4e0b\u5f00\u542f\u786c\u4ef6\u89e3\u7801<\/p>\n\n\n\n<p>1. ssh\u767b\u9646lxc\u4e3b\u673a<\/p>\n\n\n\n<p>\u67e5\u770b\u662f\u5426\u6620\u5c04\u6210\u529f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"123\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421162838.png\" alt=\"\" class=\"wp-image-433\" style=\"width:325px;height:62px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421162838.png 650w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421162838-300x57.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<p>\u4e0e\uff08\u56db\uff09\u7269\u7406\u673a\u76f8\u540c\u65b9\u6cd5\u5b89\u88c5\u663e\u5361\u9a71\u52a8&amp;vainfo<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"722\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421164222.png\" alt=\"\" class=\"wp-image-437\" style=\"width:465px;height:361px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421164222.png 929w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421164222-300x233.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421164222-768x597.png 768w\" sizes=\"(max-width: 929px) 100vw, 929px\" \/><\/figure>\n\n\n\n<p>\u67e5\u8be2\u662f\u5426\u663e\u793a\u663e\u5361\u4fe1\u606f\u3002\u663e\u793a\u5982\u4e0b\uff0c\u8bf4\u660e\u5bb9\u5668\u53ef\u4ee5\u8bc6\u522b\u6838\u663e\u8bbe\u5907\u4e86\u3002<\/p>\n\n\n\n<p>(\u6ce8\u610f\uff1a\u56e0\u4e3a\u7cfb\u7edf\u7248\u672c\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5\uff0c\u663e\u793a\u7684vaapi\u7248\u672c\u548c\u9a71\u52a8\u7248\u672c\u548cpve\u4e3b\u673a\u4e5f\u4e0d\u4e00\u6837.)<\/p>\n\n\n\n<p>2. \u914d\u7f6ejellyfin\u786c\u4ef6\u52a0\u901f<\/p>\n\n\n\n<p>\u767b\u5f55jellyfin\u2014\u2014\u63a7\u5236\u53f0\u2014\u2014\u64ad\u653e\uff0c\u542f\u52a8\u786c\u4ef6\u52a0\u901f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"725\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/5d92cbda019a4bc8e6dcf7bbe9ea9946.png\" alt=\"\" class=\"wp-image-439\" style=\"width:471px;height:363px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/5d92cbda019a4bc8e6dcf7bbe9ea9946.png 942w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/5d92cbda019a4bc8e6dcf7bbe9ea9946-300x231.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/5d92cbda019a4bc8e6dcf7bbe9ea9946-768x591.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p>\u5982\u679c\u5728\u770b\u7535\u5f71\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u9ed1\u5c4f\u6216\u8005\u82b1\u5c4f\uff0c\u53ef\u4ee5\u9002\u5f53\u5173\u95ed\u4e00\u90e8\u5206\u7f16\u7801\u7684\u786c\u4ef6\u7f16\u7801<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u64ad\u653e\u89c6\u9891\uff0c\u5728(\u5bb9\u5668)Ubuntu\u7cfb\u7edf\u4f7f\u7528intel_gpu_top\u5de5\u5177\u76d1\u6d4b\uff0c\u6838\u663e\u662f\u5426\u5de5\u4f5c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install intel-gpu-tools    #\u9700\u5b89\u88c5\u5de5\u5177<\/code><\/pre>\n\n\n\n<p>\u4e0d\u64ad\u653e\u89c6\u9891\u65f6\uff0cGPU\u65e0\u8d1f\u8f7d<\/p>\n\n\n\n<p>\u64ad\u653e\u9700\u8981\u8f6c\u7801\u7684\u89c6\u9891\u65f6\uff0cGPU\u5904\u4e8e\u8d1f\u8f7d\u72b6\u6001<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"315\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/c60b57199d61291777f47ef38a954cef.png\" alt=\"\" class=\"wp-image-440\" style=\"width:471px;height:158px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/c60b57199d61291777f47ef38a954cef.png 942w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/c60b57199d61291777f47ef38a954cef-300x100.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/c60b57199d61291777f47ef38a954cef-768x257.png 768w\" sizes=\"(max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p>Jellyfin\u64ad\u653e\u6570\u636e\uff0c\u53ef\u4ee5\u770b\u5230\u8f6c\u7801\u4fe1\u606f\u3002\u8bf4\u660e\uff0c\u786c\u4ef6\u52a0\u901f\u751f\u6548\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"1024\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/0126c37c319c8178623c70ed63342118-617x1024.png\" alt=\"\" class=\"wp-image-441\" style=\"width:309px;height:512px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/0126c37c319c8178623c70ed63342118-617x1024.png 617w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/0126c37c319c8178623c70ed63342118-181x300.png 181w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/0126c37c319c8178623c70ed63342118.png 675w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>jellyfin android \u5ba2\u6237\u7aef<\/p>\n\n\n\n<p><a href=\"https:\/\/repo.jellyfin.org\/releases\/client\/android\/\">https:\/\/repo.jellyfin.org\/releases\/client\/android\/<\/a><\/p>\n\n\n\n<p>jellyfin androidTV \u5ba2\u6237\u7aef<\/p>\n\n\n\n<p><a href=\"https:\/\/repo.jellyfin.org\/releases\/client\/androidtv\/\">https:\/\/repo.jellyfin.org\/releases\/client\/androidtv\/<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e09-2\u3001 \u6302\u8f7dnas\u7684nfs\u8fdc\u7a0b\u76ee\u5f55\u505a\u5a92\u4f53\u5e93<\/p>\n\n\n\n<p>lxc\u5bb9\u5668\u4e2d<\/p>\n\n\n\n<p>1. \u5b89\u88c5nfs-common\u5de5\u5177<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install nfs-common<\/code><\/pre>\n\n\n\n<p>2.\u521b\u5efa\u672c\u5730\u76ee\u5f55\u5e76\u5c06nfs\u8fdc\u7a0b\u76ee\u5f55\u6302\u8f7d\u5230\u672c\u5730\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/mnt\/movie\nmount -t nfs 192.168.66.6:\/volume2\/video \/mnt\/movie\/<\/code><\/pre>\n\n\n\n<p>3.\u67e5\u770b\u6302\u8f7d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>df -h<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"214\" src=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421180221.png\" alt=\"\" class=\"wp-image-444\" style=\"width:429px;height:107px\" srcset=\"https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421180221.png 858w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421180221-300x75.png 300w, https:\/\/blog.simple-dev.top\/wp-content\/uploads\/2022\/04\/20220421180221-768x192.png 768w\" sizes=\"(max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<p>4.\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u6302\u8f7dnfs\u8fdc\u7a0b\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vim \/etc\/fstab  #\u4fee\u6539fstab\u6587\u4ef6<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>192.168.66.6:\/volume2\/video \/mnt\/movie nfs defaults 0 0\n<\/code><\/pre>\n\n\n\n<p>5.\u91cd\u542f\u6d4b\u8bd5<\/p>\n\n\n\n<p>\u6216\u5148\u5378\u8f7d\u5df2\u6302\u8f7d\u7684\u76ee\u5f55<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>umount \/mnt\/movie<\/code><\/pre>\n\n\n\n<p>\u518d\u6267\u884c\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount -a<\/code><\/pre>\n\n\n\n<p>\u4e5f\u5c31\u662f\u81ea\u52a8\u6302\u8f7d\u6240\u6709\u76ee\u5f55\uff0c\u81ea\u7136\u4e5f\u5305\u62ec\u521a\u521a\u5199\u5165\u5230\/etc\/fstab\u4e2d\u7684nfs\u534f\u8bae\u7684\u76ee\u5f55<\/p>\n\n\n\n<p>\u6700\u540edf -h\u4e00\u4e0b\uff0c\u770b\u5185\u5bb9\u51fa\u73b0\u5c31\u8bf4\u660e\u6ca1\u95ee\u9898 <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u516d\u3001jellyfin\u9875\u9762\u914d\u7f6e\u53c2\u8003<\/p>\n\n\n\n<p><a href=\"https:\/\/post.smzdm.com\/p\/a8x7kpm0\/\">https:\/\/post.smzdm.com\/p\/a8x7kpm0\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/384241222\">https:\/\/zhuanlan.zhihu.com\/p\/384241222<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001 \u521b\u5efalxc\u5bb9\u5668 \u76f4\u63a5\u521b\u5efaCT\uff0c\u6a21\u677f\u91cc\u662f\u7a7a\u7684\uff0c\u6240\u4ee5\u9700\u8981\u5728pve\u2014\u2014local\uff08pve\uff09\u2014\u2014\u6a21\u677f\u91cc\uff0c\u627e\u5230\u76f8\u5173 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[18],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/posts\/423"}],"collection":[{"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=423"}],"version-history":[{"count":10,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=\/wp\/v2\/posts\/423\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.simple-dev.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}