Philipp Mehler

Install ICES 0.4 for Icecast2 Server on Ubuntu 11.10

Tags: Konsole | Linux | Ubuntu

This article describes how to install an ICES 0.4  for Icecast2 Server on Ubuntu 11.10. An already installed and running Icecast Server is required.


Installation:
 
  apt-get install libshout3-dev libxml2-dev libmp3lame-dev
  cd /tmp
  wget http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz
  tar xfzs ices-0.4.tar.gz
  cd ices-0.4
  ./configure --prefix=/var/ices-new ;make ;make install
  echo "/mnt/mp3-share/song1.mp3" > /var/ices-new/etc/playlist.txt
 
 
  nano /var/ices-new/etc/ices.conf
 
Paste this into the editor:
 
  <?xml version="1.0"?>
  <ices:Configuration
  xmlns:ices="http://www.icecast.org/projects/ices">
  <Playlist>
  <File>/var/ices-new/etc/playlist.txt</File>
  <Randomize>1</Randomize>
  <Type>builtin</Type>
  <Module>ices</Module>
  </Playlist>
  <Execution>
  <Background>1</Background>
  <Verbose>0</Verbose>
  <BaseDirectory>/var/log/ices/</BaseDirectory>
  </Execution>
  <Stream>
  <Server>
  <Hostname>localhost</Hostname>
  <Port>8000</Port>
  <Password>password</Password>
  <Protocol>http</Protocol>
  </Server>
  <Mountpoint>/radio1</Mountpoint>
  <Dumpfile>ices.dump</Dumpfile>
  <Name>Electro Radio FM</Name>
  <Genre>Electro</Genre>
  <Description>Electro</Description>
  <URL>http://example.com:8000/radio1</URL>
  <Public>0</Public>
  <Bitrate>128</Bitrate>
  <Reencode>0</Reencode>
  <Samplerate>44100</Samplerate>
  <Channels>2</Channels>
  </Stream>
  </ices:Configuration>
 
Starting ICES:
 
  /var/ices-new/bin/ices -c /var/ices-new/etc/ices.conf
 
For more details see log file:
 
  fail -f /var/log/ices/ices.log