3

解决RockyLinux和Centos Stream 9中firefox无法播放HTML视频问题 - JianYuBlog

 1 year ago
source link: https://www.cnblogs.com/LJianYu/p/16999645.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

解决RockyLinux和Centos Stream 9中firefox无法播放HTML视频问题

如题在测试两种centos后续系统时,发现firefox无法播放HTML视频问题。经过一番折腾找到了解决的办法,具体解决如下:

首先下载VLC

$sudo yum install vlc

而后重启浏览器就可以使用firefox播放HTML视频了。

在下载vlc时会因为仓库问题出错,

对于Rocky,这里直接使用中科大的源一劳永逸,根据自己的系统使用对应的命令。

中科大源官网

Rocky Linux 源使用帮助 — USTC Mirror Help 文档

#我使用的时rocky9,所以使用如下命令
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
    -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.ustc.edu.cn/rocky|g' \
    -i.bak \
    /etc/yum.repos.d/rocky-extras.repo \
    /etc/yum.repos.d/rocky.repo
#更新缓存
dnf makecache

对于centos stream 9,使用RPM Fusion源。

RPM Fusion源官网

Configuration - RPM Fusion

先找到Command Line Setup using rpm目录,而后复制RHEL or compatible like CentOS下的命令到命令框执行。

#下面命令即为上述欲复制命令
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
#更新缓存
dnf makecache

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK