Update September 13th 2009: Easier to use install script available.

Update January 31st 2009: Patch for Adobe Flash Media Server 3.5 on ubuntu available.

Update February 11th 2008: Patch for Adobe Flash Media Server 3 on Ubuntu available.

The installation script for Flash Media Server 2 works only on RedHat Enterprise by default. With some modifications it works fine on Ubuntu Gutsy, Feisty and Edgy. At first we need to install the dependencies:

# install dependencies
apt-get install libnspr4-dev libstdc++5 libstdc++5-3.3-dev

For older versions of Ubuntu (7.04 and 6.10) use:

# install dependencies
apt-get install libnspr4 libstdc++5 libstdc++5-3.3-dev

Then download FlashMediaServer2.tar.gz and use the patch:

tar xfz FlashMediaServer2.tar.gz
cd FMS*
wget http://www.bluetwanger.de/~mbertheau/fms.patch
patch -p1 < fms.patch
sudo ./installFMS

You can later uninstall the server:

cd /opt/macromedia/fms
sudo ./uninstallFMS

Update January 3rd 2007: Added installation of dependencies. Thanks to Mark Sullivan.

Update May 23rd 2007: Checked on feisty. Removed dead FMS download link.

Update November 29th 2007: Adapted instructions for gutsy. Thanks to Donavan.