In view of the cool x + V5 of the VLC player, it is really comfortable to use it in windows. after dinner, I suddenly wanted to install a player on CentOS. I have been collecting data online for half a day, and I have not found any guidance for CentOS on the VLC official website. The closest thing is the Fedora system. Everyone knows that both Fedora and CentOS are born as mothers, so they should have similarities. Following this idea, we opened the long-overdue ora16 virtual machine, and a yuminstallvlc found that the version turned out to be 1.
In view of the cool x + V5 of the VLC player, it is really comfortable to use it in windows. after dinner, I suddenly wanted to install a player on CentOS. I have been collecting data online for half a day, and I have not found any guidance for CentOS on the VLC official website. The closest thing is the Fedora system. Everyone knows that both Fedora and CentOS are born as mothers, so they should have similarities. Following this idea, open the long-overdue Ora 16 virtual machine, and find that the yum install vlc version is 1.x. x. What is the problem. VLC official website just released version 2.7.0, which makes the old man feel embarrassed.
Ask google. you have to give yourself an explanation. I should declare that my CentOS version is 6.3, and there is no VLC in the repository provided by the official website, so I should give up on this idea. the famous rpmfusion should have it. Finally, I found a few articles about foreigners. don't say that. that's enough. I am very grateful to my predecessors. I would like to record the installation process and steps and share them with you:
Before executing the following commands, you can first go to the/etc/yum. repos. d/directory to ls to see what they look like.
1. install the repository of epel and remi:
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
When a foreigner wrote the article, the epel-release version was 6.7, and the download link he gave was.
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
2. install rpmfusion's repository:
The following two rpm packages must be installed:
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
[Root @ localhost ~] # Yum localinstall -- nogpgcheck http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm
After completing the preceding two steps, go to the/etc/yum. repo. d/directory and execute ls to check the changes. I want to know everything clearly. if you don't know anything about it, let's get it done ..
3. view the vlc version information:
[Root @ localhost ~] # Yum -- enablerepo = remi-test info vlc
The result of this command is as follows:
Available Packages Name: vlc Arch: i686 Version: 2.0.6 Release: 1. el6 Size: 1.4 M Repo: rpmfusion-free-updates Summary: The cross-platform open-source multimedia framework, player and : Server URL: http://www.videolan.org License: GPLv2 + Description: VLC media player is a highly portable multimedia player and : Multimedia framework capable of reading most audio and video : Formats as well as DVDs, Audio CDs VCDs, and various streaming : Protocols. It can also be used as a media converter or a server : Stream in uni-cast or multi-cast in IPv4 or IPv6 on networks.
|
4. installation:
[Root @ localhost ~] # Yum -- enablerepo = remi-test install vlc
Run the input vlc directly after completion.
[Root @ localhost ~] # Vlc
Unfortunately, it tells you that vlc does not support root. It is reasonable to think about how vlc has such a design. We can only blame you for not doing enough. continue to solve the problem.
Two methods:
Method 1: Download the vlc source code and re-compile it. in configure, add a configuration item -- enable-run-as-root, and then everything is fine. At present, it is unrealistic for me. I am also going to bed, unless I want to experience the fun of compiling from the source code someday. [Reject]
Method 2: easy and pleasant. I like it. In this case, the vlc executable file should be installed in the/usr/bin/directory and backed up to another path for future use. Then open/usr/bin/vlc in the vi editor and change the unique geteuid to getppid to save and exit.
Since my CentOS does not have a graphical interface installed, to verify the correctness of the VLC, execute the following command in the VM:
When I don't go to bed, my shoes will fly over. I hope this article can help anyone who needs it.