Edit /etc/default/icecast2 and set ENABLE to true.
nano /etc/default/icecast2
find this text fragment;
# Change this to true when done to enable the init.d script
ENABLE=false
and change ENABLE setting to true
# Change this to true when done to enable the init.d script
ENABLE=true
Now, note that the comments say "# sourced by /etc/init.d/icecast2 " and " # Edit /etc/icecast2/icecast.xml and change at least the passwords." Edit icecast.xml. Most of the settings can stay at their defaults, but you should change all the "hackme" passwords to something you will remember.
nano /etc/icecast2/icecast.xml
Find the authentication section;
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
and change the passwords. In this article I use "my1pa55w0rd"; but make sure you use something different.
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>my1pa55w0rd</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>my1pa55w0rd</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>my1pa55w0rd</admin-password>
</authentication>
The source password is used by the stream source program to stream to the server. The admin password is used by the admin user to access the web admin pages. The relay password is used if the server is used as a stream relay.
To change the location, hostname, admin, and server ID information on the web interface administration "Global Server Stats" page you can add in the following settings right below <hostname>localhost</hostname>
<location>your location, unchaged it defaults to; earth</location>
<admin>your email account or name, unchanged it defaults to; icemaster@localhost</admin>
<fileserve>1</fileserve>
<server-id>version of icecast, or whatever, unchanged it defaults to; icecast 2.3</server-id>
A few things you should make mental note of from the icecast.xml file;
Sources log in with username 'source' - <!-- Sources log in with username 'source' -->
and use the password you set. - <source-password>my1pa55w0rd</source-password>
default number of clients [listeners] is 100 - <clients>100</clients>
default number of sources is 2 - <sources>2</sources>
default listen-socket is port 8000 - <port>8000</port>
logs are saved to /var/log/icecast2 - <logdir>/var/log/icecast2</logdir>
save the file.
No comments:
Post a Comment