The first step is to obtain the CAJUN software. You need to download the latest release from the http://www.cajun.nu website. The package will come in one of two formats:
shell# cd /usr/share/ shell# tar -xzf /tmp/cajun-nnn.tar.gzwhere nnn is the version number of the version you downloaded. This will place all files in the /usr/share/cajun directory. Note that it's possible a release will unpack into the /usr/share/cajun-nnn directory; if this happens, we slipped up - just type:
mv /usr/share/cajun-nnn /usr/share/cajunwhere here (again) nnn is the version number of the version you downloaded.
shell# rpm -i /tmp/cajun-nnn.rpmwhere nnn is the version number of the version you downloaded. This will place all files in the /usr/share/cajun directory, and will perform some configuration on your machine.
The CAJUN software relies on other software packages to do its job. Once you've got the main CAJUN package installed, you can check to see whether these other packages are already installed. After they're installed, you can go on to configure the CAJUN software.
Before installing, check your RPM database to see if a suitable version of that package is already installed by default; for example,
rpm -qa | grep 'apache\|httpd'will show you what Apache RPMs are installed.
Your life will be much easier if you download and install RPMs instead of building from source. The RedHat CDs have many of these packages. Or, you can go to the indicated website to get the latest release. We recommend using the latest *stable* packages - not development releases.
Once you locate the RPMs, you can install them with 'rpm -i'. Note that the rpm command may inform you that other, unrelated packages are required; you'll need to install those first.
mysql, mysql-server and mysql-develOr, if you're downloading from mysql.com, you'll need to go for the links to "server," "client programs" and "libraries and header files for development." They end up giving you the same three rpm files.
rpm -i mysql-nnn.rpm mysql-server-nnn.rpm mysql-devel-nnn.rpmwhere nnn is the version number of the version you downloaded.
apachein more recent versions of Apache, the name is changed to:
httpdYou only need one, httpd or apache.
rpm -i apache-nnn.rpmor
rpm -i httpd-nnn.rpmdepending on which one you downloaded. Here, nnn is the version number of the version you downloaded. If it complains that it conflicts with a bunch of things that are already installed, chances are you already have Apache installed.
rpm -i libshout-nnn.rpmwhere nnn is the version number of the version you downloaded.
To get the icecast server to startup automatically with each reboot, add this line to /etc/rc.d/rc.local (or some equivalent startup script):
/usr/local/icecast/bin/icecast -bMake sure to modify /usr/local/icecast in the line to be the location that icecast was installed.
As soon as you're done with installation, you're ready to go on to configuration.