Install VLC on yum in CentOS 6.5

Source: Internet
Author: User

Install VLC on yum in CentOS 6.5

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:

Linux: CentOS 6.5

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. You can also create an account:
Useradd Username
Passwd User Name

# Useradd vlc
# Passwd vlc

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:

Its function is to use vlc to publish a video file named space_camera.flv in the current directory in a "streaming" manner, similar to vod of Youku and Tudou, then, enable vlc in windows and enter "mmsh: // 192.168.40.132: 11111" in "enable Network streaming". The result is as follows:

Finally, confirm the version of my Windows version vlc:

 

Install the latest version of VLC2.0.2 on Ubuntu 12.04

How to install VLC 2.2.0 on Ubuntu 14.04

Ubuntu 14.04 tips: display notifications of VLC (VLC media player)

For details about VLC media player, click here
VLC media player: click here

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.