Old 25th October 2013, 02:00   #1
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
Shoutcast Installation Help and security reccomendations.

Can anyone help me? Shoutcast doesn't want to install for me, I'm not sure what I'm doing wrong.

Background: I've setup one VPS before and after some time, I was successful, so I'm new at this. Any advice is helpful.
Goal: Install and configure Shoutcast DNAS 2.0 and SHOUTcast Transcoder (SC_TRANS) on a CentOS 6 (64bit) VPS to work with WHMSonic (or similar) admin software.
Problems: I seem to be doing it wrong. Something along the way is tripping me up.
Login to root. Enter password.
Update Yum and install screen
yum update yum install screen
then,
adduser shoutcast
passwd xxxxxxxxx
cd /home/shoutcast
mkdir sc
wget http://download.nullsoft.com/shoutca...31_2011.tar.gz
tar -xzvf sc_serv2_linux_x64_07_31_2011.tar.gz -C sc (I get confused about thed above bart, many tutorials just say to do -xzf, but it only seems to install when i throw the v in there)
chown -R shoutcast.shoutcast /home/shoutcast/sc (I've read this changes the owner, but I have no idea what this does, terminal doesn't respond with anything so I have no idea if it's doing something or just failing)
nano sc/sc_serv_basic.conf
(The command above brings up the configuration options and I think I do ok changing them, i think i just change the passwords and uncomment the port part and change 80 to 8000, I'm not sure if that's the right thing to do or not. This part confuses me though:
; now we will specify the details of the stream we're going ; to serve which can be done as follows ;streamid=1 (I comment this because I want to do multiple streams multiple streams) ;streampath=/test.aac (I comment this because I want to do multiple streams multiple streams)
; or
; it can be done like this which is how it needs to be done ; if you are going to provide multiple streams from sc_serv streamid_1=1 (I UNCOMMENT this because I want to do multiple streams multiple streams, I'm not sure if I should change the values) streampath_1=/test.aac (I UNCOMMENT this because I want to do multiple streams multiple streams, I'm not sure if I should change the values) streamid_2=2 (I UNCOMMENT this because I want to do multiple streams multiple streams, I'm not sure if I should change the values) streampath_2=/test2.aac (I UNCOMMENT this because I want to do multiple streams multiple streams, I'm not sure if I should change the values)
I hit the CTRL X and Y to save and get out of nano.
I type the command "screen" and type in the start command ./sc_serv daemon <conf>
Stuff goes boom, and I'm done, haha. Do I need to write a daemon? If so, how do i install it and where? I found this Shoutcast Daemon online, not sure if it will work for me. http://my.opera.com/Viperstryker/blo...aemon-in-linux
I still have to install the transcoder, but I haven't gotten that far yet, but I assume I have to stop the shoutcast DNAS while I do that. How do I stop it, if that's what's needed?
This is my plan for nstalling the Transcoder
cd /home/shoutcast mkdir sct wget http://download.nullsoft.com/shoutca...10_07_2011.exe tar -xzvf sc_trans_win64_10_07_2011.exe -C sct (again, I throw the v in there becase some tutorials say to, and it seems to "do something". maybe I'm doing somethingwrong here though because past transcoders in tutorials were .gz, i notice this is a .exe. chown -R shoutcast.shoutcast /home/shoutcast/sct (I have no idea what this does, I know it changes owership, but maybe the tut I'm looking at is telling me the wrong way to do it. cd sct chmod a+x sc_trans
The Transcoder should be installed now and I just have to configure and start.
nano /home/shoutcast/sct/
I don't know how to configure it as I haven't seen the options yet. I assume this is where I will have to configure it to my domain? Any tips on doing that would be great. I'll save changes and exit nano.
I think I have to start it as a Daemon now. I have no idea how to write a Daemon for this, so if anyone has any tips, that would be awesome.
From my tutorial: "run this command, substituting sc_trans_basic.conf for whatever configuration file you are using: ./sc_trans daemon ./sc_trans_basic.conf" What other file would I use, do I have to make this file? I'm confused.
Other considerations: How do I install a firewall, which one, and what other security measures should I take? How cn I optimize the VPS further? how do I make all these streams work with my doman such as www.exampledomain.com:8222? I'll also have to install and configure WHMSonic or something like that to work with this, I think I'll just pay them the $10 to do that when I buy.
feelthesound is offline   Reply With Quote
Old 25th October 2013, 12:29   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
first thing, use the current version of the v2 DNAS from http://forums.winamp.com/showthread.php?t=324877 instead of v2.0 (and it might be better to start the whole setup fresh if you have been trying to use the examples from the v2.0 setup).

the tools can be run as daemons on their own, you don't have to install anything else.

otherwise, there's just too much text all grouped together for me to have the time and patience to read through to try to answer (and i think some of the things at the end of your posts are more general Linux questions than SHOUTcast related anyway).
DrO is offline   Reply With Quote
Old 25th October 2013, 18:04   #3
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
yes, my formatting was horrible, sorry.

my only problem with using the 2.2 is i don't know how to read the "Readme_DNAS_Server.htm" in the linux terminal.

Thanks for your help, it's very appreciated.

edit: i have found the file, working on how to read it. i found it with


[root@testshout shoutcast]# /usr/bin/updatedb
[root@testshout shoutcast]# /usr/bin/locate Readme_DNAS_Server.html
/home/shoutcast/Readme_DNAS_Server.html
[root@testshout shoutcast]#

edit 2: i think i found it by using

cat Readme_DNAS_Server.html
feelthesound is offline   Reply With Quote
Old 25th October 2013, 18:16   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
you just load it in a web bowser on a different machine. as most of it's intended to run / view things in a web browser as that's what people were saying they wanted.
DrO is offline   Reply With Quote
Old 25th October 2013, 18:26   #5
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
got the readme file up in the browser! In case it's helpful to another newbie, here it is:

Nullsoft SHOUTcast DNAS Server v2.2

(Last Updated 4 October 2013)


Now that you have downloaded the SHOUTcast DNAS server, you will find all associated documentation, so me configuration examples and related files to aid with getting the SHOUTcast DNAS Server up and running. You can check what changes and fixes have been made with this release by looking through the provided changelog.

The documentation and related files provided with the DNAS server are the correct for the version of the D NAS server version installed. You can also find online copies of the documentation via the wiki however these may not relate to the DNAS Server version installed. If in doubt use the local documentation provided with the DNAS server being u sed.


Core

sc_serv[.exe] - The SHOUTcast DNAS Server program file (this is required)

setup[.bat/.sh] - Command used to run the DNAS server in 'Setup Mode' which allows for quick setup of the DNAS Server (recommended if you need a simple setup or are new to setting up a DNAS server)

builder[.bat/.sh] - Command used to run the DNAS server in 'Configuration Builder' mode which allow s for making more complex setups (use if 'Setup Mode' is not suitable or you want to control more of the D NAS server's features)


Documentation

These are all supporting documentation provided with the DNAS server for how to get it setup to what the J SON response for bandwidth usage should look like and everything in-betweeen it as anything relating to the D NAS server is included in the documentation.


Getting Started - Guide for setting up and configuring the DNAS Server for use

DNAS Server - Core documentation for the DNAS Server's options and features from how to run it to the public and private API methods it provides

Authhash Management - How to manage authhas hes inside the DNAS Server

JSON Responses - Documentation showing the JSON responses available

XML Responses - Documentation showing the XML res ponses available


Examples


It is recommended to use the 'Setup Mode' and 'Configuration Builder' actions for most setup needs.
These examples are provided as a means to see what a working configuration file looks like under some of t he common usage cases for a DNAS server.


To use these examples, you will need to copy the requried files (check the dependencies noted)into the fol der where sc_serv[.exe] is and after reading and editing them as needed, then start the DNAS start with the o ne required (which may be easier if you rename the intended file as sc_serv.conf so the DNAS will automatical ly load it)..

examples/sc_serv_simple.conf Simple configurat ion file for running a basic DNAS Server. This has no dependencies on the other examples.

examples/sc_serv_basic.conf This is used by th e sc_serv_public.conf and sc_serv_relay.conf to show how core settings can be shared between configurations.< br>
examples/sc_serv_public.conf This has a depend ency upon sc_serv_basic.conf.

examples/sc_serv_relay.conf This has a depende ncy upon sc_serv_basic.conf.<

examples/sc_serv_debug.conf This can be includ ed in other configuration files to enable the specified debugging options as needed. By default this will ena ble all debugging output which may not be useful if looking into a specific issue so edit this as needed.

examples/crossdomain.xml Example crossdomain.x ml file for use with the examples


Miscellaneous

These are supporting files mainly relating to the setup options and the configuration examples. If in doub t then do not alter any of the files as this may break other features (especially if altering the 'setup' and 'config_builder' folders.


setup folder - This contains files needed for the DNAS Server's 'Setup Mode'. Do not modify or r un this separately as it will not work unless run within the DNAS server. To run the 'Setup Mode', run setup[.bat/.sh]

config_builder folder - This contains the files needed for the DNAS Server's 'Configuration Builder ' mode. Do not modify or run this separately as it will not work unless run within the DNAS server. To run the 'Configuration Builder' mode, run builder[.bat/.sh]

control folder - Used with the configuration examples to hold the sc_serv.ban and sc_serv.rip files generated by the DNAS Server when it is running

logs folder - Used with the configuration examples to hold the DNAS Server log files


tos.txt - SHOUTcast Terms of Service (TOS) details (non-Windows only)
feelthesound is offline   Reply With Quote
Old 25th October 2013, 18:36   #6
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
I'm getting a "No such file or directory" error when I try to read the getting started file.

[root@testshout shoutcast]# /usr/bin/locate Getting_Started.html
/home/shoutcast/docs/Getting_Started.html
[root@testshout shoutcast]# cat Getting_Started.html
cat: Getting_Started.html: No such file or directory
[root@testshout shoutcast]#
feelthesound is offline   Reply With Quote
Old 25th October 2013, 18:51   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
just extract the whole archive to a local folder and work from that - you're trying to do it the hardest way by trying to view things on a terminal output (as seems to be the case). that way you can check things locally and then move / setup things on the remote as well as validating locally.
DrO is offline   Reply With Quote
Old 25th October 2013, 19:53   #8
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
Ok, I didin't know I could do that, haha. Reading now, thank you.
feelthesound is offline   Reply With Quote
Old 28th October 2013, 16:01   #9
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
alright so i get the DNAS installed. I get here:


[root@heyoo shoutcast]# sh setup.sh
2013-10-28 16:57:50 INFO ************************************************ ***************
2013-10-28 16:57:50 INFO ** SHOUTcast Distributed Network Audio Server (D NAS)
2013-10-28 16:57:50 INFO ** Copyright (C) 1999-2013 Nullsoft, Inc. All R ights Reserved.
2013-10-28 16:57:50 INFO ************************************************ ***************
2013-10-28 16:57:50 INFO [MAIN] SHOUTcast DNAS/posix(linux x64) v2.2.0.10 7 (Oct 16 2013)
2013-10-28 16:57:50 INFO [MAIN] PID: 1156
2013-10-28 16:57:50 INFO
2013-10-28 16:57:50 INFO [MAIN] Entering setup mode - Open 127.0.0.1:8000 /setup in a
2013-10-28 16:57:50 INFO [MAIN] browser on the same machine the DNAS was started on
2013-10-28 16:57:50 INFO [MAIN] if the browser does not automatically ope n the page.
2013-10-28 16:57:50 INFO
2013-10-28 16:57:50 INFO [MAIN] If working remotely then replace 127.0.0. 1 with the
2013-10-28 16:57:50 INFO [MAIN] IP / address of the remote system to use this mode.
2013-10-28 16:57:50 INFO
2013-10-28 16:57:50 INFO [MICROSERVER] Listening for connections on port 8000

And I'm not sure what's next. I think I have to change the IP to the IP of my VPS, but I have no idea how to do that.

edit: I went to myipaddress:8000 and there seems to be a website with configuration options. do i do the config from the website? also, how do i get it to allow me to have more than 32 people on a stream?

edit 2: i think i got all this. i'm just wondering, how do i change some of the more advanced settings.

edit 3: ok, maybe i don't have all this, haha. so i hit connect via the setup webpage and i got a weird message in the browser and in the terminal.

terminal error:
2013-10-28 17:17:53 ERROR [DST 76.124.101.85 sid=1] SHOUTcast 1 client connection rejected. Stream not available as there is no source connected. Agent: `Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537 .36 OPR/17.0.1241.53'
2013-10-28 17:18:31 ERROR [DST 76.124.101.85 sid=1] SHOUTcast 1 client connection rejected. Stream not available as there is no source connected. Agent: `Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537 .36 OPR/17.0.1241.53'

Browser error: http://imgur.com/c77dae0

So, I went back to the ipaddress:8000 and it's asking me for usernames and passwords. i'm not sure where i setup a username, other than adduser shoutcast in the terminal. i'm unable to login.

edit 4: ok apparently the username is admin. haha
feelthesound is offline   Reply With Quote
Old 28th October 2013, 17:19   #10
feelthesound
Junior Member
 
Join Date: Jul 2013
Posts: 8
so, i seem to be up and running. i am getting an error 480 though. i'm not sure what that means.

also, how do i know what a stream's url is? i am trying to provide multiple streams from the same server.
feelthesound is offline   Reply With Quote
Old 28th October 2013, 17:33   #11
DrO
 
Join Date: Sep 2003
Posts: 27,873
it's all in the docs so you need to rtm and the error messages are clearly stating what's not right - read them and look them up in the docs.
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump