How to set up Icecast on Centos 7
Icecast is a flexible multimedia streaming service, designed to stream audio files for the most common types of audio files. This guide will show you how to set up Icecast with Centos 7 64 bit.
This guide will assume that you have Centos 7 64-bit installed, with a static IP address assigned and relevant networking setup.
First, we need to download the relevant programs and repositories.
To start, download the latest epel-release rpm with the following command:
yum -y install epel-release
(You may want to run yum update to update all packages after this step)
We now need to install the libxslt-devel repository:
yum -y install libxslt-devel
Finally, install the final prerequisites:
yum install curl-devel libtheora-devel libvorbis-devel libxslt-devel speex-devel
We can now move on to installing the Icecast program for our server.
Use the following command to install the repository:
yum -y install icecast
We now need to configure the audio server, which means we need to edit the configuration file.
This can be done by running your favourite text editor on the following file:
Make sure to open the firewall port 8000 and reload the firewall with the following commands:
firewall-cmd --zone=public --add-port=8000/tcp --permanent firewall-cmd --zone=public --add-port=8000/udp --permanent firewall-cmd --reload
We can now run the server with the following command:
icecast -c /etc/icecast.xml -b
You can now access the audio server by going to your web browser and entering your hostname or IP address followed by :8000.
If the server has started successfully, you should see a screen like this:
Congratulations! Your Icecast installation has been successful.