Você está na página 1de 11

8/26/2010 Installing Darwin Streaming Server on …

Techie Zone
Software Programming and Tutorials

Home
About Me
Contact
Link Exchange
Ajax Tutorials
PHP Tutorials
Developer Forum

Type text to search here...


Home > Linux > Installing Darwin Streaming Server on Linux
Ads by Google ARM9 Linux Linux New bie RedHat Linux

Installing Darwin Streaming Server on Linux


March 2nd, 2010 Hitesh Agrawal Leave a comment Go to comments

Professional Linux Laptop


Linux on M6500, M4500, E6510, E4310 Fedora, Ubuntu, RHEL, Debian,
Slack

Video Streaming has gained lot of popularity these days and there are very few Open Source Streaming server
available that can give Audio/Video Streaming. Once such streaming server is Apple based Darwin Streaming
Server. The advantage that Darwin gives you it can stream 3gp files that is one of widely video format used that
to over RTSP protocol. In this article we will learn how to install Darwin Streaming Server on linux.

Installing Darwin Streaming Server


* The first step for any installation is the source code, the source code can be downloaded from Darwin
Streaming Server the latest version available is 6.0.3.

* Now we need to untar the Source code by executing following command: tar xf DarwinStreamingSrvr6.0.3-
Source.tar. This
will create directory “DarwinStreamingSrvr6.0.3-Source”.

* Now we need to compile and install the Darwin from source but before that we will have to patch the existing
source code
files and update the existing Install file. To do that you will have to copy the dsshh-20080728-1.patch, dss-
6.0.3.patch and
Install file inside the DarwinStreamingSrvr6.0.3-Source.

hiteshagrawal.com/…/installing-darwin-… 1/11
8/26/2010 Installing Darwin Streaming Server on …
* Please rename the patch files by removing .txt extension and rename Install.txt to Install.sh

* Execute the following command from DarwinStreamingSrvr6.0.3-Source folder,


* patch -p1 < dss-6.0.3.patch
* patch -p1 < dss-hh-20080728-1.patch

* Now we need to add groups and users for Darwin Streaming Server. For that type below command from
command prompt
* sudo groupadd qtss and sudo useradd qtss -g qtss

* Execute ./Buildit from console to build the project, this will create server binary in DarwinStreamingSrvr6.0.3-
Source
directory, along with some other binaries in some other subdirectories.

* After successful build we need to Install the Darwin Streaming Server. To Install: run sudo ./Install (You must
be logged in as
root to install Darwin Streaming Server).
- During installation, it will ask: "Please enter a new administrator user name:" - type in some user name
- It will ask "Please enter a new administrator Password:" - type in some admin password
- After installation, DSS writes its binaries and files to various locations.

>>Starting Darwin Server:


* Type following command “cd /usr/local/sbin/DarwinStreamingServer”. You should have root access to execute
this command.
* 2 processes will run – the first one runs as root, and forks the main server as qtss. While doing a ps aux | grep
Darwin, the
one with the higher process id is the forked server process. If it crashes or gets killed, the other one immediately
respawns
another.
* Need to start the admin panel for Darwin Streaming Server that can be started by calling following command,
/usr/bin/perl /usr/local/sbin/streamingadminserver.pl

>>Stopping Darwin Streaming Server:


* Type ps -aef | grep Darwin
* You will see 2 server processes running. Kill both the 2 server processes.

>>Testing Your Darwin Streaming Server Installation:


* Ensure that Darwin Streaming Server is running by calling ps -aef | grep Darwin
* Goto Web Browser and type http://localhost:1220 . This is the admin interface for Darwin Streaming Server
running on port
1220.

Facing any issues ping me up

RHCT Exam Prep at Rs 3490


Expert Authored RHCT Online Courses from
RedHat. Try Free Demo Now!

hiteshagrawal.com/…/installing-darwin-… 2/11
8/26/2010 Installing Darwin
NIIT.Training.com Streaming sServer
/RHCT+Course on …
Live Streaming
HD quality streaming across India Fast set-up
and affordable service
www.BitGravity.com
Data Center Service India
99.9% Uptime,Costs Equivalent to US 500GB
DataTransfer Free with Server
Go4Hosting.com /Ca ll@919212413966
Managed Linux VPS @ $25/m
10G Space,100G BW, Virtuozzo Cloud Free
Cpanel/Plesk, Full Root Access
www.Happy-Hosting.com

Search
Custom Search

Popular Articles:

Change System TimeZone in Linux Systems


Executing Java Code From Linux Console using Shell Script
Explore Linux Partitions from Windows
Upgrading Firefox on Linux
I Like Linux but Loved Windows
Installing OpenLDAP on Linux Systems

Share and Enjoy:

Categories: Linux Tags: Linux


Comments (14) Trackbacks (0) Leave a comment Trackback

1.
Dave
March 9th, 2010 at 11:02 | #1

hiteshagrawal.com/…/installing-darwin-… 3/11
8/26/2010 Installing Darwin Streaming Server on …
Reply | Quote

Hitesh, Very nice instructions. Got through to “Testing…” and while I find the 2 processes running I get
nothing trying to connect to the 1220 port. “Firefox can’t establish a connection…” Any ideas? I don’t see
port 1220 opened or any log messages complaining either way.

Hitesh Agrawal
March 12th, 2010 at 23:03 | #2
Reply | Quote

Hi Dave,
Forgot to mentioned about admin panel in the installation steps. I have updated the same.
“Need to start the admin panel for Darwin Streaming Server that can be started by calling following
command, /usr/bin/perl /usr/local/sbin/streamingadminserver.pl”

Thanks,
Hitesh Agarwal

2.
Gert-Jan Admiraal
April 15th, 2010 at 06:21 | #3
Reply | Quote

Hello Hitesh,

Great job on putting this all together. However, I see some problems on my Centos installation.

Could you tell me which Linux distribution you are using?

Thanks!

Hitesh Agrawal
April 15th, 2010 at 06:28 | #4
Reply | Quote

I have successfully installed Darwin Streaming Server on CentOS 5.3.

Thanks,
Hitesh Agarwal

3.
Gene Steinberg
April 19th, 2010 at 12:46 | #5
hiteshagrawal.com/…/installing-darwin-… 4/11
8/26/2010 Installing Darwin Streaming Server on …
Reply | Quote

I installed from someone else’s directions, and occasionally I feed a live audio stream via QuickTime
Broadcaster.

Every so often, the feed halts with a −3285 error, but I can’t find any resource that can help me or my
host’s tech people to diagnose the problem

Can you suggest any ways to test this?

Peace,
Gene

Hitesh Agrawal
April 21st, 2010 at 11:48 | #6
Reply | Quote

Hi Gene,
I have no idea on live audio streaming.

Thanks.
Hitesh Agarwal

4.
Amy
April 23rd, 2010 at 01:08 | #7
Reply | Quote

I installed from someone else’s directions, and occasionally I feed a live audio stream via QuickTime
Broadcaster.

Every so often, the feed halts with a −3285 error, but I can’t find any resource that can help me or my
host’s tech people to diagnose the problem

Can you suggest any ways to test this?

Peace,
Gene

5.
Yadnesh
July 6th, 2010 at 03:13 | #8
Reply | Quote

Hi Hitesh,
hiteshagrawal.com/…/installing-darwin-… 5/11
8/26/2010 Installing Darwin Streaming Server on …

Thanks for the instructions. The build worked fine. But I am not able to install DSS. when I run ./Install.sh
I get loads of errors. I am doinf the build on Ubunto 8.0.4. Could you please suggest a solution?

===========================================================
yadnesh@ubuntu:~/DSS/DarwinStreamingSrvr6.0.3-Source$ sudo ./Install

Installing Darwin Streaming Server

Checking for and Killing currently running Darwin Streaming Server


Removing previous versions of Darwin Streaming Server

Backing up previous config files


backing up /etc/streaming/qtusers to /etc/streaming/qtusers.backup
backing up /etc/streaming/qtgroups to /etc/streaming/qtgroups.backup

Inserting path to perl into scripts..


Can’t open perl script “perlpath.pl”: No such file or directory

Creating unprivileged user to run the server = “qtss”.


copying DarwinStreamingServer to /usr/local/sbin/DarwinStreamingServer
copying PlaylistBroadcaster to /usr/local/bin/PlaylistBroadcaster
cp: cannot stat `PlaylistBroadcaster’: No such file or directory
copying MP3Broadcaster to /usr/local/bin/MP3Broadcaster
cp: omitting directory `MP3Broadcaster’
copying qtpasswd to /usr/local/bin/qtpasswd
cp: cannot stat `qtpasswd’: No such file or directory
cp: cannot stat `StreamingServerModules/*’: No such file or directory
Generating a new prefs file at /etc/streaming/streamingserver.xml
INFO: Module Loaded…QTSSFileModule [static]
INFO: Module Loaded…QTSSReflectorModule [static]
INFO: Module Loaded…QTSSRelayModule [static]
INFO: Module Loaded…QTSSAccessLogModule [static]
INFO: Module Loaded…QTSSFlowControlModule [static]
INFO: Module Loaded…QTSSPosixFileSysModule [static]
INFO: Module Loaded…QTSSAdminModule [static]
INFO: Module Loaded…QTSSMP3StreamingModule [static]
INFO: Module Loaded…QTSSAccessModule [static]
WARNING: No users file found at /etc/streaming/qtusers.
WARNING: No groups file found at /etc/streaming/qtgroups.

copying relayconfig.xml-Sample to /etc/streaming/relayconfig.xml-Sample

copying qtusers to /etc/streaming/qtusers

copying qtgroups to /etc/streaming/qtgroups


copying readme.txt to /var/streaming/readme.txt
cp: cannot stat `readme.txt’: No such file or directory
hiteshagrawal.com/…/installing-darwin-… 6/11
8/26/2010 Installing Darwin Streaming Server on …
copying 3rdPartyAcknowledgements.rtf to /var/streaming/3rdPartyAcknowledgements.rtf
cp: cannot stat `3rdPartyAcknowledgements.rtf’: No such file or directory
copying sample_100kbit.mov into /usr/local/movies/sample_100kbit.mov
copying sample_300kbit.mov into /usr/local/movies/sample_300kbit.mov
copying sample_100kbit.mp4 into /usr/local/movies/sample_100kbit.mp4
copying sample_300kbit.mp4 into /usr/local/movies/sample_300kbit.mp4
copying sample.mp3 into /usr/local/movies/sample.mp3
copying sample_50kbit.3gp into /usr/local/movies/sample_50kbit.3gp
copying sample_h264_100kbit.mp4 into /usr/local/movies/sample_h264_100kbit.mp4
copying sample_h264_300kbit.mp4 into /usr/local/movies/sample_h264_300kbit.mp4
copying sample_h264_1mbit.mp4 into /usr/local/movies/sample_h264_1mbit.mp4
copying StreamingLoadTool to /usr/local/bin/StreamingLoadTool
cp: omitting directory `StreamingLoadTool’
copying streamingloadtool.conf to /etc/streaming/streamingloadtool.conf
cp: cannot stat `streamingloadtool.conf’: No such file or directory
copying streamingadminserver.pl into /usr/local/sbin/streamingadminserver.pl
cp: cannot stat `streamingadminserver.pl’: No such file or directory
copying Admin HTML to /var/streaming/AdminHtml directory
cp: cannot stat `AdminHtml’: No such file or directory

Launching streamingadminserver.pl
./Install: line 355: /usr/local/sbin/streamingadminserver.pl: No such file or directory

Installation Complete

Darwin Streaming Server Setup

In order to administer the Darwin Streaming Server you must create an administrator user [Note: The
administrator user name cannot contain spaces, or single or double quote characters, and cannot be more
than 255 characters long].
Please enter a new administrator user name: yadnesh

You must also enter a password for the administrator user [Note: The administrator password cannot
contain spaces, or quotes, either single or double, and cannot be more than 80 characters long].
Please enter a new administrator Password:
Re-enter the new administrator password:
./Install: line 408: /usr/local/bin/qtpasswd: No such file or directory
./Install: line 416: /usr/local/bin/qtpasswd: No such file or directory
Setup Complete!

===========================================================

Hitesh Agrawal
July 11th, 2010 at 14:49 | #9
Reply | Quote
hiteshagrawal.com/…/installing-darwin-… 7/11
8/26/2010 Installing Darwin Streaming Server on …

Hi Yadnesh,
Just make few quick check:
* Ensure that PERL is installed on your system.
* You need to be root user to install Darwin Streaming Server.

Hop this helps.

Thanks,
Hitesh A

6.
backtogeek
July 16th, 2010 at 10:38 | #10
Reply | Quote

hi Hitesh,

I followed this to the letter on CENTOS 5.3 x86_64 but am having some issues, can you assist?

WARNING: No users file found at /etc/streaming/qtusers.


WARNING: No groups file found at /etc/streaming/qtgroups.

copying relayconfig.xml-Sample to /etc/streaming/relayconfig.xml-Sample

copying qtusers to /etc/streaming/qtusers

copying qtgroups to /etc/streaming/qtgroups


copying readme.txt to /var/streaming/readme.txt
cp: cannot stat `readme.txt’: No such file or directory
copying 3rdPartyAcknowledgements.rtf to /var/streaming/3rdPartyAcknowledgements. rtf
cp: cannot stat `3rdPartyAcknowledgements.rtf’: No such file or directory
copying sample_100kbit.mov into /usr/local/movies/sample_100kbit.mov
copying sample_300kbit.mov into /usr/local/movies/sample_300kbit.mov
copying sample_100kbit.mp4 into /usr/local/movies/sample_100kbit.mp4
copying sample_300kbit.mp4 into /usr/local/movies/sample_300kbit.mp4
copying sample.mp3 into /usr/local/movies/sample.mp3
copying sample_50kbit.3gp into /usr/local/movies/sample_50kbit.3gp
copying sample_h264_100kbit.mp4 into /usr/local/movies/sample_h264_100kbit.mp4
copying sample_h264_300kbit.mp4 into /usr/local/movies/sample_h264_300kbit.mp4
copying sample_h264_1mbit.mp4 into /usr/local/movies/sample_h264_1mbit.mp4
copying StreamingLoadTool to /usr/local/bin/StreamingLoadTool
cp: omitting directory `StreamingLoadTool’
copying streamingloadtool.conf to /etc/streaming/streamingloadtool.conf
cp: cannot stat `streamingloadtool.conf’: No such file or directory
copying streamingadminserver.pl into /usr/local/sbin/streamingadminserver.pl
cp: cannot stat `streamingadminserver.pl’: No such file or directory

hiteshagrawal.com/…/installing-darwin-… 8/11
8/26/2010 Installing Darwin Streaming Server on …
removing old version of html from /var/streaming/AdminHtml
copying Admin HTML to /var/streaming/AdminHtml directory
cp: cannot stat `AdminHtml’: No such file or directory

Launching streamingadminserver.pl
./Install: line 355: /usr/local/sbin/streamingadminserver.pl: No such file or di rectory

Installation Complete

7.
backtogeek
July 16th, 2010 at 10:39 | #11
Reply | Quote

I do have perl installed and am running as root

8.
backtogeek
July 16th, 2010 at 15:55 | #12
Reply | Quote

Think I have figured it out myself actualy, the Install has no path to perlpath.pl and nothing written into it to
find it (and a number of other files), when moving the perlpath.pl to the DarwinStreamingSrvr6.0.3-Source
folder it finds it and gets passed that error.

I am moving all the nessisary files one at a time.

Once I have done that I will write a modified Install file and share it with everyone as if you google: Can’t
open perl script “perlpath.pl”: No such file or directory there are a ton of people with the same issue.

9.
backtogeek
July 17th, 2010 at 04:42 | #13
Reply | Quote

for anyone who is getting the errors above replace your Install file with http://pastebin.com/NWLRTj5X
then chmod 755 Install and try again.

There are a few issues with the original such as:

1) perlpath.pl is in the WebAdmin filder not the root


2) alot of other files that are expected to be in the root of Darwin Source folder are actualy not there
3) some of the folder names do not match what is expected in the Install script
4) the script looks for AdminHtml and the folder is actualy called WebAdminHtml
5) the modules for the streamingserver are in the API folder which is not even in the install script.

hiteshagrawal.com/…/installing-darwin-… 9/11
8/26/2010 Installing Darwin Streaming Server on …
anyway did a quick and dirty mod of the install for anyone that gets the issues I got above hopefully it will
help someone.

10.
backtogeek
July 20th, 2010 at 07:11 | #14
Reply | Quote

I have adapted this to make it a little more simple for people with little experience:
http://backtogeek.wordpress.com/2010/07/20/darwin-streaming-server-centos-5-5-x86_64/

1. No trackbacks yet.

Name (required)
E-Mail (will not be published) (required)
Website

Subscribe to comments feed

Type the tw o w ords:

Submit Comment (Ctrl+Enter)


Calling Remote URL from C Program Reading New Emails from Java Applications
RSS
Email feed Twitter

3.7/5 (112 votes)


Vote for me at BlogAdda!

Java Tutorial

hiteshagrawal.com/…/installing-darwin-… 10/11
8/26/2010 Installing Darwin Streaming Server on …
Free Online Java Courses
Java Training Resource
PHP OOPS
PHP Tutorials

Translator

Articles

Action Script Adobe Flash AJAX Amazon S3 Services Apache Tomcat Apache Web Server Career C
Tutorial Events FFMPEG Flash Media Server Google Gadgets Java Javascript JSON Linux
Mysql PHP PHP5 Programming Logic Puzzles UML Wordpress XML
Top WordPress
Copyright © 2007-2010 Techie Zone
Theme by NeoEase. Valid XHTML 1.1 and CSS 3.

hiteshagrawal.com/…/installing-darwin-… 11/11