Mon 25 Dec 2006
Installing Flash Media Server 2 on Ubuntu 7.10 Gutsy, 7.04 Feisty and 6.10 Edgy
Posted by Markus Bertheau under computer[44] Comments
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.
December 31st, 2006 at 6:59
Hey Markus,
Excellent job on the patch, just one thing, you have to make sure to have libstdc++5 libstdc++5-3.3-dev installed before you run the install script. “apt-get install libstdc++5 libstdc++5-3.3-dev” does the job
Mark @ http://www.markontech.com
January 3rd, 2007 at 7:10
You also need libnspr4
>apt-get install libnspr4
Mark @ http://www.markontech.com
January 3rd, 2007 at 17:09
Thanks Mark, I incorporated your comments in the post.
January 14th, 2007 at 7:11
[...] Live aus der Marschrutka » Installing Flash Media Server 2 on Ubuntu 6.10 Edgy [...]
January 14th, 2007 at 7:24
[...] The installation script for Flash Media Server works only on RedHat Enterprise by default. With some modifications it works fine on Ubuntu Edgy: apt-get install libnspr4 libstdc++5 libstdc++5-3.3-dev wget http://download.macromedia.com/pub/flashmediaserver/updates/2_0_3/linux/flashmediaserver2.tar.gz tar xfz flashmediaserver2.tar.gz cd FMS* wget http://www.bluetwanger.de/~mbertheau/fms.patch patch -p1 < fms.patch sudo ./installFMS Live aus der Marschrutka » Installing Flash Media Server 2 on Ubuntu 6.10 Edgy this howto is written bei Markus Bertheau, please check the original article and his blog here. with his great patch my installation of FMS2 on my Mac Book Pro running Ubuntu 6.10 server inside Parallels Desktop worked like a charm :-) [...]
March 12th, 2007 at 20:47
[...] Après avoir installé sur mon vieux pentium 2 la version serveur d’Ubuntu (avec l’aide précieuse de John) et Flash Media Server 2 (non sans dificultés, il m’a fallu l’aide de ce tuto), j’ai pu enfin faire mes premiers pas avec cette technologie. [...]
March 13th, 2007 at 22:49
I have a new install ubunty server (edgy), and have made the suggested apt-get and patch successfully. However, I still get ‘./installFMS: line 187: ./fmsini: No such file or directory’
It seems that FMS still miss a program or library in ‘fmsini’. Any suggustion which program or how I could debug the problem?
March 19th, 2007 at 6:29
Markus,
Great patch, I struggled with installing fms when I initially upgraded to edgy but couldn’t find a solution in the time available (had some app demos that needed fms very quickly). I resorted to running fms in a dapper vmware session, it was nuts.
Now I have the time to look into installing on edgy again, and you have done all the work for me!
Thanks!
March 19th, 2007 at 6:33
I might also note that in the past I’ve had some strange issues (of course I can’t remember what exactly) with leaving the /etc/redhat-release file in place. I’m not sure removing it in the script is necessary, but I’m pretty sure fms will run fine without it once it’s installed.
I’ll leave it in place and see if the issue I had before comes up again. If it does I’ll post it here.
March 19th, 2007 at 10:48
Chris,
thanks for the comment, it feels great to have saved someone some time :)
Removing the redhat-release file after installation would probably be a good idea.
March 20th, 2007 at 4:29
Ok, I came across one issue with leaving the redhat-release file in /etc.
Webmin detects your system as Redhat EL 4 and wants to reconfigure itself and any new modules installed for that Dist.
I’m not sure if this is the same problem that I had before, but it’s reason enough for me to get rid of the file.
April 4th, 2007 at 17:46
Perfect article and blog, Markus :-)
April 16th, 2007 at 4:37
[...] I installed Flash Media Server on my home Linux machine running Ubuntu Linux from the article here. This gives me 10 free connections to play with because I am using the Developer edition, no license. The Flash Media Server 2 download comes with examples that can easily be modified to suit your purposes, and that is as far as I am right now. [...]
May 23rd, 2007 at 10:38
any updates on this? for feisty and for adobe flash media server download site?
May 23rd, 2007 at 11:37
ren_sierra: The direct download link doesn’t work anymore; I added a link to the adobe download site. The patch and the installation instructions work for feisty. Thanks for the reminder.
May 23rd, 2007 at 15:06
tnx it worked ^__^ err atleast i think so… may i ask how you get to run fms2_console if its not under /var/www/ directory?
May 23rd, 2007 at 15:37
ren_sierra: copy the swf somewhere under your DocumentRoot. Or use another copy of the swf on another server; it can connect to the server you installed fms on.
May 24th, 2007 at 7:19
tnxies ^____^
May 31st, 2007 at 3:45
Hy, good post. I also make it work for Fedora Core 3,4 and 5 with some modifications on installFMS file only, you can download the file from my website by clicking here! You should install some depedencies, such compat-libstdc++, mozilla-nspr, openssl-devel etc. I work now on script to make it work on Fedora Core 6 and 7 when will appear. Thx and I hope that what I wrote will help someone.
With respect,
Viorel Soldan
June 25th, 2007 at 0:36
Thanks for this great post! No I have few small questions..
1. Will this patch work for 2.0.4 only? or will it also run on 2.0.2 as well?
2. I am not sure if I want to run Ubuntu or Fedora for FMS on my brand new Xserve with parallels installed. Can anybody give me a clue what I should prefer in this case?
Thanks a lot in advance…
Peter
June 25th, 2007 at 0:53
Peter Pan:
1. It works unmodified for 2.0.3 and 2.0.4, chances are that it works for 2.0.2, too. If the patch command doesn’t output any errors, the install will probably run fine. You can also download 2.0.2 and 2.0.3, unpack and diff -ur them to see what files have changed. If only binary files and documentation files have changed, then I’d give 99% that it works. On the other hand, newer versions of FMS correct bugs in older versions, so if I had a choice I’d install 2.0.4 :)
2. I don’t know of any technical reasons that would lead one to prefer one over the other for FMS. I prefer Ubuntu for other reasons.
July 19th, 2007 at 20:13
Markus,
Many thanks for this excellent work.
I have just installed FMS_2_0_3 on Ubuntu 7.04 and it works a dream!
July 26th, 2007 at 1:22
Hi people,
Has anybody installed the Flash Media Server 2 on CentOS 4? I would REALLY REALLY appreciate any help on this. I’ve been searching all over the net but no help were available. I know one guy has tried it but no success.
See last comment here: http://www.linode.com/forums/archive/o_t/t_1991/flash_media_server_2_user_info_and_experience.html
Thanks a lot.
July 31st, 2007 at 15:17
Hi
I did an install on ubuntu 7.04 the other day and it worked 100% but today im trying to do an install on 6.10 and im getting an error
./installFMS: line 187: ./fmsini: Permission denied
Dose anyone have any idea why this would be happening
Thanx
Barry
August 20th, 2007 at 12:36
Is there a patch that will work for FreeBSD 6?
I’ll try figuring this out myself.
Thanks
August 20th, 2007 at 22:10
I don’t know of such.
September 1st, 2007 at 6:39
Thanks, for this post, helped me out, been meaning to mess around with this for a while and now I can.
September 15th, 2007 at 2:40
Hi, I just got a successful install in Centos Linux 5 using the following:
yum install libstdc++ libstdc++-devel openssl openssl-devel openssl097a
./installFMS -platformWarnOnly
Seems to be working, hope this helps.
September 15th, 2007 at 20:32
hector pizarro….. Do you install
yum install libstdc++ libstdc++-devel openssl openssl-devel openssl097a
then
./installFMS -platformWarnOnly
November 27th, 2007 at 20:47
Has there been any success in installing FMS 2.04 on Ubuntu Server 7.10?
November 27th, 2007 at 22:03
I didn’t try, but I see no reason why it wouldn’t work. Did you try the patch?
November 28th, 2007 at 6:56
I tried the upgrade from Ubuntu 7.04 to 7.10 and then tried to reinstall FMS2 with the patch and FMS2 doesn’t not function correctly. I believe during the upgrade to Ubuntu 7.10 it removes the libnspr4.so package and 7.10 doesn’t seem to let me reinstall it. Any assistance with this is appreciated.
November 28th, 2007 at 11:23
Donavan,
try to install libnspr4-dev. This package contains libnspr4.so. You can find out such stuff on http://packages.ubuntu.com:
http://packages.ubuntu.com/cgi-bin/search_contents.pl?word=libnspr4.so&searchmode=searchfiles&case=insensitive&version=gutsy&arch=i386
November 29th, 2007 at 7:49
Thanks, that did it. So, your patch works for 7.10 too, one just needs to install libnspr4-dev (like you suggested). I appreciate the help.
December 27th, 2007 at 20:54
Thanks Markus, it works on my server version 7.10 too !
January 31st, 2008 at 0:47
Any chance we can get an updated patch for FMS3?
February 5th, 2008 at 20:12
Hi I’ve successfully used the patch for FMS2 on Ubuntu 7.10 which worked great (Thanks a lot for the great work done on this), but would appreciate it if any body have a similar patch for FMS3.
February 5th, 2008 at 20:26
I’ll try to take a look at a patch for FMS3 in the next days. Stay tuned :)
February 11th, 2008 at 0:52
[...] have been asked for a patch for installing Adobe Flash Media Server 3 on Ubuntu. Here it [...]
February 16th, 2008 at 12:10
I actually got the FMS 3 installed on Ubuntu 7.10 with what is mentioned in this forum, but I cannot connect to the server.
Here is a synopsis of the problems I’m having:
The fmscore and fmsmaster services are running, the fmsedge dies after a few seconds (about 30 seconds) and the admin server throws this error:
Failed to create listener for adaptor , IP localhost, port 11110: TCCommBridge::createListener 0.0.0.0:-1/other: create socket failed.. -
When I try the sample files to see if at least the server is running the connection fails. But I see the servervices (fmscore and fmsmaster) running so I really don’t understand wat’s going on. (btw, I’m trying to connect locally thru localhost).
Any ideas? (If not, do you know where to download FMS 2 from? I can’t find it at adobe.com)
Thanks
March 25th, 2008 at 4:43
@Barry: I had the same permission denied error with Ubuntu 7.1, and later on a ‘file not found’ error, even though the file was available. I fixed it by commenting out all references to the ‘fmsini’ file in the ‘installFMS’ file.
March 27th, 2008 at 5:33
[...] Live aus der Marschrutka – Installing Flash Media Server 2 on Ubuntu 6.10 Edgy [...]
May 17th, 2008 at 20:28
Works great! Thank you :)
May 25th, 2009 at 21:11
Hi Markus !
Nice job ! it works but there’s some errors on Ubuntu 9.04 “Jaunty Jackalope” see here :
# patch -p1 < flash-media-server-3-ubuntu.patch
patching file License.txt
Hunk #1 FAILED at 1.
Hunk #2 succeeded at 122 (offset 1 line).
Hunk #3 FAILED at 137.
2 out of 3 hunks FAILED — saving rejects to file License.txt.rej
patching file adminserver
patching file fmsmgr
patching file installFMS
Hunk #1 succeeded at 1 with fuzz 2.
Hunk #2 succeeded at 124 with fuzz 1 (offset 1 line).
Hunk #3 FAILED at 221.
Hunk #4 succeeded at 269 (offset 5 lines).
Hunk #5 FAILED at 725.
Hunk #6 succeeded at 980 with fuzz 2 (offset 228 lines).
Hunk #7 succeeded at 1190 (offset 323 lines).
Hunk #8 succeeded at 1348 (offset 343 lines).
2 out of 8 hunks FAILED — saving rejects to file installFMS.rej
patching file server
patching file uninstallFMS
Hunk #1 succeeded at 1 with fuzz 2.
Hunk #2 succeeded at 77 (offset 2 lines).
I hope it’s running on Debian :)
Best regards