Shafe Shifter Just another guy on the internet.

28Feb/115

Compiling Darwin Streaming Server 6.0.3 Under Debian.

I was recently tasked with a Linux install of Darwin Streaming Server on a Debian server. Unfortunately for me Apple stopped making Windows and Linux builds of DSS when version 6.0 was released.

After a lot of failed attempts at compiling from source on Linux I came across a wonderful post that had a shell script that would install all dependencies, download the source plus a handful of patches, compile and install v6.0.3 on Ubuntu 10.x. A few tweaks and I was able to get it to work for my install of Debian.

For the life of me I can't find the page again where that script was located, and apparently I'm not the only one. A google search brings up a whole lot of dated material mostly for DSS 5.x.

You shouldn't run into problems with these, I've used them several times now and they work pretty well. Be sure to run them as root though.

Debian 5.0 & 6.0 DSS Compile Script:

#!/bin/bash
apt-get install build-essential wget
addgroup --system qtss
adduser --system --no-create-home --ingroup qtss qtss

wget http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr6.0.3-Source.tar
tar -xvf DarwinStreamingSrvr6.0.3-Source.tar
mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-6.0.3.patch
patch -p0 < dss-6.0.3.patch
mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-hh-20080728-1.patch
patch -p0 < dss-hh-20080728-1.patch

#need to answer n then y
cd DarwinStreamingSrvr6.0.3-Source
mv Install Install.orig
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/Install
chmod +x Install
./Buildit
./Install

Download debian-dss.sh

 

Ubuntu 10.x DSS Compile Script

#!/bin/bash
sudo apt-get install build-essential wget
sudo addgroup --system qtss
sudo adduser --system --no-create-home --ingroup qtss qtss

wget http://static.macosforge.org/dss/downloads/DarwinStreamingSrvr6.0.3-Source.tar
tar -xvf DarwinStreamingSrvr6.0.3-Source.tar
sudo mv DarwinStreamingSrvr6.0.3-Source DarwinStreamingSrvr6.0.3-Source.orig
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-6.0.3.patch
sudo patch -p0 < dss-6.0.3.patch
sudo mv DarwinStreamingSrvr6.0.3-Source.orig DarwinStreamingSrvr6.0.3-Source
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/dss-hh-20080728-1.patch
sudo patch -p0 < dss-hh-20080728-1.patch

#need to answer n then y
cd DarwinStreamingSrvr6.0.3-Source
sudo mv Install Install.orig
wget http://dss.macosforge.org/trac/raw-attachment/ticket/6/Install
chmod +x Install
sudo ./Buildit
sudo ./Install

Download ubuntu-dss.sh

 


If you run into problems or are just plain lazy, here is Darwin Streaming Server 6.0.3 compiled for Linux. Simply unpack the archive and run ./Install :

 

Download: Darwin Streaming Server 6.0.3 Linux Binaries

26Jan/110

Quick Debian Server Provisioning Script

Here is a quick little bash script that I use to initially provision Debian LAMP servers from a fresh install. This should setup PHP with all the whistles and bells, a whole handful of utilities as well as install webmin for you.

Nothing to complicated here, just a quick little script to speed up your life.

clear
clear
echo 'Debian Provisioning Script'
echo '01-12-2011 TNL Total Solutions'
echo 'http://www.tnlsoft.com'
echo ''
read -p "Press any key to begin provisioning"
clear
echo 'Preparing server for provisioning...'
apt-get update
apt-get upgrade
apt-get dist-upgrade
echo ''
echo 'All existing packaged updated'
echo ''
read -p "Press any key to begin installing NEW packages"
clear
echo 'Installing Required Packagesn'
apt-get install apache2 apache2-utils apache2.2-common bind9 bind9-host bind9utils curl gawk denyhosts sendmail ftp proftpd gzip iptables lftp libapache2-mod-perl2	libapache2-mod-php5 libapache2-reload-perl libcurl3 libxml2 lynx mysql-client mysql-common mysql-server ntp ntpdate openssh-client openssh-server openssl perl perl-base perl-modules php-pear php5 php5-cli php5-common php5-curl php5-dev php5-gd php5-geoip php5-imagick php5-imap php5-ldap php5-mcrypt php5-mhash php5-mysql php5-odbc php5-xmlrpc proftpd python rdate samba samba-common sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda subversion tar unzip wget makeself zip libghc6-openal-dev libsage2 libsdl-gfx1.2-4 mingw32 mingw32-binutils mingw32-runtime
echo ''
echo ''
echo 'Creating Skel'
mkdir /etc/skel/www
mkdir /etc/skel/logs
mkdir /etc/skel/www/cgi-bin

cd /var/www
rm index.html
wget http://www.tnlsoft.com/debian/index.txt
mv index.txt index.php
chmod 0777 index.php
cp index.php /etc/skel/www

echo ''
echo ''

echo 'Reconfiguring PHP 5'
cd /etc/php5/apache2
mv php.ini php.ini.old
wget http://www.tnlsoft.com/debian/php.ini

echo ''
echo ''
echo 'Installing PEAR Packages'
pear install Mail
pear install Net_SMTP

echo ''
echo ''
echo 'Enabling Apache Mods'
a2enmod dav_fs
a2enmod dav
a2enmod rewrite

echo ''
echo ''
echo 'Restarting Apache'
/etc/init.d/apache2 restart

echo ''
echo ''
echo 'Installing Webminn'
cd /root
wget http://downloads.sourceforge.net/project/webadmin/webmin/1.530/webmin-1.530.tar.gz
tar -xvf webmin-1.530.tar.gz
cd webmin-1.530
./setup.sh
echo 'Done!'

Grab it here: http://dev.tnlsoft.com/download/debian_provision.zip

1Jul/100

Google Hardware in 1998

I remember in 1997 when someone first pointed me to http://google.stanford.edu a student project that was supposed to beat out WebCrawler as a search engine. I wasn't too impressed at the time... It's interesting to think how huge Google has become and how I don't really use anything else to search the web. Let alone the dozens of other services I use Google for regularly.    At the time the Google.standford.edu homepage looked something like , complete with the default to only show 10 results.

What is even more impressive is the hardware that ran google back then:

  • 2 300 MHz Dual Pentium II Servers with 512MB of RAM. There are 9 9G drives between the two machines. The main search engine ran on these.
  • An IBM RS6000 with 4 processors and 512MB of memory. It had 8 9G drives internal.
  • A Machine with  3 9G drives, and there are 6 4G drives attached to a Sun Ultra II.
  • An IBM disk expansion box had another 8 9G drives.
  • A Sun Ultra II with dual 200MHz processors, and 256MB of RAM.
  • A homemade disk box which contains 10 9G SCSI drives.

All of Google in 1998 as a whole:

12May/100

Ubuntu Linux Under Windows? Introducing Wubi

I've had a lot of people ask me lately to help them with something because they "don't have Linux".  I always have to ask, how can you NOT have Linux when virtually every Linux distribution is FREE?  Most of us geeks realize that the average computer user is scared of the unknown.  Average users aren't interested in partitioning their drives. A common myth is that you'll lose your windows installation.   The past few weeks I find myself constantly pointing people to WUBI, so alas, a blog post with a bit of explanation.

When I hear these sorts of things, I point people to WUBI.  Wubi is not a Linux distribution of its own, but rather an installer for Ubuntu Linux that installs under windows, without formatting or partitioning your hard drive.  It also uninstalls just like any other windows program.  So basically if you can install Yahoo messenger, you can install Linux.

Once installed, reboot your machine and you will be presented with a boot menu that lets you choose your Windows installation or Ubuntu.  It runs Ubuntu not as a virtual machine, but creates a stand alone installation on a disk image stored on your windows file system.     The only serious limitation of running Ubuntu in this manner is the lack of hibernation support.

Wubi Homepage

More Info at Wikipedia

A side note from Wikipedia:
While Wubi does not install Ubuntu directly to its own partition this can also be accomplished by using LVPM, the Loopmounted Virtual Partition Manager, to transfer the Wubi-generated Ubuntu installation to a dedicated real partition, including a bootable USB keydrive. The advantage of this setup is that users can test the operating system and install the drivers before they install it to a dedicated partition (and avoid booting and functioning risks).


Tagged as: , No Comments
16Feb/100

Linux Command Line Tools for CMD.EXE

For me, I find the linux command line like a second home.   When I'm on Windows, I find that I live in CMD.EXE a majority of the time --  I usually always have a command prompt open.   Aside from everything about Windows that drives me insane on a regular basis, I find the command prompt almost useless by itself, especially when compared to linux.

How often do you hop on a windows command prompt and type 'ls'  instead of 'dir'?   Somewhere along the way I started collecting small collections of Linux tools that run in the windows command prompt.     Every few months someone else asks if I can send them my archive of tools as they don't want to deal with msys or cygwin... These are from various sources over the years, including various collections of others.

The full list of programs included in the archive is here: http://www.brian-shaffer.com/dls/nixutils.txt

Download the archive here: http://www.brian-shaffer.com/dls/nixutils.zip

Just add it to your path environment variable.