Hi,
Hi,
A while ago I did DSS installation on Solaris 10.
Read the following notes (start with paragraph (2 ).
I hope it will give you the idea where to dig.
After Struggling a lot with DSS I'm writing some tips for me and other users about installation of DSS on Solaris10:
-----------------------------------------
A little info about my system:
# cat /etc/release
Solaris 10 3/05 s10_74L2a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 January 2005
# which gcc && gcc --version | head -2
/usr/sfw/bin/gcc
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) Copyright (C) 2004 Free Software Foundation, Inc.
# which g++ && g++ --version | head -2
/usr/sfw/bin/g++
g++ (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
# which perl && perl -v | head -2
/opt/csw/bin/perl
This is perl, v5.8.8 built for sun4-solaris-thread-multi
---------------------------------------------
I'm going to install from DarwinStreamingSrvr5.5.3-Source.tar (The latest stable version):
----------------------------------------------
1) Actually the first installation I've made was via ./Install script.
In order to have functional main components of DSS in place (which installer failed to place in their apropriate places) I did:
# cp qtpasswd.tproj/qtpasswd /usr/local/bin/qtpasswd # cp PlaylistBroadcaster.tproj/PlaylistBroadcaster /usr/local/bin/PlaylistBroadcaster
# cp MP3Broadcaster/MP3Broadcaster /usr/local/bin/MP3Broadcaster # cp Documentation/3rdPartyAcknowledgements.rtf /var/streaming/3rdPartyAcknowledgements.rtf
# cp WebAdmin/src/streamingadminserver.pl /usr/local/sbin/streamingadminserver.pl
# cp -R WebAdmin/WebAdminHtml /var/streaming/AdminHtml
# groupadd qtss
# /usr/local/bin/qtpasswd -p 'password' 'adminusername'
(Remove the default admin username to /etc/streaming/qtusers) # /usr/local/bin/qtpasswd -F -d 'aGFja21l' > /dev/null
I've also did a Date Display Fix with patch from http://streaming411.com/wiki/index.php?title=Darwin_Streaming_Server:
# cd /var/streaming/AdminHtml
Create parse_xml.date_display.patch containing:
-------------------------------------------------------------------
--- parse_xml.cgi.origin 2006-06-21 16:04:23.000000000 +0300
+++ parse_xml.cgi 2006-06-21 16:04:53.000000000 +0300
@@ -31,7 +31,7 @@
require('relayxmlparser.pl');
require('password-utils.pl');
-use Time::localtime;
+#use Time::localtime;
# Get the server name, QTSS IP address, and Port from ENV hash $servername = $ENV{"SERVER_SOFTWARE"}; @@ -1346,7 +1346,8 @@
$logfilename = $dirname . $chdelim . $logname . '.log';
$logfilename =~ s/\/{2,}/\//g; # remove duplicate slashes
if (-e $logfilename) {
- $rolldatestr = sprintf("%02d", localtime->year() % 100) . sprintf("%02d", localtime->mon()) . sprintf("%02d",
localtime->mday());
+# $rolldatestr = sprintf("%02d", localtime->year() % 100) . sprintf("%02d", localtime->mon()) . sprintf("%02d",
localtime->mday());
+ $rolldatestr = sprintf("%02d%02d%02d", sub {($_[5] %
+ 100, $_[4]+1, $_[3])}->(localtime));
$rollfilenumber = 0;
$rollfilename = "$dirname$chdelim" . $logname . ".$rolldatestr" . '000.log';
while (-e $rollfilename) {
---------------------------------------------------
# patch -p0 < parse_xml.date_display.patch
Now let's run it:
# /usr/local/sbin/streamingadminserver.pl
Check the processes:
# ps -ef | grep reaming
root 1262 1 0 16:46:01 ? 0:00 /usr/local/sbin/DarwinStreamingServer
qtss 1261 1 0 16:46:01 ? 0:00 /usr/bin/perl /usr/local/sbin/streamingadminserver.pl
root 1976 835 0 16:51:57 pts/1 0:00 grep reaming
qtss 1263 1262 0 16:46:01 ? 0:01 /usr/local/sbin/DarwinStreamingServer
I've also wrote the following info down for myself (the info is from here: http://lists.apple.com/archives/Streaming-server-dev/2005/Mar/msg00015.html):
###############################################################
# Add the new admin username to /etc/streaming/qtusers /usr/local/bin/qtpasswd -p 'password' 'username'
# Add the new admin username to /etc/streaming/qtgroups # and delete the default admin username
echo admin: admin > /etc/streaming/qtgroups.tmp mv /etc/streaming/qtgroups.tmp /etc/streaming/qtgroups
# Remove the default admin username to /etc/streaming/qtusers /usr/local/bin/qtpasswd -F -d 'aGFja21l' > /dev/null
#################################################################
2) The thing is that I've a suspicions that there're some components missing in my installation, so I did a little digging in apple's lists and found some hints here: http://lists.apple.com/archives/streaming-server-developers/2001/Mar/msg00001.html.
Anyway running ./buildtarball gave me StreamingProxy--SunOS.tar.gz but no DarwinStreamingSrvr-SunOS.tar.gz (buildtarball script should create binary installation in tar.gz so I could see what I'm missing in my DSS installation on the FS level).
I had to apply these 2 patches to DSS_MakeRoot and buildtarball accordingly so buildtarball would work properly on my system:
a) Create DSS_MakeRoot.patch:
--- DSS_MakeRoot.orig Wed Aug 30 11:52:12 2006
+++ DSS_MakeRoot Wed Aug 30 12:40:31 2006
@@ -5,16 +5,8 @@
# source release
DSS=0
-if [ $1 = "-f" ]; then
- FLATTEN=1
- INSTALLROOT=$2
- if [ $3 = "dss" ]; then
- DSS=1
- fi
-else
FLATTEN=0
- INSTALLROOT=$1
-fi
+ INSTALLROOT=DarwinStreamingSrvr-SunOS
echo Installing source build of Darwin Streaming Server
----------------------------------
b) Create buildtarball.patch:
--- buildtarball.orig Wed Aug 30 12:33:16 2006
+++ buildtarball Wed Aug 30 12:34:44 2006
@@ -80,7 +80,7 @@
fi
fi
-./DSS_MakeRoot -f DarwinStreamingSrvr$1-$PLAT $1
+./DSS_MakeRoot -f DarwinStreamingSrvr$1-$PLAT
tar cvf DarwinStreamingSrvr$1-$PLAT.tar DarwinStreamingSrvr$1-$PLAT gzip DarwinStreamingSrvr$1-$PLAT.tar
------------------------------------
c) run buildtarball:
# ./buildtarball
After script finishes it's work you"ll get 2 files containing binary installation with relative paths:
DarwinStreamingSrvr-SunOS.tar.gz
StreamingProxy--SunOS.tar.gz
And 2 directories:
DarwinStreamingSrvr-SunOS
StreamingProxy--SunOS
d) Now investigate DarwinStreamingSrvr-SunOS directory and compare it's contents with paths and files on your FS.
Copy missing files to your FS.
I've missed 2 files in /usr/local/sbin/StreamingServerModules directory (Actually on my Gentoo installation I don't have any StreamingServerModules directory, so its purpose is a mistery for me):
-rwxr-xr-x 1 root root 691412 Aug 30 15:11 QTSSHomeDirectoryModule
-rwxr-xr-x 1 root root 455084 Aug 30 15:11 QTSSRefMovieModule
c) Vuala I've got a working DSS installation!!!
OR
3)
# Build a "flat" directory containing an "Install" script like this:
Change DSS_MakeRoot.patch so it would contain these values:
FLATTEN=0
Repeat steps b) and c) of section 2)
Now go to DarwinStreamingSrvr-SunOS directory and run # ./DSS_MakeRoot # cd DarwinStreamingSrvr-SunOS # ./Install
Should work but I didn't test it.
P.S.
---------- used as a separator lines
-----Original Message-----
From: streaming-server-dev-bounces+leonk=email@hidden [mailto:streaming-server-dev-bounces+leonk=email@hidden] On Behalf Of Florian Schleich
Sent: Wednesday, November 29, 2006 12:17 PM
To: email@hidden
Subject: Re: build darwin streaming server from src
Hi
I had the same problem. You can either find and copy the missing files by hand, or you can create a tarball (after building) with the 'buildtarball'-script. If you run 'Install' from the new tarball (after unpacking it), everything should be alright.
Best regards,
Florian
-------- Original-Nachricht --------
Datum: Wed, 29 Nov 2006 17:59:26 +0800
Von: Jacky Cheung <email@hidden>
An: email@hidden
Betreff: build darwin streaming server from src
> Hi
>
> I am using RH EL4 to build darwin streaming sever from src.
> I run with the following command
> # ./Buildit
> # ./Install
>
> it prompt may error on stating that no such file... and I found out that
> the script is copying file from a wrong directory.
>
> Is that I've missed some important steps?
>
> Thx
>
> Jacky
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Streaming-server-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/streaming-server-dev/email@hidden
>
> This email sent to email@hidden
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Streaming-server-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/streaming-server-dev/email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Streaming-server-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/streaming-server-dev/email@hidden
This email sent to email@hidden