Playing DVDs in a Linux/CentOS machine and FFMPEG Installation

This involves several steps.  These instructions also apply to installing FFMPEG on your machine.

1.  Adding a new repository to your list.

Download/install RPMForge package for your 32-bit machine : http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

2.  Downloading/Installing the necessary packages.

3.  Enabling/disabling repositories.

 

Some more instructions from repoforge.org.  Use as needed.

  • Use cat /etc/redhat-release to find which release of EL you are using
  • Use uname -a to find your processor architecture
  • Use rpm -ivh package-filename to install the rpmforge-release package (also works with URLs)
  • You can use wget or curl to download the package using one of the above links if needed (for example on a server with no X Window)
  • Then you can use yum to install the available packages from the RepoForge repo, e.g. yum install --enablerepo=rpmforge-extras
  • Afterward, you can disable accidental updates from the repo by setting enabled = 0 in the repo definition file in /etc/yum.repos.d/

4.  yum search ffmpeg

5.  yum install ffmpeg ffmpeg-* gstreamer-ffmpeg.  If you use Virtualmin to provide/maintain your hosting/machine, make sure you have updated your system with ‘yum -y update’ before enabling rpmforge on the machine!

6.  yum install mplayer smplayer mencoder

7.  That’s it.  Check it plays a DVD or video using SMPlayer from Applications -> Sound Video -> SMPLayer!

Please follow the link, Playing DVDs in a CentOS 64bit installation for steps for 64bit machines.

 

Cannot connect to internet on a fresh install of centos 6!

If you recently installed CentOS 6+ (Desktop) and if your Ethernet connections are showing up but not working, and getting this error”_nm_object_get_property: error getting ‘State’ for /org/freedesktop/NetworkManager/ActiveConnection/3: (19),”then follow the instructions below to correct the problem.First login to the machine directly as root or as a privileged user.1.  Disable NetworkManager by running ‘service NetworkManager stop.’2.  Enable network by running ‘service network start.’Now, check your internet connection by opening a well known website on the browser or try grabbing a random web page by running ‘wget domain.tld’ on command line or better yet, try updating your system by running ‘yum -y update.’Caution.  Before running ‘yum -y update,’ make sure you have enabled/disabled needed/unwanted repositories.  For more on repos, please visit, repos in CentOS.   

yum repos CentOS 6

The repositories configuration files are located at “/etc/yum.repos.d/” in CentOS 6+

Run yum repolist to check for enabled repositories which will give you a list repo IDs and repo names:

Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: mirror.stanford.edu
* centosplus: centos.chi.host-engine.com
* extras: mirrors.sonic.net
* updates: centos.mbni.med.umich.edu
virtualmin
virtualmin-universal                                                                        193/193
repo id                              repo name                                                status
base                                 CentOS-6 – Base                                          4,802
centosplus                           CentOS-6 – Plus                                             62
extras                               CentOS-6 – Extras                                           12
updates                              CentOS-6 – Updates                                         831
virtualmin                           Red Hat Enterprise 6 – i386 – Virtualmin                   101
virtualmin-universal                 Virtualmin Distribution Neutral                            193
repolist: 6,001

To permanently disable a repo, open ‘/etc/yum.repos.d/CentOS-Media.repo’ in a text editor like nano/gedit/emacs, go to the end of file and change ‘enabled=1’ to ‘enabled=0’

That’s it, you just disabled a repository on CentOS 6.5!