Darwin Streaming Server Port Usage

As Darwin SS uses the RTSP protocol to stream (unless youre streaming via port 80) you must have the following ports open on your firewall 554, 7070, 8000, 8001 then anything starting from 6970 & up depending on how many clients you want to support.
Apple have a basic support article on this here

Running Darwin Streaming Server on OpenBSD 3.5

Today I have mostly been playing with streaming servers, I’ve been meaning to give Apple’s Darwin Streaming server a go for a while now but never got around to trying it, unfortunatly theres no official binaries for OpenBSD but a quick google around & I found this
I download the patch from the url specified in the post & then onto Apples site to download the sources. I was unable to use the patch in its original form as the creator had specified the paths from his computer to the files which ofcourse where invalid on my system. A quick edit of the dif & i was back on track. 🙂

Heres my moded patch with the paths taken out, place it inside the DarwinStreamingSrc5.0.1.1 directory & patch away 🙂
As specified in the Jeff Ross’s post, patch the source with
patch -p0 < DSS_5.diff
then compile & install with
./Buildit
./DSS_MakeRoot -f DarwinStreamingSvr
cd DarwinStreamingSvr
sudo ./Install

once installation is completed run
rmuser qtss then run adduser & create a new user with the username qtss,with the shell /sbin/nologin & no password.
otherwise Darwin fails with the following error
Cannot switch to group qtss

Now run /usr/local/sbin/streamingadminserver.pl then openup your browser & goto http://localhost:1220
You should be presented with a login screen! 😀
enjoy!

D-Link Sux

Grrrrr
Been dealing with a D-link DSL300T ethernet modem today & I now have a even bigger hatred for their kit, the pony piece of kit re-enables the dhcp server & sets the clock back to 1970 after powercycling the unit (even though you’ve saved the changes) resulting in a impressive uptime stat on the modems admin page & a confused firewall (which sits behind the modem) wondering why it has a 192.168.x.x IP address on both the wan & lan port.

The Propper way to fire up MySQL

grrr
been pulling my hair out as cron wasnt firing up, tracked the problem down to rc.local, the command to start mysql was preventing cron from running but everything seemed A-OK on the outside.
heres the correct lines to insert into rc.local on OpenBSD to fireup mysql without causing any knock on effects:
if [ -x /usr/local/bin/mysqld_safe ]; then
/usr/local/bin/mysqld_safe > /dev/null & echo -n 'mysql '
fi

Automated Uploads with FTP using cron

Today I’ve mostly been messing with IRC bots & toys.
setup a bot (eggdrop) & irc stat generator (pisg) on my server here at home. Unfortunately the channels website is hosted elsewhere, using crontab I created a cron job to run pisg at a regular interval, then planned on using ftp in another job to upload the generated stats page. Unfortunately there no way of telling the ftp command to upload files.
To get around this I resorted to setting a cron job on a script which ran ftp & included the necessary ftp commands to upload the file piped to the ftp command.
Heres the script I used (thnx Dan!):

#!/bin/sh
ftp -i -n ftp.hostname.net <<EOF
user myusern mypasswd
cd /whereu/want2upload/
lcd /wherethe/fileis/locatedlocally/
put index.html
quit
EOF

the crontab entry looks like this
0 * * * * /pathto/sh /pathtothe/script >/dev/null 2>&1

Though Shall Post

Sooo tired, I keep on meaning to sit down & write some articles for here, defo over the weekend Ill sit my arse down & get some stuff typed up, got some tidbits for openbsd I wanna share 🙂

Hello World

Welcome to my blog
I have setup this site to share my thoughts & experiences of all things geek/tech like with all you ppl out there, I hope you enjoy your visit here 🙂