apt-get install icecast2
Afterwards we must edit /etc/icecast2/icecast.xml. Most default values should work fine for now, but you should change the passwords in the ... section. The source-password is the password that Ices2 will later on use to connect to Icecast2; the admin-password is the password that the admin will use in Icecast2's web interface; we won't use the relay-password, but anyway you should change it.
<!-- Sources log in with username 'source' -->
<!-- Relays log in username 'relay' -->
<!-- Admin logs in with the username given below -->
Afterwards edit /etc/default/icecast2 and set ENABLE to true:
# Defaults for icecast2 initscript
# sourced by /etc/init.d/icecast2
# installed at /etc/default/icecast2 by the maintainer scripts
# This is a POSIX shell fragment
# Full path to the server configuration file
# Name or ID of the user and group the daemon should run under
# Edit /etc/icecast2/icecast.xml and change at least the passwords.
# Change this to true when done to enable the init.d script
That's it already, we can now start the Icecast2 server:
You can now direct your browser to http://:8000/ (replace 192.168.0.100 with your own IP address or FQDN) and browse through the web interface.
There is a couple more settings to change depending on your intended use. But that should get you started.