Skip to main content

MAPS Icecast

- copy icecast settings (icecst-local.xml) to /etc/icecast2/icecast.xml


sudo cp $HOME/suda-git/config/icecast-local.xml /etc/icecast2/icecast.xml


- generate a password and put it the variable $secret


secret=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo '')


- use sed to replace the string "hackme" in the icecast config file with our generated random string


sudo sed -i "s/hackme/$secret/g" /etc/icecast2/icecast.xml


- enable systemd service (so it starts on boot)


sudo systemctl enable icecast2.service