Looking for a SHOUTCast Host ? look no further!

Check out http://lmas-networks.com you seriously cant beat what they offer for only £1.00 p/month tons of features in the centova cast control panel and if you currently have shoutcast services hosted elsewhere just drop them an email they will give you a price match deal and give you a month free 😮 !!

Shoutcast hosting

They also allow you to use your own amazon affiliate ID (free to get) so you can make some money if anyone buys a track they hear on your stream!

Try them or ask for a free trial you wont be dissapointed.

Darwin Streaming Server – Couldn’t find the en language messages file!

Seen a few people hitting my blog with the error: Couldn’t find the en language messages file! at /usr/local/sbin/streamingadminserver.pl line 2167.

Thought I would spend some time looking in to it to see what the issue is, at first I just could not replicate the problem at all untill I had a brain fart and realised it was a premissions issue.

you have to run streamingadminserver.pl as root or you get the error as above so in simple terms here is the fix.

su streamingadminserver.pl

(I have specificaly left the path to streamingadminserver.pl out due to slight differences in ditro’s)

To find your streamingadminserver.pl run:

find / -name streamingadminserver.pl

hope that helps someone.

multiple instances of darwin streaming server on 1 pysical server.

Hey folks,

Here is a (very) rough guide to running multiple instances of darwin streaming server on 1 pysical server.

I may have missed somthing or this may be overkill so comments are welcome and encoraged 🙂

files from standard install that need to be available per instance:
/etc/streaming/streamingserver.xml
/etc/streaming/qtusers
/etc/streaming/qtgroups
/etc/streaming/streamingloadtool.conf
/etc/streaming/relayconfig.xml
/usr/local/sbin/streamingadminserver.pl

Changes to streamingserver.xml (per instance to reflect options or file folder location as per the above)
opt <PREF NAME=”maximum_connections” TYPE=”SInt32″ >1000</PREF>
<PREF NAME=”movie_folder” >/usr/local/movies/</PREF>
<PREF NAME=”bind_ip_addr” >0</PREF>
<PREF NAME=”error_logfile_dir” >/var/streaming/logs/</PREF>
<PREF NAME=”run_user_name” >qtss</PREF>
?<PREF NAME=”run_group_name” >qtss</PREF>
?<PREF NAME=”append_source_addr_in_transport” TYPE=”Bool16″ >false</PREF>  
?<PREF NAME=”pid_file” >/var/run/DarwinStreamingServer.pid</PREF>
?<PREF NAME=”relay_prefs_file” >/etc/streaming/relayconfig.xml</PREF>
<PREF NAME=”request_logfile_dir” >/var/streaming/logs/</PREF>
<PREF NAME=”request_logfile_name” >StreamingServer</PREF>
<PREF NAME=”mp3_request_logfile_dir” >/var/streaming/logs/</PREF>
<PREF NAME=”mp3_broadcast_password” >xxxx</PREF>
<PREF NAME=”modAccess_usersfilepath” >/etc/streaming/qtusers</PREF>
<PREF NAME=”modAccess_groupsfilepath” >/etc/streaming/qtgroups</PREF>
Changes to streamingadminserver.pl (er instance)
 %vital = (“port”, 1221,
“root”, “/var/streaming/AdminHtml”,
      “plroot”, “/var/streaming/playlists/”,
          “qtssPort”, “554”,
          “qtssName”, “/usr/local/sbin/DarwinStreamingServer”,
          “logfile”, “/var/streaming/logs/streamingadminserver.log”,
          “crtfile”, “/etc/streaming/streamingadminserver.pem”,
          “keyfile”, “/etc/streaming/streamingadminserver.pem”,
          “qtssQTPasswd”, “/usr/local/bin/qtpasswd”,
          “qtssPlaylistBroadcaster”, “/usr/local/bin/PlaylistBroadcaster”,
          “qtssMP3Broadcaster”, “/usr/local/bin/MP3Broadcaster”,
          “pidfile”, “/var/run/streamingadminserver.pid”,
          “runUser”, “qtss”,
          “runGroup”, “qtss”,

NOTE: streamingadminserver.pl can be ran with -c to specify a config file to load.

DSS cli usage:
usage: DarwinStreamingServer [ -d | -p port | -v | -c /myconfigpath.xml | -o /myconfigpath.conf | -x | -S numseconds | -I | -h ]
-d: Run in the foreground
-D: Display performance data
-p XXX: Specify the default RTSP listening port of the server
-c /myconfigpath.xml: Specify a config file
-o /myconfigpath.conf: Specify a DSS 1.x / 2.x config file to build XML file from
-x: Force create new .xml config file and exit.
-S n: Display server stats in the console every “n” seconds
-I: Start the server in the idle state
-h: Prints usage

qtpasswd:
 Usage: qtpasswd [-F] [-f filename] [-c] [-g groupsfilename] [-r realm] [-p password] [-P passwordfile] [-A group] [-D group] [-d] [username]
  -F   Don’t ask for confirmation when deleting users or overwriting existing files.
  -f   Password file to manipulate (Default is “/etc/streaming/qtusers”).
  -c   Create new file.
  -g   Groups file to manipulate (Default is “/etc/streaming/qtgroups”). If not found, will create one when necessary.
  -r   The realm name to use when creating a new file via “-c” (Default is “Streaming Server”).
  -p   Allows entry of password at command line rather than prompting for it.
  -P   File to read the password from rather than prompting for it.
  -d   Delete the user. (Deletes the user from all groups)
  -A   Add user to group. Will create group automatically if group is not already present.
  -D   Delete the user from the group.
  -C   Create new group. Do not specify username with this option.
  -R   Delete the group. Do not specify username with this option.
  -O   Set the owner of the file (Default is “qtss”).
  -h   Displays usage.
  -v   Displays usage.
  -?   Displays usage.

  Note:
  The username must always be specified except when -C and -R options are used to create/delete group.
  Usernames cannot be more than 255 characters long and must not include a colon [:].
  Passwords cannot be more than 80 characters long.
  Groups cannot be more than 255 characters long and must not include a colon [:].
  If the username/password contains whitespace or characters that may be
  interpreted by the shell please enclose it in single quotes,
  to prevent it from being interpolated.

So thats the very rough guide, got this working a few times now, I will keep updating / improving / simplifying this as I go.

I will be writing this up in to a script that will do everything for you including installing the first instance of DSS.

Not sure at this stage if multiple copies of the adminhtml folder/files are required?????? comments?

Final goal: WHMCS style module for auto provisioning from a cpanel server.

Darwin Streaming Server CentOS 5.5 x86_64

 

Hi Everyone,

There are alot of guides out there for installing DSS on centos, each one a little different from the last and the same comments over and over with the same issues experienced by users.

I will try to keep a regularly maintained basline here to assist everyone that is trying to work with DSS.

So first things first you need to get the DSS source:

# wget http://dss.macosforge.org/downloads/DarwinStreamingSrvr6.0.3-Source.tar
# tar -xf DarwinStreamingSrvr6.0.3-Source.tar
# cd DarwinStreamingSrvr6.0.3-Source
# wget http://www.abrahamsson.com/dss-6.0.3.patch
# patch -p1 < dss-6.0.3.patch
# wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-hh-20080728-1.patch
# patch -p1 < dss-hh-20080728-1.patch
# ./Buildit

Now you need the install file I modified
Goto http://pastebin.com/raw.php?i=NWLRTj5X and copy this code into a new file named install.sh

or

‘wget http://pastebin.com/raw.php?i=NWLRTj5X’ then ‘mv raw.php\?i\=NWLRTj5X install.sh’ (note you will need to remove the xhtml crap at the top if you do it the second way.) so you are left with at the top:

#!/bin/bash

# Install script for the Darwin Streaming Server
# source release

Now you need to make your new install.sh executable and run it.

# chmod 755 install.sh
# ./install.sh

During the install you will be asked to anter an admin username and password after that is done the install.sh will complete and you can go and test your server at http://<servername_or_ip:1220

The DSS should have automaticaly started but if not you can run:
# /usr/local/sbin/streamingadminserver.pl

Most of the instructions I have put on this post I learned via
http://www.hiteshagrawal.com
http://mikehillyer.com

If you want me to set up your DSS for you vote here

Happy Streaming
🙂

If anyone has any issues with this or needs any help, leave me a comment and I will get back to you.

Anthony.

%d bloggers like this: