Projects

Ticket #6 (new enhancement request)

Opened 2 years ago

Last modified 3 months ago

Anyone have a linux build?

Reported by: murata@… Owned by:
Priority: critical Version: Linux
Keywords: Cc: corvias@…, mo@…, jigiraje@…

Description

A submission for building on Fedora Core would be appreciated.

Attachments

dss-hh-20080728-1.patch Download (13.5 KB) - added by horace.hsieh@… 2 years ago.
Install Download (13.4 KB) - added by claydawg52@… 2 years ago.
Modified Install Script (Tested on Ubuntu 8.04)
dss-6.0.3.patch Download (14.7 KB) - added by claydawg52@… 2 years ago.
Sverker's Patch
dss.sh Download (0.9 KB) - added by claydawg52@… 2 years ago.
Fixed Ubuntu Install Script
dss-hh-20081021-1.patch Download (14.7 KB) - added by horace.hsieh@… 23 months ago.
darwin-streaming-server Download (1.8 KB) - added by horace.hsieh@… 23 months ago.

Change History

  Changed 2 years ago by murata@…

  • owner set to murata@…
  • status changed from new to assigned

Thank you to Sverker Abrahamsson,

A patch is in progess for CentOS and has been posted to the community

From: sverker@… Subject: Fw: DSS 6 Now Available Date: May 25, 2008 4:13:09 PM PDT

Hi again,

I sent the below yesterday but it is pending moderator approval as the attachment made it go over the size limit. You may download the patch from  http://www.abrahamsson.com/dss-6.0.3.patch For you who prefer rpms use these:  http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-1.i386.rpm  http://www.abrahamsson.com/DarwinStreamingServer-debuginfo-6.0.3-1.i386.rpm  http://www.abrahamsson.com/DarwinStreamingServer-Samples-6.0.3-1.i386.rpm  http://www.abrahamsson.com/DarwinStreamingServer-Utils-6.0.3-1.i386.rpm  http://www.abrahamsson.com/DarwinStreamingServer-6.0.3-1.src.rpm

  Changed 2 years ago by murata@…

  • owner murata@… deleted
  • status changed from assigned to new

  Changed 2 years ago by gerbrand@…

Brilliant. This patch made me Build the binaries effortlessly on Ubuntu 8. The installation script didn't copy all the files, nor did it give me correct config files though.

  Changed 2 years ago by rmcouat@…

Installed on Ubuntu 8.04 and I haven't tried earlier. The Install script, line 195, the useradd command has no -M option on Ubuntu so it fails to create the qtss user id. I just deleted the option. The script needs to distinguish between Debian and Red Hat based versions of Linux or maybe try with the -M option and on failure try again without.

Changed 2 years ago by horace.hsieh@…

  Changed 2 years ago by horace.hsieh@…

Hello guys,

Here it's a rough patch for Linux x86-64 platform, which has been built under 64bit Ubuntu 8.04 LTS and works for me. please firstly apply  http://www.abrahamsson.com/dss-6.0.3.patch, then apply my patch -- dss-hh-20080728-1.patch.

where I fixed the following issues:

1. some memory leakages

2. a duplicative invoking of construction in dynamical shared library,

which made "DarwinStreamingServer -x" deadlock

3. Under 64bit Linux, can't accept any user requests except from localhost.

4. some minor compiling errors

  Changed 2 years ago by claydawg52@…

Thanks for those patches guys; I have it up and running on ubuntu 8.04.1 server.

I am a bit of a newb when it comes to patching - I got it to work, but I had to first append the .orig to the source for the first patch, then remove it for the second. I also had to answer n then y for the second patch to apply successfully... Is there a better way to do this?

I don't know how that install script worked for any platform - all of the paths were broken... Was something supposed to move those files around?

Anyway I attached a modified Install file that worked for me. I am sure something is probably broken (like some of those StreamingModules or something), but so far it is working just fine for what I need it to do. Just do a "diff Install.orig Install" to see what I changed.

Also attached is a bash script for automatically downloading, patching, and installing DSS 6.0.3 (tested on Ubuntu 8.04).

To get around the -M problem I just created the qtss user beforehand.

Changed 2 years ago by claydawg52@…

Modified Install Script (Tested on Ubuntu 8.04)

  Changed 2 years ago by eruiz0@…

dss.sh tries to download Install from  http://xepra.net/Install but I get error: ERROR 404: Not Found.

Quick fix: after downloading dss.sh (and before running it) you shoud change the line:

wget  http://xepra.net/Install

for the following lines:

wget http://dss.macosforge.org/trac/attachment/ticket/6/Install?format=raw

mv Install\?format\=raw Install

  Changed 2 years ago by eruiz0@…

dss.sh works fine on Ubuntu 7.1

  Changed 2 years ago by claydawg52@…

Wow, that was quick - I just repointed that dns last night ;). It is probably better to have it point to macosforge.org anyway.

I'll fix it. Sorry bout that.

Changed 2 years ago by claydawg52@…

Sverker's Patch

Changed 2 years ago by claydawg52@…

Fixed Ubuntu Install Script

  Changed 2 years ago by claydawg52@…

Done. That should fix it. I also uploaded Sverker's patch just in case he is a dumb@$$ like me and takes it down or messes with his dns :p. Let me know if you have any more problems.

Good to know people are actually using this tho :)

SSL admin still isn't working for me, even with libnet-ssleay-perl and openssl installed. Anyone know a fix?

follow-up: ↓ 12   Changed 23 months ago by konfoo@…

This build still has issues. HTTP streaming does not work (see ticket #11) -- the client simply throws back an error and refuses to play anything. Has anyone fixed this and if so can you provide a patch file?

in reply to: ↑ 11 ; follow-up: ↓ 15   Changed 23 months ago by horace.hsieh@…

Replying to konfoo@…:

This build still has issues. HTTP streaming does not work (see ticket #11) -- the client simply throws back an error and refuses to play anything. Has anyone fixed this and if so can you provide a patch file?

Are you sure to use root to boot dss?

but it seems okay to me, like following

horace@hxie:$ openRTSP  rtsp://localhost:80/sample0.sdp Sending request: OPTIONS  rtsp://localhost:80/sample0.sdp RTSP/1.0 CSeq: 1 User-Agent: openRTSP (LIVE555 Streaming Media v2008.07.24)

Received OPTIONS response: RTSP/1.0 200 OK Server: DSS/6.0.3 (Build/526.3; Platform/Linux; Release/Darwin Streaming Server; State/Development; ) Cseq: 1 Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD

.. Sending request: DESCRIBE  rtsp://localhost:80/sample0.sdp RTSP/1.0

follow-up: ↓ 29   Changed 23 months ago by horace.hsieh@…

1. Update my patch to make script 'Install' suitable in most Linux/unix.

dss-hh-20081021-1.patch

2. Submit startup script /etc/init.d/darwin-streaming-server to run DSS at boot time under both Ubuntu and Redhat.

Changed 23 months ago by horace.hsieh@…

Changed 23 months ago by horace.hsieh@…

  Changed 23 months ago by horace.hsieh@…

So after use dss-hh-20081021-1.patch, in dss.sh, the following cmds aren't necessary.

sudo addgroup --system qtss sudo adduser --system --no-create-home --ingroup qtss qtss

in reply to: ↑ 12   Changed 23 months ago by konfoo@…

I successfully have this build running now. The problem was the default GCC on Ubuntu 8.04.1 being gcc4. To fix, set:

CPLUS=gcc-3.3 CCOMP=gcc-3.3 LINKER='gcc-3.3'

in Buildit under the linux arch tag, and do an apt-get install of libc6-dev linux-libc-dev gcc-3.3 g++-3.3

Compiling under GCC4 will work but it is a false positive since http-based streaming will not work correctly when using direct file access.

  Changed 22 months ago by konfoo@…

Update to previous reply - I would like to thank the genius that commented out this line in the modified Install script:

#cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/

Without the dynamic streaming modules, HTTP streaming on port 80 will not work. i.e. accessing a file on the server (not a playlist item) via web browser embedded QT player or direct http file access such as  http://server/movies/file.mov

These need to be re-inserted in the streamingserver.xml config:

<MODULE NAME="QTSSHomeDirectoryModule" >

<PREF NAME="enabled" TYPE="Bool16" >false</PREF> <PREF NAME="movies_directory" >/Sites/Streaming/</PREF> <PREF NAME="max_num_conns_per_home_directory" TYPE="UInt32" >0</PREF> <PREF NAME="max_bandwidth_kbps_per_home_directory" TYPE="UInt32" >0</PREF>

</MODULE> <MODULE NAME="QTSSRefMovieModule" >

<PREF NAME="refmovie_xfer_enabled" TYPE="Bool16" >true</PREF> <PREF NAME="refmovie_rtsp_port" TYPE="UInt16" >0</PREF>

</MODULE>

  Changed 22 months ago by claydawg52@…

That genius would probably be me :/

Sorry about that! I was probably just going through and finding errors and that was my brilliant quick fix.

I probably didn't notice because it doesn't affect pure rtsp, which was what I needed.

Anyway, thanks for the fix, and sorry for creating the problem.

follow-up: ↓ 20   Changed 20 months ago by corvias@…

Still having problems getting DSS to stream over Port 80, though I think it might be the way I patched it. Are both the 200807 and 200810 patches required? I only used dss-6.0.3 and dss-hh-20081021-- should I have used the 728 patch as well? If so, at what points do I choose yes or no in patch -p0?

I have ensured that Apache, or anything else is using port 80. I also uncommented the StreamingServerModules line mentioned above in the customized install script and added the missing config info into streamingserver.xml that konfoo mentioned. I also set CPLUS=gcc-3.3 CCOMP=gcc-3.3 LINKER='gcc-3.3' in Buildit. Please Help! What am I doing wrong???

There are no errors in the log, the we interface comes up fine, the "Stream on port 80" box is checked, and I can get a stream by directly connecting through RTSP players, but no video over http.

  Changed 20 months ago by corvias@…

  • cc corvias@… added

Cc Me!

in reply to: ↑ 18   Changed 20 months ago by rmcouat@…

Replying to corvias@…:

Still having problems getting DSS to stream over Port 80, though I think it might be the way I patched it. Are both the 200807 and 200810 patches required? I only used dss-6.0.3 and dss-hh-20081021-- should I have used the 728 patch as well? If so, at what points do I choose yes or no in patch -p0? I have ensured that Apache, or anything else is using port 80. I also uncommented the StreamingServerModules line mentioned above in the customized install script and added the missing config info into streamingserver.xml that konfoo mentioned. I also set CPLUS=gcc-3.3 CCOMP=gcc-3.3 LINKER='gcc-3.3' in Buildit. Please Help! What am I doing wrong??? There are no errors in the log, the we interface comes up fine, the "Stream on port 80" box is checked, and I can get a stream by directly connecting through RTSP players, but no video over http.

Does a netstat -an | grep 80 show anything in Listen for protocol TCP? That still doesn't show you which process, use fuser 80/tcp for a list of pids and grep for that number in the output of ps -ef or ps -ale.

If nothing is using the port then I have found one cause is the Perl script that starts DSS switches to user qtss and to access ports under 1024 the process must have root privileges. One way I made that work some time ago was to add user qtss to group wheel in the /etc/group file. I am sure this has all the usual security implications but you have to have elevated permissions to open port 80.

follow-up: ↓ 22   Changed 20 months ago by corvias@…

Here is the output of those commands

$ sudo netstat -an | grep 80
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:8001            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN

$ sudo fuser 80/tcp
80/tcp:               8436

$ ps aux | grep 8436
qtss      8436  0.0  0.1  46260  3336 ?        Sl   Jan17   0:13 /usr/local/sbin/DarwinStreamingServer

So it looks like DSS is listening on 80, but not responding.

in reply to: ↑ 21 ; follow-up: ↓ 23   Changed 20 months ago by konfoo@…

Replying to corvias@…:

So it looks like DSS is listening on 80, but not responding.

Have you bothered to read this thread? Your question has already been answered.

in reply to: ↑ 22 ; follow-up: ↓ 24   Changed 20 months ago by corvias@…

Replying to konfoo@…:

Replying to corvias@…:

So it looks like DSS is listening on 80, but not responding.

Have you bothered to read this thread? Your question has already been answered.

With all due respect, I have read this thread several times, and I would not post without first doing thorough investigation on my own. Perhaps we just have a misunderstanding. Please look at my initial question from three days ago where I inquired if all three patches needed to be installed, or just the latest one, and where to answer yes and no. In response to this, rmcouat asked me to check the output of some commands, which I posted and you replied to. I understand that this issue has been fixed, I am just trying to work out the correct procedure to achieve that fix. Again, please see my first post (comment 20).

in reply to: ↑ 23 ; follow-up: ↓ 25   Changed 20 months ago by konfoo@…

Replying to corvias@…:

I am just trying to work out the correct procedure to achieve that fix. Again, please see my first post (comment 20).

If you are successfully compiling, installing and everything except port 80 HTTP-tunnel streaming is working, then see my previous comment, make the change to the install file to copy the modules, and add/modify the server.xml file to include the modules.

in reply to: ↑ 24 ; follow-ups: ↓ 28 ↓ 34   Changed 20 months ago by corvias@…

Replying to konfoo@…:

If you are successfully compiling, installing and everything except port 80 HTTP-tunnel streaming is working, then see my previous comment, make > the change to the install file to copy the modules, and add/modify the server.xml file to include the modules.

Right. I got that part, and the fact that it did not work for me led me to suspect I had done something wrong when applying the patches for dss, which in turn led me to post here for clarification on that procedure:

Do I need to install dss-6.0.6, dss-hh-20080728 and dss-hh-20081021, or just the latter? If all are needed, then what options should be chosen when patch asks me:

Reversed (or previously applied) patch detected! Assume -R?

Here is the procedure I followed. I assumed that the 7/28 patch was replaced by the 10/21 patch, so I did not use it:

- Download DarwinStreamingSrvr6.0.3-Source.tar, dss-6.0.3.patch, dss-hh-20081021-1.patch, fixed Install script
- tar -xvf DarwinStreamingSrvr6.0.3-Source.tar
- mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.org
- patch -p0 < dss-6.0.3.patch
- mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source
- patch -p0 < dss-hh-20081021-1.patch
- Change gcc to gcc-3.3 for cplus, ccomp, and linker for my linux arch in Buildit script
- Replace Install script with the one on this page
- Uncommented "cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/" in Install script
- ./Buildit
- sudo ./Install
- Stopped dss daemon
- Added the following to /etc/streaming/streamingserver.xml:
    <MODULE NAME="QTSSHomeDirectoryModule" >
        <PREF NAME="enabled" TYPE="Bool16" >false</PREF>
        <PREF NAME="movies_directory" >/Sites/Streaming/</PREF>
        <PREF NAME="max_num_conns_per_home_directory" TYPE="UInt32" >0</PREF>
        <PREF NAME="max_bandwidth_kbps_per_home_directory" TYPE="UInt32" >0</PREF>
   </MODULE> <MODULE NAME="QTSSRefMovieModule" >
        <PREF NAME="refmovie_xfer_enabled" TYPE="Bool16" >true</PREF>
        <PREF NAME="refmovie_rtsp_port" TYPE="UInt16" >0</PREF>
    </MODULE>
- Start dss back up again.
- Direct rtsp works, streaming to port 80 is on, and dss claims there's nothing wrong, but it does not work.

  Changed 19 months ago by jvondproductions@…

DUDES! So after trying to read this can someone please just attach an already patched version of 6.0.XX that will install and run on a Debian? What's a name for someone that's a bigger loser than a newbie? -- that would be me. I'm begging someone please get me a Debian fix. 5.5.XX's aren't working for me on my new system. I'll buy you some beers or something.. Thanks! ~JVonD

jvondproductions at yahoo com

  Changed 18 months ago by zelalems@…

Hi guys, I am newbie in Linux patches. Am I required to use all the patches listed in the attachments section? Could someone tell me the steps I should follow to install and patch dss in Linux. I have already downloaded and unzipped dss-6.0.3.

Thanks in advance.

in reply to: ↑ 25   Changed 18 months ago by zelalems@…

Replying to corvias@…:

Replying to konfoo@…:

If you are successfully compiling, installing and everything except port 80 HTTP-tunnel streaming is working, then see my previous comment, make > the change to the install file to copy the modules, and add/modify the server.xml file to include the modules.

Right. I got that part, and the fact that it did not work for me led me to suspect I had done something wrong when applying the patches for dss, which in turn led me to post here for clarification on that procedure: Do I need to install dss-6.0.6, dss-hh-20080728 and dss-hh-20081021, or just the latter? If all are needed, then what options should be chosen when patch asks me: Reversed (or previously applied) patch detected! Assume -R? Here is the procedure I followed. I assumed that the 7/28 patch was replaced by the 10/21 patch, so I did not use it: {{{ - Download DarwinStreamingSrvr6.0.3-Source.tar, dss-6.0.3.patch, dss-hh-20081021-1.patch, fixed Install script - tar -xvf DarwinStreamingSrvr6.0.3-Source.tar - mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.org - patch -p0 < dss-6.0.3.patch - mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source - patch -p0 < dss-hh-20081021-1.patch - Change gcc to gcc-3.3 for cplus, ccomp, and linker for my linux arch in Buildit script - Replace Install script with the one on this page - Uncommented "cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/" in Install script - ./Buildit - sudo ./Install - Stopped dss daemon - Added the following to /etc/streaming/streamingserver.xml: <MODULE NAME="QTSSHomeDirectoryModule" > <PREF NAME="enabled" TYPE="Bool16" >false</PREF> <PREF NAME="movies_directory" >/Sites/Streaming/</PREF> <PREF NAME="max_num_conns_per_home_directory" TYPE="UInt32" >0</PREF> <PREF NAME="max_bandwidth_kbps_per_home_directory" TYPE="UInt32" >0</PREF> </MODULE> <MODULE NAME="QTSSRefMovieModule" > <PREF NAME="refmovie_xfer_enabled" TYPE="Bool16" >true</PREF> <PREF NAME="refmovie_rtsp_port" TYPE="UInt16" >0</PREF> </MODULE> - Start dss back up again. - Direct rtsp works, streaming to port 80 is on, and dss claims there's nothing wrong, but it does not work. }}}

Hi were you able to run Buildit successfully? I got lots of error. I followed your step but didn't succeed. The following is the first error I got at the begining:

Building CommonUtilitiesLib for Linux.i686 with gcc gcc -c -o atomic.o -D_REENTRANT -DUSE_POSIX -Dlinux -pipe -include ../PlatformHeader.h -g -Wall -O2 -I. -I.. -I../APIStubLib -I../RTPMetaInfoLib -I../APICommonCode atomic.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory make: *** [atomic.o] Error 1

in reply to: ↑ 13 ; follow-up: ↓ 30   Changed 18 months ago by corywright@…

Replying to horace.hsieh@…:

1. Update my patch to make script 'Install' suitable in most Linux/unix. dss-hh-20081021-1.patch

Is this patch still available somewhere? When I try to download it here from trac I just get an empty page. This happens both when clicking on the patch attachment in my web browser and when using wget. The dss-hh-20080728-1.patch link still works, but I can't access dss-hh-20081021-1.patch.

in reply to: ↑ 29   Changed 18 months ago by corywright@…

Replying to corywright@…:

Replying to horace.hsieh@…:

1. Update my patch to make script 'Install' suitable in most Linux/unix. dss-hh-20081021-1.patch

Is this patch still available somewhere? When I try to download it here from trac I just get an empty page. This happens both when clicking on the patch attachment in my web browser and when using wget. The dss-hh-20080728-1.patch link still works, but I can't access dss-hh-20081021-1.patch.

I was able to get the file to download by appending '?format=raw' to the end of that patch url:

http://dss.macosforge.org/trac/attachment/ticket/6/dss-hh-20081021-1.patch?format=raw

  Changed 17 months ago by mo@…

  • cc mo@… added

Cc Me!

  Changed 17 months ago by mo@…

  • cc mo@… removed

Cc Me!

  Changed 17 months ago by mo@…

  • cc mo@… added

Cc Me!

in reply to: ↑ 25   Changed 15 months ago by jigiraje@…

Replying to corvias@…:

Replying to konfoo@…:

If you are successfully compiling, installing and everything except port 80 HTTP-tunnel streaming is working, then see my previous comment, make > the change to the install file to copy the modules, and add/modify the server.xml file to include the modules.

Right. I got that part, and the fact that it did not work for me led me to suspect I had done something wrong when applying the patches for dss, which in turn led me to post here for clarification on that procedure: Do I need to install dss-6.0.6, dss-hh-20080728 and dss-hh-20081021, or just the latter? If all are needed, then what options should be chosen when patch asks me: Reversed (or previously applied) patch detected! Assume -R? Here is the procedure I followed. I assumed that the 7/28 patch was replaced by the 10/21 patch, so I did not use it: {{{ - Download DarwinStreamingSrvr6.0.3-Source.tar, dss-6.0.3.patch, dss-hh-20081021-1.patch, fixed Install script - tar -xvf DarwinStreamingSrvr6.0.3-Source.tar - mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.org - patch -p0 < dss-6.0.3.patch - mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source - patch -p0 < dss-hh-20081021-1.patch - Change gcc to gcc-3.3 for cplus, ccomp, and linker for my linux arch in Buildit script - Replace Install script with the one on this page - Uncommented "cp -f StreamingServerModules/* /usr/local/sbin/StreamingServerModules/" in Install script - ./Buildit - sudo ./Install - Stopped dss daemon - Added the following to /etc/streaming/streamingserver.xml: <MODULE NAME="QTSSHomeDirectoryModule" > <PREF NAME="enabled" TYPE="Bool16" >false</PREF> <PREF NAME="movies_directory" >/Sites/Streaming/</PREF> <PREF NAME="max_num_conns_per_home_directory" TYPE="UInt32" >0</PREF> <PREF NAME="max_bandwidth_kbps_per_home_directory" TYPE="UInt32" >0</PREF> </MODULE> <MODULE NAME="QTSSRefMovieModule" > <PREF NAME="refmovie_xfer_enabled" TYPE="Bool16" >true</PREF> <PREF NAME="refmovie_rtsp_port" TYPE="UInt16" >0</PREF> </MODULE> - Start dss back up again. - Direct rtsp works, streaming to port 80 is on, and dss claims there's nothing wrong, but it does not work. }}}

Hi, I am also facing the problem,rtsp works but http does not work. Later on found that there is no StreamingServerModules directory. I have downloaded the code from wget  http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr6.0.3-Source.tar. Can you pls help on this?

  Changed 15 months ago by jigiraje@…

  • cc jigiraje@… added

Cc Me!

  Changed 3 months ago by barbarajackson@…

The <a href=" http://lowest-rate-loans.com/topics/home-loans">home loans</a> are important for people, which would like to organize their own organization. By the way, it's very comfortable to receive a small business loan.

  Changed 3 months ago by corywright@…

  • cc corywright@… added

Cc Me!

  Changed 3 months ago by corywright@…

  • cc corywright@… removed

Cc Me!

Note: See TracTickets for help on using tickets.