Chapter 9: A Distributed Grid Application
Installing mplayer and mencoder
For our grid application example we will assume that the mplayer suite of tools (including mencoder) are installed on all the resources. Use the details below to install mplayer and mencoder on all the nodes.
As user root you can install mplayer using yum. Begin by making sure the prerequisite libraries are installed:
You will need the lame package referenced on this page:
http://rpm.greysector.net/mplayer/requirements.html
You can retrieve and install this library for Fedora Core 4 with the following commands executed as user root:
wget http://rpm.livna.org/fedora/4/i386/lame-3.96.1-0.lvn.4.4.i386.rpm
rpm -Uvh lame-3.96.1-0.lvn.4.4.i386.rpm
Next configure your yum so that it knows to look in the mplayer repository (known as 'greysector'):
[root@nodeA ~]# cd /etc/yum.repos.d/
[root@nodeA yum.repos.d]# wget http://rpm.greysector.net/yum/greysector.repo
--11:29:18-- http://rpm.greysector.net/yum/greysector.repo
=> `greysector.repo'
Resolving rpm.greysector.net... 193.219.28.2
Connecting to rpm.greysector.net|193.219.28.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 522 [text/plain]
100%[====================================>] 522 --.--K/s
11:29:20 (105.74 KB/s) - `greysector.repo' saved [522/522]
[root@nodeA yum.repos.d]# cat greysector.repo
[greysector]
name=Grey Sector RPMs for Fedora Core $releasever - $basearch
baseurl=http://rpm.greysector.net/yum/$releasever/$basearch/
#mirrorlist=http://rpm.greysector.net/yum/mirrorlist-$releasever
gpgkey=http://rpm.greysector.net/greysector-pubkey.txt
enabled=1
[greysector-all]
name=Grey Sector RPMs for all Fedora Core releases - $basearch
baseurl=http://rpm.greysector.net/yum/all/$basearch/
#mirrorlist=http://rpm.greysector.net/yum/mirrorlist-all
gpgkey=http://rpm.greysector.net/greysector-pubkey.txt
enabled=1
Next download and import the key for the repository so that PRM does not complain:
[root@nodeA ~]# wget http://rpm.greysector.net/greysector-pubkey.txt
--11:31:12-- http://rpm.greysector.net/greysector-pubkey.txt
=> `greysector-pubkey.txt'
Resolving rpm.greysector.net... 193.219.28.2
Connecting to rpm.greysector.net|193.219.28.2|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,361 (1.3K) [text/plain]
100%[====================================>] 1,361 --.--K/s
11:31:13 (86.53 MB/s) - `greysector-pubkey.txt' saved [1361/1361]
[root@nodeA ~]# rpm --import greysector-pubkey.txt
With the repository configured you can now easily install mplayer and mencoder. Simply answer 'y' when prompted:
[root@nodeA ~]# yum install mplayer
[root@nodeA ~]# yum install mencoder
You can verify that both mplayer and mencoder are installed (our application will only use mencoder but the mplayer libraries are necessary):
[root@nodeA ~]# which mplayer
/usr/bin/mplayer
[root@nodeA ~]# which mencoder
/usr/bin/mencoder
Be sure to install on all three nodes.
|