Wiki > Icecast
-
Download the latest version of Icecast:
wget https://downloads.xiph.org/releases/icecast/icecast-2.4.4.tar.gz
-
Untar and configure, make & install:
tar xvf icecast-*.tar.gz; cd icecast-* ./configure --prefix=$HOME make clean; make; make install
-
Edit the default configuration:
nano ~/etc/icecast.xml
-
In the authentication section, change all three passwords, and optionally the admin username:
<authentication> <!-- Sources log in with username 'source' --> <source-password>SOURCE PASSWORD</source-password> <!-- Relays log in with username 'relay' --> <relay-password>RELAY PASSWORD</relay-password> <!-- Admin logs in with the username given below --> <admin-user>admin</admin-user> <admin-password>ADMIN PASSWORD</admin-password> </authentication>
-
Change your
<hostname>
to be either server.whatbox.ca or another domain you have CNAMEd to your server:<hostname>server.whatbox.ca</hostname>
-
In the
<listen-socket>
section, tell Icecast to use port 13960 (this port has been randomly generated for you):<listen-socket> <port>13960</port> </listen-socket>
-
Optionally, configure mount settings along these lines:
<mount type="normal"> <mount-name>/YOUR MOUNT NAME</mount-name> <password>YOUR PASSWORD</password> <fallback-mount>/FALLBACK MOUNT NAME</fallback-mount> <fallback-override>1</fallback-override> <fallback-when-full>0</fallback-when-full> <hidden>0</hidden> <charset>utf-8</charset> <stream-name>user's Cool Stream</stream-name> <stream-description>You can set this if you want to.</stream-description> <stream-url>http://whatbox.ca/</stream-url> <genre>Comedy</genre> <bitrate>192</bitrate> </mount>
Further info on how to configure mounts is available at the Icecast website.
-
Save the configuration file and quit your editor.
-
Create Icecast's logging directory:
mkdir -p ~/var/log/icecast
-
Start Icecast:
~/bin/icecast -b -c ~/etc/icecast.xml
-
Optionally, add Icecast to your crontab so it starts on reboot:
crontab -e
Add the following line:
@reboot /home/user/bin/icecast -b -c /home/user/etc/icecast.xml