Tag: linux

Installing Shoutcast on CentOs – shoutcast version 1 and 2

And now for something completly different, since it isn’t all about work hard, we need to shoutcastplay hard too. I was asked to build a shoutcast server on a linux centOs 6.6 server.


It’s not that hard to set up a shoutcast stream:

Fire up your linux server and add a new shoutcast user:

adduser shoutcast
passwd shoutcast

now sign in using this new account

su - shoutcast

create a new directory

mkdir shoutcast

and go there

cd shoutcast

Now I am gonna dowload shoutcast, im using 64x but you can find more installs here:


Let’s open up the packages

tar -zxvf
tar -zxvf
[shoutcast@test shoutcast]$ ls -l

If you already downloaded a shoutcast versiom locally (f.e. the outdated, but populair shoutcast version 1.9.8), you can upload the zipped .tar.gz folder to your ftp and skip wget part and just tar from the location on your server.

tar -zxvf sc_serv_1.9.8_Linux.tar.gz

Just remember, shoutcast v1 is 32bit and your server probably is 64, in this case, update your library with 32bit support. For more info on this subject: 64bit bad elf interpreter

yum install glibc.i686
sudo yum install glibc.i686

Next we are gonna edit the config files in nano.

nano sc_serv.conf

If nano isnt installed yet, you must install this first:

yum install nano

you need to configure these config files to your settings.

I will highlight the most important changes


password=chaneg this
adminpassword=change this
streampath=http://myIP or dns:80/

and sc_trans_basic.conf

streamtitle=My first Shoutcast Server

also add:

streamauthhash= you can leave this open now, w’ll get back to it later!


we need to restart the server

./sc_serv sc_serv.conf sc_trans.conf

now go to your browser and type in your IP and port number and you will see your shoutcast server up ad running.

You can use the stream addres to bring up your performance,

you’ll see ity streams only local , you need to add one more important step

last but important step to take, you added the streamauthhash, you need to get an authentication hash, you can get one using this link from your shoutcast admin:

http://yourIP:your port/index.html?sid=0

Now restart the shoutcast server and stream your podcast or music show


I use Ubuntu as a development workstation (but it doesn’t matter!)

I use Ubuntu as my development machine and I like to evangelize about it. But actually it doesn’t matter at all. It’s the functionality I run that is the most important. And since that is the case, the underlying OS becomes irrelevant. That’s why I tend to choose the OS with the smallest footprint. Which would be a Linux based OS.

So here is why, and how, I use Ubuntu.


This picture is Ubuntu running in Parallels, which looks great in high res on the MacBook Pro Retina screen.

Some Linux advantages over another OS

There are some advantages of running Ubuntu (or another Linux distro):

  • system requirements are low, you can happily use older hardware
  • the software is open source and free (as in ‘costs nothing’, although I donate to my favourite open source projects like LibreOffice and Ubuntu itself).
  • installation is easy, however installing Windows is easy too.
  • installation is fast because Ubuntu has a smaller footprint than Windows (8 GB vs 20 GB, and then Ubuntu is considered large in comparison with e.g. Puppy Linux)
  • installation of software is a delight, because of the packaging method (apt, yum, rpm, pacman and so forth). With a package manager you do not need to browse to websites to grab a copy
  • Updating is just as simple apt-get update && apt-get upgrade
  • If you prefer to work with the keyboard and in the terminal, Linux is your best fried. Just choose your terminal, your favourite shell, your favourite editor and your good to do any kind of task

So how do I use Ubuntu?

  • I am a keyboard user. Ubuntu is very friendly for keyboard users! Especially the Dash is very handy:
  • As IDE I use Subtext and Vim. In Vim I us the NERDTree. Vim deserves a dedicated post. It’s an extremely versatile editor that lives in the terminal and it is very small (6 MB). It has a steep learning curve. But when you get the hang of it you’ll notice how powerful it is. And Vim is ubiquitous. It’s everywhere (as Vi on every Linux machine). Once you know vi, you can deal with every Linux machine out there.
  • I use Robomongo to browse Mongo databases.
  • The Gimp is a great Photoshop replacement, especially now that you can enable single Windows!
  • Chrome is my mainbrowser. I use the apps a lot so I have access to them on every machine.
  • Last but not least: I use XMind for mindmapping. It is multiplatform. And I love it. It too deserves a dedicated post.


So I use Ubuntu

And yes, I can do all above mentioned things on my Mac and Windows machine as well, but going the Ubuntu way the footprint is the smallest.