Playing media files in Fedora-based Qubes revisions

Go back to topic: Playing media files in Fedora-based Qubes

  1. v7 anchor; v7 full version
  2. v6 anchor; v6 full version
  3. v5 anchor; v5 full version
  4. v4 anchor; v4 full version
  5. v3 anchor; v3 full version
  6. v2 anchor; v2 full version

Revision #7

Edited on
2023-09-07
Edited by user
deeplow

Revision #6

Edited on
2020-09-24
Edited by user
deeplow
> :warning: This guide adds third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications [here](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/). ## Installing VLC in Fedora > :warning: This guide enables third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications [here](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/). ## 1. (option a) Installing VLC in Fedora
### Add extra software repos Let's add extra software repositories (RPM Fusion) to your fedora. On a Fedora-based [TemplateVM](https://qubes-os.org/doc/glossary/#templatebasedvm) such as <kbd>fedora-30</kbd> open the terminal and type:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E%fedora).noarch.rpm sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm dnf -y update dnf install vlc dnf --enablerepo=rpmfusion-free --enablerepo=rpmfusion-free-updates --enablerepo=rpmfusion-nonfree --enablerepo=rpmfusion-nonfree-updates install vlc
### Shut down TemplateVM and associated VMs ## 1. (option b) Installing other media players 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. ## 2. Shut down TemplateVM and associated VMs
### See if it worked ## 3. See if it worked
### (optional) add a VLC to your list of applications ### (optional) add a VLC or MPV to your list of applications

Revision #5

Edited on
2020-08-22
Edited by user
deeplow
**note:** this post has been edited by @deeplow for clarity **note:** this post has been edited by @deeplow for clarity <div data-theme-toc="true"> </div>
*To install VLC in QubesOS v4.0.3* > **note:** If you're unfamiliar with how to install software on qubes, please first read ["Installing software in TemplateVMs"](https://qubes-os.org/doc/software-update-domu/#installing-software-in-templatevms). > **note:** If you're unfamiliar with how to install software on qubes, please first read ["Installing software in TemplateVMs"](https://qubes-os.org/doc/software-update-domu/#installing-software-in-templatevms). > :warning: This guide adds third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications [here](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/).
> :warning: This guide adds third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications [here](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/). 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. ### Add extra software repos
``` ``` VLC should now be installed successfully in the TemplateVM. ### Shut down TemplateVM and associated VMs Then shut down the TemplateVM and any AppVMs [based on that TemplateVM](https://qubes-os.org/doc/glossary/#templatebasedvm) for changes to take effect. ### See if it worked The you start the Fedora [AppVM](https://qubes-os.org/doc/glossary/#appvm) and you should be able to play video files (they'll open in VLC). If it didn't work, comment down bellow. ### (optional) add a VLC to your list of applications Optionally you can also add VLC Media Player [to your list of applications](http://qubes-os.org/doc/managing-appvm-shortcuts/). -----------------------------------------------------
VLC should now be installed successfully in the TemplateVM. Then shut down the TemplateVM and any AppVMs [based on that TemplateVM](https://qubes-os.org/doc/glossary/#templatebasedvm) for changes to take effect. The you start the Fedora [AppVM](https://qubes-os.org/doc/glossary/#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](http://qubes-os.org/doc/managing-appvm-shortcuts/).And then go to [the next step](#shut-down-templatevm-and-associated-vms).

Revision #4

Edited on
2020-08-22
Edited by user
deeplow

Revision #3

Edited on
2020-08-22
Edited by user
deeplow
Fedora-based templates out of the box cannot play some common video formats such as mp4. This tutorial installs VLC. Installing VLC in debian-based qubes is also an alternative. 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:** If you're unfamiliar with how to install software on qubes, please first read ["Installing software in TemplateVMs"](https://qubes-os.org/doc/software-update-domu/#installing-software-in-templatevms). *Using a chosen Template such as fedora-30:* *Open the official VLC download page in firefox (at time of writing it was* https://www.videolan.org/vlc/ Click `Download VLC` (will probably say Fedora Linux) below the Download VLC button I used the first option - `Fedora 22 and later (dnf)` Open a Terminal in the fedora-30 Template `su -` <enter> `dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E%fedora).noarch.rpm` <enter> `dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm` <enter> `dnf install vlc` <enter> In case vlc does not install (It didn't for me) I used this method from a 3 year old post found in a search: After the first three entries above, `dnf -y update` <enter> `dnf install vlc` <enter> if no success, there will be a message like: > No package vlc available. Error: Unable to find a match. If this is the case, `cd /etc/yum.repos.d/` <enter> `sudo vim rpmfusion-free.repo` <enter> vim will open the rpmfusion-free.repo file. Vim commands if the reader has not used vim before are the letter `i` to enter edit mode, then edit as required and when done hit <`escape`> to exit the edit mode and then `:wq!` to save and exit. > **note:** If you're unfamiliar with how to install software on qubes, please first read ["Installing software in TemplateVMs"](https://qubes-os.org/doc/software-update-domu/#installing-software-in-templatevms). ## Installing VLC in Fedora > :warning: This guide adds third party repositories (RPM Fusion) to your Fedora installation. Read more on some of the implications [here](https://docs.fedoraproject.org/en-US/quick-docs/setup_rpmfusion/). Let's add extra software repositories (RPM Fusion) to your fedora. On a Fedora-based [TemplateVM](https://qubes-os.org/doc/glossary/#templatebasedvm) such as <kbd>fedora-30</kbd> open the terminal and type: ```shell_session sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E%fedora).noarch.rpm sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm dnf -y update dnf install vlc ``` ## Troubleshooting ### No package vlc available. Error: Unable to find a match. If you get the error `No package vlc available. Error: Unable to find a match.` while running `dnf install vlc`, then you should do: ```bash sudo gedit /etc/yum.repos.d/rpmfusion-free.repo # or any other text editor ```
> enabled=0 ``` enabled=0 ```
Now re-enter the lines `dnf -y update` and `dnf install vlc` VLC should now install in the Template. I needed to reboot the system for changes to take effect. But I'm new to Qubes and fedora. There might be a couple of shortcuts here, that someone more knowledgeable can suggest. Please feel free to edit and use as desired. cheersNow re-enter the following lines in the terminal. ```shell_session sudo dnf -y update sudo dnf install vlc ``` VLC should now be installed successfully in the TemplateVM. Then shut down the TemplateVM and any AppVMs [based on that TemplateVM](https://qubes-os.org/doc/glossary/#templatebasedvm) for changes to take effect. The you start the Fedora [AppVM](https://qubes-os.org/doc/glossary/#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](http://qubes-os.org/doc/managing-appvm-shortcuts/).

Revision #2

Edited on
2020-08-22
Edited by user
deeplow
Deeplow - You asked for the commands used to install VLC, that I used. Here they are: Fedora-based templates out of the box cannot play some common video formats such as mp4. This tutorial installs VLC. Installing VLC in debian-based qubes is also an alternative. **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"](https://qubes-os.org/doc/software-update-domu/#installing-software-in-templatevms).