Dag repo pro CentOS4

Desktop Users Guide for CentOS 4

Site:SLT Student Portal
Course:SLT Student Portal
Book:DUG for CentOS
Printed by:
Date:Tuesday, July 18 2006, 06:41 AM
This is the Desktop Users Guide to CentOS 4.2. I’ll be adding material as I get to it. The focus of this DUG will be different than the SUSE/Mandriva/Ubuntu DUGs because CentOS is designed as a server so the available software doesn’t make it a great Desktop OS. If you want the latest greatest bugy Redhat use Fedora Core instead.

Grant

Adding additional software repositories

Other distributions have nice graphical software installers that serve as equally functional tools to
their commandline equivalents. In true Redhat fashion CentOS isn’t one of those. You may have
noticed that the Applications -> System Settings -> Add/Remove Applications gui doesn’t
always include the stuff you want. That’s because it only installs software off the distribution CDs.
Not real bright that one isn’t. The other gui is the up2date program which handles all your system
updates. This works great but doesn’t allow you to select a package that’s not already installed.
Hrmph.. So back to the cli we go.

Yum is the cli tool used on CentOS to install sofware. It’s fairly good but the default CentOS OS
retains nearly 100% compatibility to RHEL4 so if Redhat didn’t include it neither will CentOS. You
can break that compatibility by adding more sofware archives though. Some are tested by CentOS
and some are third party.

New! updated Dec 15th 2005. I removed the shell prompt texts in the examples below so now you can just copy
and paste into your shell window to add repositories. This saves time for you and me.


CentOS Plus

The CentOS Plus repository is already set up on CentOS 4 but it isn’t enabled. The reason for
this it breaks compatibility with RHEL4. If you want to install software from it on a case by case
basis just enable it for that one operation.

[root@shuttle ~]# yum –enablerepo=centosplus install

If you decide that RHEL4 compatibility isn’t that important you can just enable it in the
/etc/yum.repos.d/CentOS-Base.repo file. Scroll down to the [centosplus] section and edit the
enable=0 to equal enable=1

#additional packages that extend functionality of existing packages
[centosplus]

name=CentOS-$releasever – Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


CentOS Contrib

The CentOS Contrib repository is already set up on CentOS 4 but it isn’t enabled. These
packages are contributedto CentOS but have NOT been tested by the CentOS team at all.
You’ve been warned.

[root@shuttle ~]# yum –enablerepo=contrib install

If you want enable contrib all the time you change the /etc/yum.repos.d/CentOS-Base.repo
file again. Scroll down to the [contrib] section and edit the enable=0 to equal enable=1

#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


Fedora Extras for CentOS (from Karan)

To add the Fedora Extras (prebuilt for CentOS) repository to CentOS:

cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

If you want to track updates using up2date:

echo „yum kb-centos-extras http://centos.karan.org/el4/extras/stable/$ARCH/RPMS“ \
>> /etc/ >sysconfig/rhn/sources

These packages are signed with a GPG key so you will need to import the key
( as root ).

rpm –import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt



Misc packages for CentOS (from Karan)

To add the Misc packag (prebuilt for CentOS) repository to CentOS:

cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Misc.repo

If you want to track updates using up2date:

echo „yum kb-centos-misc http://centos.karan.org/el4/misc/stable/$ARCH/RPMS \
>> /etc/ >sysconfig/rhn/sources

These packages are signed with a GPG key so you will need to import the key
( as root ).

rpm –import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt


DAG packages for CentOS (from Dag Wiers)

To add the DAG packages (prebuilt for RHEL4) repository to CentOS:

cd /etc/yum.repos.d/
wget http://soundlinuxtraining.com/portal/file.php/1/misc/dag.repo

If you want to track updates using up2date:

echo „yum dag http://apt.sw.be/redhat/el4/en/$ARCH/dag \
>> /etc/ >sysconfig/rhn/sources

These packages are signed with a GPG key so you will need to import the key
( as root ).

rpm –import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt


Dries packages for RHEL/CentOS (huge archive)

To add the Dries packages (prebuilt for RHEL4) repository to CentOS:

cd /etc/yum.repos.d/
wget http://soundlinuxtraining.com/portal/file.php/1/misc/dries.repo

These packages are signed with a GPG key so you will need to import the key
( as root ).

rpm –import http://dries.studentenweb.org/rpm/RPM-GPG-KEY.dries.txt


jpackage for RHEL/CentOS (java archive)

To add jpackage (prebuilt for RHEL4) repository to CentOS:

cd /etc/yum.repos.d/
wget http://www.jpackage.org/jpackage.repo
vi jpackage.repo

Enable the rhel specific repository. Keep the others enabled as well.

 

[jpackage-rhel]
name=JPackage (free) for Red Hat Enterprise Linux $releasever
mirrorlist=http://www.jpackage.org/jpackage_rhel-$releasever.txt
failovermethod=priority
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
enabled=1

These packages are signed with a GPG key so you will need to import the key
( as root ).

rpm –import http://www.jpackage.org/jpackage.asc

 


That should keep you busy for a while…

Grant

I’m adding these as I get to them. Adding plugins requires that you add
the additional software archives in chapter 1. If you don’t you won’t have
access to most of this software.

Installing the Java Virtual Machine

Make sure that you have the DAG software repository and jpackage added. Check chapter 1 titled Adding Software Sources for the howto.

Install Java 1.4.2:
You can just copy and paste the lines into a shell window (as root) to add the repostitory.

yum install j2re
yum install mozilla-j2re

Install Java 1.5.0:

  1. Go to Sun’s download site for Jave and download the Linux RPM (self-extracting file) and save it in your home directory.
  2. Open a terminal window and cd to your home directory just to make sure you’re in the right spot and su to root.
    1. cd ~
      su root
      chmod a+x jre-1_5_0_06-linux-i586-rpm.bin
      ./jre-1_5_0_06-linux-i586-rpm.bin
      rpm -ivh jre-1_5_0_06-linux-i586.rpm
      exit
      ln -s /usr/java/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/
      echo ‚PATH=$PATH:$HOME/bin:/usr/java/jre1.5.0_06/bin/‘ >> ~/.bashrc
  3. Done!



That should take care of it.

Grant

Make sure you have added the extra repositories listed in chapter one.

You might want to go to www1.mplayerhq.hu/
and see what the latest version of the codecs is. If there is a newer one substitute that filename below where I’ve referenced all-20050412.

yum install mplayer
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20050412.tar.bz2
tar xjvpf all-20050412.bz2
cp all-20050412/* /usr/lib/win32/
yum install libdvdcss
yum install divx4linux
yum install mplayerplug-in

This last one will want to install Mozilla 1.7 so let it. We can get rid of it later.

cp /usr/lib/mozilla/plugins/* ~/.mozilla/plugins/
wget this link
rpm -ivh RealPlayer10GOLD.rpm

That’s enough for now. I’ll add more later
Grant

yum groupinstall XFCE-4.2
Dag repo pro CentOS4