Icecast setup
Enable the Icecast daemon by adding the following line to your /etc/rc.conf file:
icecast_enable="YES"You'll need to make a copy the default Icecast config file:
$ cd /usr/local/etc/
$ cp icecast.xml.sample icecast.xmlNow you'll need to edit the icecast.xml file. Notable thing to change:
<source-password>- obviously the default hackme isn't a good choice<relay-password>- ditto<admin-password>- double ditto<hostname>- if you've got a proper DNS name, change this to it- uncomment the
<changeowner>element and set the values of<user>and<group>toicecast <logdir>- change it to/var/log/icecast
FreeBSD won't run Icecast as the root user so you'll need to create an account for the daemon:
$ adduser
Username: icecast
Full name: icecast Daemon
Uid (Leave empty for default): 99
Login group [icecast]:
Login group is icecast. Invite icecast into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: nologin
Home directory [/home/icecast]: /nonexistent
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]:
Username : icecast
Password : <disabled>
Full Name : icecast Daemon
Uid : 99
Class :
Groups : icecast
Home : /nonexistent
Shell : /usr/sbin/nologin
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (icecast) to the user database.
Add another user? (yes/no): no
Goodbye!Create Icecast's log files:
$ mkdir /var/log/icecast
$ touch /var/log/icecast/access.log
$ touch /var/log/icecast/error.log
$ chown :icecast /var/log/icecast/*
$ chmod g+w /var/log/icecast/*.logVerify that icecast will start:
$ /usr/local/bin/icecast -c /usr/local/etc/icecast.xml
Changed groupid to 99.
Changed userid to 99.Hit ^C to kill it.
Then check the log file for errors:
$ tail /var/log/icecast/error.logIf that looks good go ahead and start the daemon:
$ /usr/local/etc/rc.d/icecast2 start
Starting icecast.Open up lynx and make sure it's serving up status pages:
$ lynx http://localhost:8000






Icecast2 Setup
Great job! Was very helpfull for me, thanks a lot =)
just fyi
When I tried to start the daemon...
$ /usr/local/etc/rc.d/icecast2 start
didn't work for me, but the following command did... :-)
$ /usr/local/etc/rc.d/icecast2.sh start
Thanks for everything!
Best,
Albert
might depend on the version
humm might be that you're using an older version. when i wrote it, the current version didn't have the .sh extension.