如何在 CentOS 7 Linux 上安装 Popcorn Time 电影播放器
介绍
Popcorn Time 将电影和电视节目从种子直接传输到您的屏幕上。
客观的
目标是在 CentOS 7 上安装 Popcorn Time 播放器。
要求
如果需要进行系统范围的安装,则需要对 CentOS 进行可选的特权访问。
困难
简单的
惯例
# – 要求以root权限直接以root用户身份或使用
sudo
命令执行给定的linux命令$ – 要求以常规非特权用户身份执行给定的 Linux 命令
指示
先决条件
首先安装一些用于 Popcorn Time 安装的工具:
# yum install wget xz
爆米花时间安装
请注意,如果您在 0.3.10 版本中遇到以下错误消息,请尝试安装较旧的 Popcorn Time 版本。
Illegal instruction (core dumped)
爆米花时间版本0.3.9
32位
# mkdir /opt/popcorn-time; wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.9-Linux-32.tar.xz | unxz | tar x -C /opt/popcorn-time
# ln -sf /opt/popcorn-time/linux64/Popcorn-Time /usr/bin/popcorn-time
64位
# mkdir /opt/popcorn-time; wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.9-Linux-64.tar.xz | unxz | tar x -C /opt/popcorn-time
# ln -sf /opt/popcorn-time/linux64/Popcorn-Time /usr/bin/popcorn-time
爆米花时间版本 0.3.10
32位
# mkdir /opt/popcorn-time; wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-32.tar.xz | unxz | tar x -C /opt/popcorn-time
# ln -sf /opt/popcorn-time/Popcorn-Time /usr/bin/popcorn-time
64位
# mkdir /opt/popcorn-time; wget -qO- https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-64.tar.xz | unxz | tar x -C /opt/popcorn-time
# ln -sf /opt/popcorn-time/Popcorn-Time /usr/bin/popcorn-time
创建桌面启动器
使用文本编辑器创建一个新的 /usr/share/applications/popcorntime.desktop
文件,其中包含以下内容:
[Desktop Entry]
Version = 1.0
Type = Application
Terminal = false
Name = Popcorn Time
Exec = /usr/bin/popcorn-time
Icon = /opt/popcorn-time/popcorntime.png
Categories = Application;
最后一步下载 Popcorn Time 的图标:
# wget -q -O /opt/popcorn-time/popcorntime.png https://upload.wikimedia.org/wikipedia/commons/6/6c/Popcorn_Time_logo.png