How to Install SHOUTcast on AnonVM

Here's a guide to set up SHOUTcast on your AnonVM server. SHOUTcast is a popular streaming server platform, widely used for online radio broadcasting. With SHOUTcast, you can broadcast live music, talk shows, or pre-recorded audio to listeners worldwide. This guide will walk you through installing and configuring SHOUTcast on your AnonVM server.


How to Install SHOUTcast on AnonVM

This tutorial will guide you to install and configure SHOUTcast on Ubuntu 20.04 or Debian 10+ systems.

Prerequisites

  • Root or sudo access on your AnonVM server.
  • Ubuntu or Debian operating system.
  • Basic command-line knowledge.

Step 1: Update Your Server

Start by updating your server to make sure you have the latest packages installed:

 
sudo apt update && sudo apt upgrade -y

Step 2: Download SHOUTcast

  1. Download the latest SHOUTcast version for Linux from the SHOUTcast website.

    You can download it directly using wget. Here’s an example link, but verify the latest version from SHOUTcast’s official website:

     
    wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz
  2. Extract the SHOUTcast server files:

     
    tar -xvzf sc_serv2_linux_x64-latest.tar.gz
  3. Move the extracted files to a dedicated directory, such as /usr/local/shoutcast:

     
    sudo mkdir /usr/local/shoutcast sudo mv sc_serv /usr/local/shoutcast/

Step 3: Configure SHOUTcast

  1. Create a configuration file named sc_serv.conf inside the SHOUTcast directory:

     
    sudo nano /usr/local/shoutcast/sc_serv.conf
  2. Add Basic Configuration Settings:

    Below are essential settings for the SHOUTcast server. Customize the adminpassword and password values to secure access.

     
    adminpassword=your_admin_password password=your_stream_password maxuser=100 portbase=8000 logfile=logs/sc_serv.log w3clog=logs/sc_w3c.log banfile=control/sc_serv.ban ripfile=control/sc_serv.rip
    • adminpassword: This password allows access to the SHOUTcast admin panel.
    • password: This password is used by source clients to connect and stream.
    • maxuser: Maximum number of listeners.
    • portbase: Port SHOUTcast will listen on (8000 by default).
  3. Save and Close the file by pressing CTRL + X, then Y, and Enter.

Step 4: Start the SHOUTcast Server

Navigate to the SHOUTcast directory and start the server:

 
cd /usr/local/shoutcast ./sc_serv sc_serv.conf

You should see output confirming SHOUTcast is up and running.

Step 5: Enable SHOUTcast to Run in the Background (Optional)

If you want SHOUTcast to start automatically at boot, create a service file for it:

  1. Create a Systemd service file:

     
    sudo nano /etc/systemd/system/shoutcast.service
  2. Add the following configuration:

     
    [Unit] Description=SHOUTcast Server After=network.target [Service] Type=simple ExecStart=/usr/local/shoutcast/sc_serv /usr/local/shoutcast/sc_serv.conf Restart=always [Install] WantedBy=multi-user.target
  3. Save and Close the file.

  4. Reload Systemd and enable the SHOUTcast service:

     
    sudo systemctl daemon-reload sudo systemctl enable shoutcast sudo systemctl start shoutcast

Step 6: Access the SHOUTcast Admin Panel

  1. Open your browser and go to:

     
    http://your_server_ip:8000
  2. To log in as an admstrator, click on Admin Login and enter the adminpassword you set in sc_serv.conf.

Step 7: Set Up a Source Client to Stream

To broadcast audio, you need a source client like Winamp with SHOUTcast DSP or BUTT.

Using BUTT as a Source Client

  1. Install BUTT on your local machine from the official site.

  2. Configure BUTT to connect to SHOUTcast:

    • Server: your_server_ip
    • Port: 8000
    • Password: your_stream_password
    • Mount Point: Leave empty or set to /stream if desired.
  3. Connect and start streaming. You should now be broadcasting live through SHOUTcast!

Step 8: Securing SHOUTcast with SSL (Optional)

To secure your SHOUTcast server, consider using an SSL reverse proxy (e.g., Nginx) to encrypt connections.

  1. Install Nginx:

     
    sudo apt install nginx -y
  2. Configure SSL with Certbot:

     
    sudo apt install certbot python3-certbot-nginx -y sudo certbot --nginx -d your_domain_or_ip
  3. Configure Nginx as a reverse proxy for SHOUTcast:

    Open the Nginx config file:

     
    sudo nano /etc/nginx/sites-available/shoutcast.conf
  4. Add the following configuration:

    nginx
     
    server { listen 443 ssl; server_name your_domain_or_ip; ssl_certificate /etc/letsencrypt/live/your_domain_or_ip/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your_domain_or_ip/privkey.pem; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } server { listen 80; server_name your_domain_or_ip; return 301 https://$host$request_uri; }
  5. Enable and Test Nginx:

     
    sudo ln -s /etc/nginx/sites-available/shoutcast.conf /etc/nginx/sites-enabled/ sudo nginx -t sudo systemctl restart nginx

Now, listeners can connect to your SHOUTcast server securely over HTTPS.

Step 9: Managing SHOUTcast

To monitor or manage your stream, visit the SHOUTcast admin panel at:

 
http://your_server_ip:8000

From here, you can view connected listeners, configure streams, and manage the server settings.


Quick Recap

  • Install SHOUTcast: Downloaded, extracted, and configured.
  • Configure Streaming Settings: Set passwords, port, and user limits.
  • Access Admin Panel: Verified access and tested the stream.
  • Set Up a Source Client: Configured BUTT or other source clients to broadcast.
  • SSL Configuration (Optional): Secured server with an Nginx reverse proxy and Certbot.

By following these steps, you now have a fully functional SHOUTcast streaming server on your AnonVM, ready to share audio content globally. Enjoy broadcasting!

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution