How to Install Icecast on AnonVM
Icecast allows you to stream audio to listeners over the internet, providing flexible configurations for bitrate, user limits, and mount points. With this tutorial, you’ll be able to set up Icecast on your AnonVM server and start streaming.
Prerequisites
Before installing Icecast, make sure you have the following:
- Root or sudo access on your AnonVM server.
- A fresh installation of Ubuntu 20.04 or Debian 10+.
- Basic knowledge of the command line.
Step 1: Update Your System
To ensure you’re installing the latest version of Icecast, first update your server’s package lists and upgrade any outdated packages:
Step 2: Install Icecast
-
Install the Icecast package from the default Ubuntu/Debian repositories:
-
Start the Icecast service:
-
Enable Icecast to start at boot:
Step 3: Configure Icecast
Icecast’s configuration file is located at /etc/icecast2/icecast.xml
. To customize settings, open this file using a text editor:
Key Configuration Options
-
Set Admin and Source Passwords:
Locate the
<authentication>
section, and update theadmin
andsource
passwords. These are essential for managing the server and connecting source clients: -
Set the Server’s Hostname and Port:
Update the
<hostname>
and<port>
values to reflect your domain or server IP. Typically, Icecast listens on port 8000: -
Configure Limits:
Set user and bitrate limits under the
<limits>
section based on your expected listener count and bandwidth: -
Customize Mount Points:
Icecast allows you to set multiple mount points (streams). By default, it uses
/example.ogg
. To change this or add more streams, modify the<mount>
section:Each
<mount>
entry represents a different stream. -
Save and Exit:
After configuring Icecast to your preference, save and exit the editor by pressing
CTRL + X
, thenY
, and thenEnter
.
Step 4: Restart Icecast
For the changes to take effect, restart the Icecast service:
Step 5: Test Icecast
-
Access Icecast Admin Panel:
Open a browser and go to:
Log in using the
admin
andadmin-password
you configured inicecast.xml
. -
Access Public Stream URL:
Listeners can access your stream by visiting:
Step 6: Set Up a Source Client
To stream audio content to Icecast, you’ll need a source client. Common options include BUTT (Broadcast Using This Tool) and Mixxx.
Example Using BUTT
-
Download and Install BUTT:
Install BUTT on your local machine, available at BUTT’s website.
-
Configure BUTT for Icecast:
- Open BUTT and navigate to Settings > Main.
- Enter your server’s IP and port (
8000
). - Use
/stream.mp3
as the Mountpoint. - Set the Password to the
source-password
you configured.
-
Connect to the Server:
Start streaming, and your audio should be live on Icecast.
Step 7: Secure Icecast with SSL (Optional)
For secure streaming, consider setting up SSL on your Icecast server.
-
Install Certbot and Enable SSL:
-
Configure SSL in Icecast:
Open the Icecast configuration file and add SSL certificate paths:
-
Restart Icecast to enable SSL:
Listeners can now connect using HTTPS for a secure connection.
Step 8: Managing Icecast
You can monitor and control your Icecast streams through the Admin Panel by logging in to:
From here, you can view connected listeners, manage mount points, and control server settings.
Conclusion
Congratulations! You’ve successfully installed Icecast on your AnonVM server. You can now start streaming audio to your audience. Icecast provides a flexible solution for broadcasting live streams, radio, or even pre-recorded content, giving you full control over your streaming environment.
Quick Recap:
- Icecast Installation: Installed from Ubuntu/Debian repositories.
- Configuration: Set admin and source passwords, hostname, port, and mount points.
- Testing and Streaming: Verified setup through the admin panel and tested streaming with a source client.
- SSL Setup: Secured the server with SSL using Certbot.
With Icecast on your AnonVM server, you’re ready to share your audio content globally!