How to install SHOUTcast on Ubuntu

shoutcast

SHOUT cast it is a technology of streaming audio, widely used by internet radio stations, and was developed by Nullsoft (the same as the great and unique Winamp) back in mid-1999. It is not open source but AOL, its current owner, offers it as freeware, but due to its Linux support It is widely used on this platform and today we are going to show how to install SHOUTcast on Ubuntu.

Strictly speaking, we are going to install SHOUTcast Distributed Network Audio Server 2.0, or DNAS 2.0, such its current name, and once this is done we will be able to transmit music through the internet and have our own radio station. But first things first, and as in all cases that implies downloading the software, but in the case of Linux before that we will create a user account especially to use this streaming server since as we know it is not safe to do these things from the root account or from our main user account.

So, we execute 'su' to become superuser and then:

add user streaming

passwd streaming

Once the password for this user (who is asked to re-enter to ensure that it is okay) we end this and it is convenient for us to 'leave' the root user in the terminal to avoid any accident. Then, we log in with the user streaming to work from there, so we create the download and server directories.

$ mkdir download

$ mkdir server

Now we are going to position ourselves in the directory created for the downloads and proceed to download SHOUTcast from the Nullsoft servers using the all-powerful wget, which is included by default in Ubuntu:

$wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz

Now we unzip the tarball:

$ tar xfz sc_serv2_linux_x64-latest.tar.gz

We position ourselves in the server folder and copy the sc_serv binary to it:

Cd ..

cd server

$ cp ../download/sc_serv ./

Now that we have it, we're going to need a config file for SHOUTcast, so we are going to create a blank file using our favorite text editor (in our case, we are going to use pen). Some aspects to keep in mind are that of passwords: adminpassword It is the password that we will use to carry out the administration remotely through the web interface, and streampassword_1 It is the one used by the multimedia player for streaming.

$ pen sc_serv.conf

We add the following:

adminpassword = password
password = password1
requirestreamconfigs = 1
streamadminpassword_1 = password2
streamid_1 = 1
streampassword_1 = password3
streampath_1 = http: //radio-server.lan: 8000
logfile = logs / sc_serv.log
w3clog = logs / sc_w3c.log
banfile = control / sc_serv.ban
ripfile = control / sc_serv.rip

For those who like to do the configuration more directly from a browser, they can go to the downloads folder and execute the file builder.sh or setup.sh there, and then we enter the following in the web browser: http: // localhost: 8000, to make the configuration to our liking.

Then we start the SHOUTcast server from the server directory:

$sc_serv

Now we are going to see in which port it is working:

$ netstat -tulpn | grep sc_serv

We need this information since we must allow access from the outside to our equipment, for which we must open the corresponding ports on the router (this is generally found among the NAT options). Also, if we have a firewall configured on our computer, we must allow the entry of connections from outside as long as they are directed to the port on which SHOUTcast is working.

Now we can test this configuration from a different computer, for which we open a web browser and enter the IP of the computer on which we install SHOUTcast, for example: http: 192.168.1.100/8000. We will see the SHOUTcast interface before us, but without playlists, since for this we must start a compatible player (Winamp among them, of course) and configure streaming playback, something that from Nullsoft they show us and it is very simple, but since it is rather something cross-platform and not typical of Linux, so we did not want to include it so as not to extend this tutorial too long.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Leo said

    It's very good. I use it together with Winamp and its plugin on a Windows computer to broadcast a signal that comes in online. The point is that I would like to be able to do the same in Linux, but which player allows to do the same?

  2.   emerson said

    Always the same
    The one who dedicates his time and effort to make the post, does not understand that the one who is going to read him does not know the same as him, that is why he has looked for him ...
    when he comes to a line that says, for example: "Now we unzip the tarball" and the fool who reads has no idea what a tarball is or how it is unzipped, he is more tired of having to unzip those different types of files, that each one has his father and mother, ... Or if he reads: «We position ourselves in the server folder and copy the sc_serv binary to it» ... then you remember his mother and you wonder why you entered this place if you always The same thing happens to you, the post tells you that it will teach you to do one thing and it never teaches you anything,
    And now a fanatic will come to tell me that Linux is for brilliant minds and those who want to learn and for whom computing is a challenge ...
    It's not my case, I've been with this crap for ten years and I do it because I want to leave windows, but for now, the crap still is. Yes, I know, nobody forces me to use it, okay, what I complain about is not the crap, I complain about the tricks that those who say that Linux is wonderful tell me. and the Gurus, who talk about Linux as if they knew, that each one tells you something different, and only vanity moves them
    Today I was talkative, but not for the old Linux users, who have always been forum meat, if not for those who enter, who do not create siren songs