[shoutcast@sever ~]$ /usr/local/shoutcast/sc_serv /usr/local/shoutcast/sc_serv.conf 2012-06-14 05:41:01 I msg:<***> Logger startup 2012-06-14 05:41:01 I msg:<***> version 2.0.0.29 2012-06-14 05:41:01 D msg:<***> 2012-06-14 05:41:01 I msg:*************************************************************** 2012-06-14 05:41:01 I msg:** SHOUTcast Distributed Network Audio Server (DNAS) 2012-06-14 05:41:01 I msg:** Copyright (C) 1999-2011 Nullsoft, Inc. All Rights Reserved. 2012-06-14 05:41:01 I msg:** Use "sc_serv filename.conf" to specify a config file. 2012-06-14 05:41:01 I msg:*************************************************************** 2012-06-14 05:41:01 I msg:[SHOUTcast] DNAS/posix(linux x86) v2.0.0.29 (Jul 31 2011) starting up... 2012-06-14 05:41:01 I msg:[MAIN] PID: 2067 2012-06-14 05:41:01 I msg:[MAIN] Loaded config from /usr/local/shoutcast/sc_serv.conf 2012-06-14 05:41:01 I msg:[MAIN] Calculated CPU count is 2 2012-06-14 05:41:01 I msg:[MAIN] Starting 2 network threads 2012-06-14 05:41:01 I msg:[BAN] Banned 0 IP's (0) 2012-06-14 05:41:01 I msg:[RIP] Reserved 0 IP's (0) 2012-06-14 05:41:01 E msg:No such file or directory 2012-06-14 05:41:01 I msg:[MAIN] Runner shutdown 2012-06-14 05:41:01 I msg:<***> Logger shutdown [shoutcast@sever ~]$
; NOTE: for any relative paths specified are relative to ; sc_serv and not to where the conf file is being stored ; here we will setup where the log and other related files ; will be stored. make sure that these folders exist else ; sc_serv will throw an error and will close itself down. ; we will make the logs save to the sc_serv2 directory logfile=/usr/local/shoutcast/logs/sc_serv.log w3clog=/usr/local/shoutcast/logs/sc_w3c.log banfile=/usr/local/shoutcast/control/sc_serv.ban ripfile=/usr/local/shoutcast/control/sc_serv.rip ; for testing we will make the server only work locally ; (i.e. localhost / 127.0.0.1) though if this is left out ; or set to publicserver=always then we attempt to make a ; connection to the YP for listing - do not forget to add ; in a 'streamauthhash' value for any public streams made publicserver=never ; if you're wanting to use a different port to use for any ; connections then you can use this option e.g. to use 80 ; otherwise port 8000 is used as the default to listen on. portbase=8000 ; password used by sc_trans or the Winamp dsp plug-in ; NOTE: remember to change this to something else password=testing ; password used for accessing the administation pages ; NOTE: remember to change this to something else adminpassword=testing2 ; now we will specify the details of the stream we're going ; to serve which can be done as follows streamid=1 streampath=/test.aac
[root@sever ~]# yum install lib32-glib Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Setting up Install Process No package lib32-glib available. Error: Nothing to do [root@sever ~]#
[root@sever shoutcast]# ls -lls total 1952 20 -rwxrwxrwx. 1 shoutcast shoutcast 17546 Jul 31 2011 changes.txt 4 drwxrwxrwx. 5 shoutcast shoutcast 4096 Jul 31 2011 config_builder 4 drwxrwxrwx. 2 shoutcast shoutcast 4096 Jun 14 05:41 control 4 drwxrwxrwx. 3 shoutcast shoutcast 4096 Jul 31 2011 docs 4 drwxrwxrwx. 2 shoutcast shoutcast 4096 Jun 14 05:41 logs 4 -rwxrwxrwx. 1 shoutcast shoutcast 2705 Jul 28 2011 readme.txt 1860 -rwsrwsrwt. 1 shoutcast shoutcast 1901504 Jul 31 2011 sc_serv 4 -rwxrwxrwx. 1 shoutcast shoutcast 1422 Jun 14 05:40 sc_serv.conf 4 -rwxrwxrwx. 1 shoutcast shoutcast 898 Jun 18 2011 sc_serv_debug.conf 4 -rwxrwxrwx. 1 shoutcast shoutcast 990 Jun 18 2011 sc_serv_public.conf 4 -rwxrwxrwx. 1 shoutcast shoutcast 1066 Jun 18 2011 sc_serv_relay.conf 4 -rwxrwxrwx. 1 shoutcast shoutcast 1317 Jun 18 2011 sc_serv_simple.conf 0 -rw-rw-rw-. 1 shoutcast shoutcast 0 Jun 13 21:28 sc_w3c.log 0 -rwxrwxrwx. 1 shoutcast shoutcast 0 Jun 13 11:11 test2.aac 4 -rwxrwxrwx. 1 shoutcast shoutcast 1 Jun 13 20:57 test.aac 28 -rwxrwxrwx. 1 shoutcast shoutcast 28442 Jan 28 2011 tos.txt
specialfiletmpdir=/home/taras/ backupfile=/home/taras/noise256.mp3 password=********* adminpassword=******* portbase=8000 yp2=1 screenlog=0 logfile=/home/taras/sc_serv2.log w3cenable=0 w3clog=/home/taras/sc_w3c2.log banfile=/home/taras/sc_serv2.ban ripfile=/home/taras/sc_serv2.rip maxuser=100 publicserver=always streamid=1 streampath=/
adduser taras
chown -taras:taras /home/taras
Setting up shoutcast on the server is pretty easy. im guessing that this is a linux server ssh into the server: 1. (download shoutcast files to server) wget ********** 2. (untar files) tar -zxvf shoutcast-1-9-5-linux-glibc6.tar.gz 3. (rename folder) mv shoutcast-1-9-5-linux-glibc6 shoutcast 4.(remove downloaded file) rm shoutcast-1-9-5-linux-glibc6.tar.gz 5. now you could either ftp into ur server and config sc_serv.conf or use shell editor (pico or nano) depending on the whats install on the box pico sc_serv.conf or nano sc_serv.conf 6. (edit config) Edit sc_serv.conf file as needed maxuser password port remore the ; infront of adminpassword and set a password 7. (save config) ctrl-x to save and exit the editor 8.(start the server) ./sc_serv sc_serv.conf