Fedora-based templates out of the box cannot play some common video formats such as mp4. This tutorial installs the VLC Media Player in Fedora. Installing VLC in debian-based qubes is also an alternative (and may be easier).
note: this post has been edited by @deeplow for clarity
note: If you're unfamiliar with how to install software on qubes, please first read "Installing software in TemplateVMs".
⚠️ This guide enables third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications here.
This guide was tested in QubesOS v4.0.3
with the fedora-30
template. If it worked for you in newer versions, please mention that bellow so.
dnf --enablerepo=rpmfusion-free --enablerepo=rpmfusion-free-updates --enablerepo=rpmfusion-nonfree --enablerepo=rpmfusion-nonfree-updates install vlc
just repeat the above command but replacing vlc
at the end by the packages ffmpeg mpv
You should now be able to start the MPV player.
Then shut down the TemplateVM and any AppVMs based on that TemplateVM for changes to take effect.
The you start the Fedora AppVM and you should be able to play video files (they'll open in VLC). If it didn't work, comment down bellow.
Optionally you can also add VLC Media Player to your list of applications.
If you get the error No package vlc available. Error: Unable to find a match.
while running dnf install vlc
, then you should do:
sudo gedit /etc/yum.repos.d/rpmfusion-free.repo # or any other text editor
The line which will need editing will be near the beginning probably 7 lines down:
enabled=0
Change the 0
to a 1
and then save and exit.
Now re-enter the following lines in the terminal.
sudo dnf -y update
sudo dnf install vlc
And then go to the next step.