supervacuo.com

c v t

Installing Flash player content debugger on Fedora x86_64

25 September 2012

Update 17th February 2017

Oh happy day! Adobe now provides 64-bit Flash debugger for GNU/Linux:

  • Click the "Download the Flash Player Plugin content debugger (64-bit) - NPAPI" link on their site

  • sudo dnf remove nspluginwrapper

  • sudo dnf reinstall flash-plugin

  • extract the files from the downloaded archive

  • copy libflashplayer.so to /usr/lib64/mozilla/plugins

  • sudo restorecon -R /usr/lib64/mozilla/plugins

  • restart Firefox

  • rejoice!

  • .. then evaluate the life decisions that have led to you still working on a Flex app..

Update 7th July 2016

Still working on Fedora 24, but:

  • nspluginwrapper has been orphaned; install F23 version from Koji:

    $ sudo dnf install https://kojipkgs.fedoraproject.org//packages/nspluginwrapper/1.4.4/22.fc23/i686/nspluginwrapper-1.4.4-22.fc23.i686.rpm https://kojipkgs.fedoraproject.org//packages/nspluginwrapper/1.4.4/22.fc23/x86_64/nspluginwrapper-1.4.4-22.fc23.x86_64.rpm
    
  • Firefox doesn't seem to look in /usr/lib64/mozilla/plugins-wrapped any more, but a link works:

    $ sudo ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /usr/lib64/mozilla/plugins/
    
  • I got frustrated and disabled SELinux, but it's probably relatively easy not to (chcon -t mozilla_plugin_rw_t ...?)

  • Somehow, four years after initially writing this post, Adobe has still not released an x86_64 debugger on Linux. And I'm still working on a project involving Flex. Which is the bigger catastrophe?

Update 26 February 2013

  • added SELinux restorecon command and nspluginwrapper.x86_64, which I'd apparently already run when I first wrote this

These instructions seem to work with Fedora 18. Long live Flash! :S

Original post

If you need to debug Flash applications on Fedora x86_64 (probably / possibly using FlashFirebug), the following should do:

  • Follow Adobe's instructions to install the i386 repository, or use this command to do all those steps at once:

    $ sudo yum localinstall http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
    
  • Install the i386 version of the flash plugin:

    $ sudo yum install flash-plugin.i386
    
  • Download the content debugger from the Adobe site, then extract the relevant file:

    $ wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz -q 
        -O - | tar xzf - libflashplayer.so
    
  • Over-write libflashplayer.so as installed by the flash-plugin RPM, and update the SELinux context:

    $ sudo mv libflashplayer.so /usr/lib/flash-plugin/libflashplayer.so
    $ sudo /sbin/restorecon -v /usr/lib/flash-plugin/libflashplayer.so
    
  • Install and run both the 64- and 32-bit versions of nspluginwrapper (the post-installation RPM scripts should take care of the "run" part):

    $ sudo yum install nspluginwrapper.x86_64 nspluginwrapper.i686
    
  • Never touch.

Hopefully, now that Adobe has discontinued both the Linux Flash plugin itself and Flex (the framework that keeps me using Flash), this'll be the last time I ever have to deal with this lobotomy of an installation process. Consider my breath held.