I have a SWF file that connects to a remote flash server and receives some data. For security reasons I can’t make this SWF file web-accessible so I can’t use a browser to run it. Is there a way to run it on the server side from a command prompt (under Linux)?
Share
You can use
XvfborXfaketo run a X server that doesn’t interface to real hardware. If they aren’t available as packages for your distribution, you can build them from the Xorg xserver sources.(Or use MarkR’s
Xvncsuggestion.)The Adobe plugin used to ship with a stand-alone executable named
flashplayerorgflashplayer, which was usable outside of the browser. I think it still exists, but is in the developer package, or something like that.If you’re using a free implementation of Flash, both Gnash and Swfdec come with stand-alone
gnashandswfdecexecutables respectively.This starts
Xvfbon display :20 (just make sure to pick a number that’s not in use; normal displays start at:0,ssh‘s X forwarding typically allocates:10and up, and I’ve seen someXvncsetups start at:90), and runsgnashinside of it: