Installing Flash Media Server 2 On Linux (CentOS 4.4)
Written by Chris on July 21, 2007 – 8:34 pm -Recently I was asked by a client to look at purchasing and installing FMS2 on their server.
So I looked around the adobe site to find out prices and found they release a developers version (full version of the server but limited to 10 streams and non-production use), as well as this they release a windows version and a linux version.
Great I thought. I'll get the linux dev version, install it and check that it actually works on their system before purchasing a copy. Linux version means it will work on all versions of linux - right? Wrong!
Like a number of streaming server vendors they produce a version for windows - fine, and version for Red Hat Linux 4.0 (presumably because that's the same as every other linux right?).
This sucks, because generally these types of programs come with their own binary installers which detect your OS and won't install if it is not supported by them. Which means that in the case of CentOS it won't install out of the box, even though CentOS is essentially a clone of Redhat Enterprise Linux with the basically the same version numbers.
FMS2 is no different, but luckily it uses a shell script to install itself which means we can hack it!
First issue is that it is designed to run on Redhat 4.0 so we need to install some compatibility binaries - luckily this can be easily accomplished via YUM by running the following command from the shell:
yum install compat-libstdc++-33.i386
yum install seamonkey-nspr.i386
Next issue is that the installer script looks for Redhat on your system to allow the install to take place, we don't have redhat but we have CentOS so we add in a couple of sneaky lines to allow it to find Centos and report it as Redhat and not error as a result.
To do this first find out what your operating system identifies itself as - in the case of CentOS you can run the following from the shell:
less /etc/redhat-release
And you'll see that a single line is output - in my case it's:
CentOS release 4.4 (Final)
Note this down somewhere.
Next open the FMS install script (called installFMS) in a text editor such as nano and look for the line that says:
cd_check "Red Hat Enterprise Linux [WAE]S release 4" /etc/redhat-release redhat-RHEL4-i686
And just directly below it on a new line add:
cd_check "CentOS release 4.4 (Final)" /etc/redhat-release redhat-RHEL4-i686
Save the file and the run it from the shell
./installFMS
And that's it, the server should install just Dandy!
Popularity: 9% [?]
Sphere: Related ContentRelated posts on coderchris.com:
- Installing Red5 Open Source Flash Media Server On CentOS 4.2
After having no end of issues with the proprietary flash media server 2 from... - ATI Radion 9600 TV Output On Centos 5.0 (And Probably CentOS 4.4)
In a previous post about how to install Flash Media Server 2 on CentOS... - Installing tor from source on CentOS 5
As usal with CentOS I can up against a few problems installing tor from... - Using Linux Saves Money And Helps Save The Planet
Recently I bought a new cheap Toshiba laptop which came preinstalled with windows vista... - Adding Additional Software Repositories To Yum
I’ve added this (slightly edited) post here as I’ve found it useful in the...
Posted in CentOS, Linux | Trackback |















Feed 

August 24th, 2007 at 9:12 pm
one more problem I have on instal with centos .. after entering the admin name and password durring the install, it then ask for a user name (default nobody) .. so I just let it default - but then it ask for a valid user group… I have tried everything, and have no idea what to answer for user group - so the install wont complete
August 24th, 2007 at 9:40 pm
I would need to check this but if I remember correctly - I setup a user called fms with its own group of fms before the install and then used these as the settings when that information was asked for.
This allows you to run the fms as a special user with just the privileges it requires.
To be honest I need to revisit this FMS stuff in the next couple of days so I may have a more definitive answer for you then, but in the mean time why not give it a go yourself
August 25th, 2007 at 6:07 pm
okay - stupid question (excuse me for being a newb at this) - how do I set up a user and group then??
August 25th, 2007 at 10:12 pm
If you have a GUI:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-users-groups.html
If you only have shell access:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-users-tools.html
August 31st, 2007 at 4:36 pm
hey - guess what - add me to your list of successful CentOS FMS2 users… it’s working like a charm - thanks so much for your help
September 16th, 2007 at 1:56 pm
No problem
Though I can’t always guarantee to help people out as much as I’d like or as in detail as I’d like (mainly due to time) I’ll always try to give it my best shot!
November 13th, 2008 at 7:54 pm
It’s even easier than this, there is an option to ignore the platform during install. The two lines below are all that are required to get FMS on CentOS:
yum install compat-libstdc++ seamonkey-nspr
./installFMS -platformWarnOnly
November 13th, 2008 at 9:01 pm
Hi Ali
Thanks for this suggestion - when I first did this I’m sure this option wasn’t available, but if it is now that’s great!