Ubuntu: How do I play .swf files?


Does anyone know what libraries I have to install to play .swf files?


You can use the standalone flashplayer by Adobe : https://help.ubuntu.com/community/FlashPlayerStandalone

But you can also open the file in your Internet browser if you have installed flash plugin.


Sorry, that didn't post right.

Edit /usr/share/mime/packages/freedesktop.org.xml file and change

<mime-type type="application/vnd.adobe.flash.movie">  


<mime-type type="application/x-shockwave-flash">  

and then run

sudo update-mime-database /usr/share/mime  

and then reinstall flash player.


.swf files can be opened with gnash swf viewer. If you don't have it:

sudo apt-get install gnash  


How to open a .swf-file with Firefox browser

Right-click on the file. Choose Properties > Open With, then click on show other applications. Now you can add firefox in the list. Set it as default. Now double-click on the .swf-file.

It will open in the Firefox and play itself. I assume the flashplayer-plugin is already installed in Firefox, else it will ask you to install flashplayer-plugin. Follow the steps and you are good to go.


Another solution if you do not want to open it in web browser is you can install shockwave player for windows in Ubuntu via wine. I installed it and it's work fine.


Install swfdec-gnome

sudo apt-get install swfdec-gnome  

Use latest Google Chrome (which has inbuilt flash support)

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »