Search:  
Gentoo Wiki

HOWTO_Darwin_Streaming_Server

This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

Overview

Having searched far and wide for an article on how to setup the Darwin Open Source Streaming Server (from apple) on Gentoo, and having no luck, I decided that I would write an article

Getting Started

I've read in a couple of places that people have had difficulties getting Darwin 5.x working under linux, and I must admit I had problems too, so this tutorial tells you how to get it working with the version 4.1.3 (you can download it here)

Installing

Dependencies

The server seems to install with its install script with almost no dependencies (if people find any more, then feel free to add them here), apart from virtual/libstdc++
Install this with the command

emerge -av libstdc++

Darwin itself

Grab the tar.gz file linked above, and download it to your home folder (you should be logged in as root). Then extract it with

tar xvzf DarwinStreamingSrvr4.1.3-Linux.tar.gz

Change directory to the DarwinStreamingSrvr4.1.3-Linux folder, and run the install script:

cd DarwinStreamingSrvr4.1.3-Linux
./Install

It will prompt you to enter the desired administrator username, and then password. Enter these, and it should say that it was installed successfully. Fire up your favorite web browser, and get ready to configure it

Note: If you get this error:
qtpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot   open shared object file: No such file or directory

You need to create a symbolic link:

ln -s /usr/lib/libstdc++-v3/libstdc++.so.5.0.6 /lib/libstdc++-libc6.2-2.so.3

On amd64 do this instead:

emerge emul-linux-x86-compat

Configuring

Point your web browser to the location http://server.example.com:1220 and it will throw up a login page. Enter the admin username/password you set in the install script.

MP3 Broadcasts

The next screen asks you to enter a password for MP3 Broadcasts. This is for when you want to receive MP3 broadcasts on your server. (Personally, I would use a server such as Icecast, as it supports other file formats too)
Enter your desired password, and click Next

Admin SSL

Next it will ask you if you want to use Secure Administration (SSL). I answered no, and I have not yet tried to set up SSL.
Leave the checkbox unchecked, and click next.

Note: Edit this part to explain how to install with SSL

Local Storage

The next screen asks you where you want to store your streaming media. The default is /usr/local/movies. If you change the location, ensure that the 'qtss' username has write access to the folder.

NOTE: WMV, Mpeg files can't be read. Convert them all to Mp4 or MOV.

Streaming on port 80

Click next, and the final step asks you if you want to allow streaming on port 80.

Warning: If you are running another web server, such as Apache, or thttpd, dont select this option, as it will crash when trying to bind to the port

Click finish, and it will present you with the configuration page.
Congratulations: you have installed the Darwin Open Source Streaming Server

Testing the server

If you want to test your server, then just try to access one of the example files that are installed with Darwin. Fire up a web browser, and surf to

rtsp://www.example.com/sample_100kbit.mov

and if it shows the video, then its all working

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Darwin_Streaming_Server"

Last modified: Fri, 01 Feb 2008 17:15:00 +0000 Hits: 12,200