Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build darwin streaming server from src



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Below is the step I have used before.

# ./buildtarball
# cd DarwinStreamingSrvrlinux-Linux
# sudo ./Install
# sudo /usr/local/sbin/DarwinStreamingServer
# sudo /usr/local/sbin/streamingadminserver.pl
# firefox http://localhost:1220/


Thanks,
Limin
* Jacky Cheung <email@hidden> [2006-11-30 17:20:15 +0800]:

> 
>    Hi,
>    Thanks for you all kindly help.
>    Finally, I've got the DSS up with the following
>    # ./buildtarball
>    # ./Install
>    And the DSS is up
>    However, I cannot connect to the admin page, even with in the local
>    machine.
>    How can I get into the admin page?
>    Thx a lot
>    Jacky
> 
>    Leon Kolchinsky wrote:
> 
> 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 ab
> out 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 Softw
> are 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 stabl
> e 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 fa
> iled to place in their apropriate places) I did:
> 
> # cp qtpasswd.tproj/qtpasswd /usr/local/bin/qtpasswd # cp PlaylistBroadcaster.t
> proj/PlaylistBroadcaster /usr/local/bin/PlaylistBroadcaster
> # cp MP3Broadcaster/MP3Broadcaster /usr/local/bin/MP3Broadcaster # cp Documenta
> tion/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 [1]http://streaming411.com/wik
> i/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) . sprin
> tf("%02d", localtime->mon()) . sprintf("%02d",
>  localtime->mday());
> +#              $rolldatestr = sprintf("%02d", localtime->year() % 100) . sprin
> tf("%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/DarwinStream
> ingServer
>     qtss  1261     1   0 16:46:01 ?           0:00 /usr/bin/perl /usr/local/sbi
> n/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/DarwinStream
> ingServer
> 
> I've also wrote the following info down for myself (the info is from here: [2]h
> ttp://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 defaul
> t 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/qt
> passwd -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 hin
> ts here: [3]http://lists.apple.com/archives/streaming-server-developers/2001/Ma
> r/msg00001.html.
> 
> Anyway running ./buildtarball gave me StreamingProxy--SunOS.tar.gz but no Darwi
> nStreamingSrvr-SunOS.tar.gz (buildtarball script should create binary installat
> ion 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 Darw
> inStreamingSrvr$1-$PLAT.tar
> 
> ------------------------------------
> c) run buildtarball:
> # ./buildtarball
> 
> After script finishes it's work you"ll get 2 files containing binary installati
> on 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 content
> s with paths and files on your FS.
> Copy missing files to your FS.
> 
> I've missed 2 files in /usr/local/sbin/StreamingServerModules directory (Actual
> ly 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 Dar
> winStreamingSrvr-SunOS # ./Install
> 
> Should work but I didn't test it.
> 
> 
> 
> 
> 
> 
> P.S.
> ---------- used as a separator lines
> 
> -----Original Message-----
> From: [4]streaming-server-dev-bounces+leonk=email@hidden.c
> om [[5]mailto:streaming-server-dev-bounces+leonk=email@hidden
> ple.com] On Behalf Of Florian Schleich
> Sent: Wednesday, November 29, 2006 12:17 PM
> To: [6]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. I
> f you run 'Install' from the new tarball (after unpacking it), everything shoul
> d be alright.
> 
> Best regards,
> Florian
> 
> 
> -------- Original-Nachricht --------
> Datum: Wed, 29 Nov 2006 17:59:26 +0800
> Von: Jacky Cheung [7]<email@hidden>
> An: [8]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
> ([9]email@hidden)
> Help/Unsubscribe/Update your Subscription:
> [10]http://lists.apple.com/mailman/options/streaming-server-dev/floschleich%40g
> mx.de
> 
> This email sent to [11]email@hidden
> 
> References
> 
>    1. http://streaming411.com/wiki/index.php?title=Darwin_Streaming_Server:
>    2. http://lists.apple.com/archives/Streaming-server-dev/2005/Mar/msg00015.html
>    3. http://lists.apple.com/archives/streaming-server-developers/2001/Mar/msg00001.html
>    4. mailto:streaming-server-dev-bounces+leonk=email@hidden
>    5. mailto:streaming-server-dev-bounces+leonk=email@hidden
>    6. mailto:email@hidden
>    7. mailto:email@hidden
>    8. mailto:email@hidden
>    9. mailto:email@hidden
>   10. http://lists.apple.com/mailman/options/streaming-server-dev/email@hidden
>   11. mailto: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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iQEVAwUBRW7HTkztbf7dKiuoAQI1YQf8C/T+NVii9JzqXjU4VJ7Vt0SvskH1sq03
hWKH3HLBxCCcevg+zNjcau2wExnu/sLyR+9veRNS1RoG3mfQg8jr+Fgr7iKa3ICq
smH/pHeV8Yg1OOtu4rQSL9lZfjD/zL0Ajjk3KYQlf8Y/7+U7DoJBkg/W5t0q404m
Pgfnox9UwJZeRlf9OPxb9JVYOgASnQsf3TpbpPk57YQW3P+JOPuLFv87BJjY4HbV
GctvGzunCDeCQ/IK1y/w0fW39mNI4iTRnp+yZOGLC1YZrnZO2YpRwtMeg+8cAJZl
LSTXe7315CEnzpWP5M2HSknAEklBuat3TP0uf3ehzqUjkX8KJg4jYQ==
=dRIJ
-----END PGP SIGNATURE-----
 _______________________________________________
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

References: 
 >RE: build darwin streaming server from src (From: "Leon Kolchinsky" <email@hidden>)
 >Re: build darwin streaming server from src (From: Jacky Cheung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.