How to setup multimedia on CentOS 7?
Step 1: Install the nux-dextop repository
第1步:安装nux-dextop存储库
Run this command to install the nux-dextop repository.
运行此命令以安装nux-dextop存储库。
yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Step 2: Install the adobe repository
第2步:安装adobe存储库
Run this command to install the adobe repository.
运行此命令以安装adobe存储库。
yum -y install http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm
Step 3: Install the desired packages
第3步:安装所需的包
This command will download the flash plugin for Firefox.
此命令将下载Firefox的Flash插件。
yum install flash-plugin
This command will download the java plugin for Firefox.
此命令将下载Firefox的java插件。
yum install icedtea-web
This command will install Handbrake, VLC and smplayer.
此命令将安装Handbrake,VLC和smplayer。
yum install vlc smplayer ffmpeg HandBrake-{gui,cli}
The following command installs a decoder and codecs which are required to play certain types of media. Their usage may be legally restricted in some areas. Obtain legal advice if you are uncertain about the laws in your locality.
以下命令安装播放某些类型媒体所需的解码器和编解码器。在某些地区,他们的使用可能会受到法律限制。如果您不确定当地的法律,请获取法律建议。
rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/fribidi-0.19.4-6.el7.x86_64.rpm
这一步应该是之前的版本不在了,所以使用存在的版本即可:
rpm -ivh http://mirror.centos.org/centos/7/os/x86_64/Packages/fribidi-1.0.2-1.el7.x86_64.rpm
最后一步:
yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld
Notice that you have the CentOS, Nux-Dextop and Adobe repos enabled by default and there should be no issues with running “yum update” or “yum upgrade” in the future.
请注意,默认情况下启用了CentOS,Nux-Dextop和Adobe repos,将来运行“yum update”或“yum upgrade”应该没有问题。