Flash

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(9 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
Adobe's Flash plugin cannot be included in Fedora because it is not free/libre and open source software.  Adobe does release a version of the Flash plugin for Linux, and this can be used in Firefox, Konqueror and other popular Internet browsers.  When Adobe releases a newer version of the Linux Flash plugin, it makes packages available for Fedora, but Fedora cannot include Adobe's plugin as long as it is unavailable as free and open source software.
 
Adobe's Flash plugin cannot be included in Fedora because it is not free/libre and open source software.  Adobe does release a version of the Flash plugin for Linux, and this can be used in Firefox, Konqueror and other popular Internet browsers.  When Adobe releases a newer version of the Linux Flash plugin, it makes packages available for Fedora, but Fedora cannot include Adobe's plugin as long as it is unavailable as free and open source software.
  
{{admon/note | Free alternatives to Adobe Flash | There is a free and open source alternative called [http://www.gnu.org/software/gnash/ Gnash] available in Fedora's software repositories.  Gnash can play flash videos but the audio portion of flash is often under the MP3 format which is patent encumbered.  Since Gnash uses Gstreamer, you can get additional codecs from other third party repositories but Fedora unfortunately cannot include them. There is also another free and open source alternative called [http://sourceforge.net/apps/trac/lightspark Lightspark]. Scroll below for more details on installing Gnash.
+
There are other open alternatives to Flash itself, including the patent unencumbered and free WebM,  Ogg Theora video and Ogg Vorbis audio formats. Fedora has complete support for such open formats, and Fedora includes several web browsers including Firefox, Epiphany etc that plays Ogg and WebM files directly, without any need of third party and proprietary browser plugins.
 
+
There are other open alternatives to Flash itself, including the patent unencumbered and free WebM,  Ogg Theora video and Ogg Vorbis audio formats. Fedora has complete support for such open formats, and Fedora includes a version of Firefox web browser that plays Ogg and WebM (Firefox 15 onwards) files directly, without any need of third party and proprietary browser plugins.}}
+
  
 
== YouTube and WebM support ==
 
== YouTube and WebM support ==
  
Google has open sourced the VP8 video format and combined it with Ogg Vorbis audio and an adaptation of the Matroska container, creating a new format for free and open video and audio called WebM.  YouTube is switching over to using WebM extensively and Fedora has embraced this format as well.  Current versions of Fedora support WebM by default.
+
Google has open sourced an implementation of VP8 video format and combined it with Ogg Vorbis audio and an adaptation of the Matroska container, creating a new format for free and open video and audio called WebM.  YouTube is switching over to using WebM extensively and Fedora has embraced this format as well.  Current versions of Fedora support WebM by default.  
 
+
To enable support for it in YouTube, go to http://youtube.com/html5 and click on "Join the HTML5 Beta" link in the bottom of that page. Note that all videos are not available in WebM format yet, but this is expected to happen over time.  [http://www.permadi.com/blog/2010/05/sample-webm-video-2/ Here] is a sample video for testing.  
+
  
== Enabling Flash plugin ==
+
To enable support for it in YouTube, go to http://youtube.com/html5 and click on "Join the HTML5 Beta" link in the bottom of that page. Note that all videos are not available in WebM format yet especially videos that include advertisements but majority of them should play just fine.  [https://www.youtube.com/watch?v=ZkeLgjv9W08 Here] is a sample video for testing.
  
Adobe offers several methods to install their 32-/64-bit Flash 11 plugins.  In general, the YUM version is preferred, since it allows the plugin to be updated automatically through Fedora's normal update mechanism.  The YUM version simply installs the repository configuration files, after which you must install the Flash plugin separately.
+
== Flash plugin ==
  
To begin, refer to the Adobe site at http://get.adobe.com/flashplayer/.  Select ''YUM for Linux'' to download, and confirm. This will download the adobe-release-'''ARCH'''-1.0-1.noarch.rpm file. ('''ARCH''' refers to 'i386' for 32-bit, 'x86_64' for 64-bit.)
+
You have to chose either based on the hardware architecture you are using.
  
Simply opening the file should automatically run it with rpm and ask for authentication properly. Should it fail, run following command within the directory where you have downloaded the repository rpm file.
+
=== x86_64 (64-bit) ===
 
<pre>
 
<pre>
# For 32-bit users:
+
sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm -y
su -c 'rpm -ivh adobe-release-i386-1.0-1.noarch.rpm'
+
 
+
# For 64-bit users:
+
su -c 'rpm -ivh adobe-release-x86_64-1.0-1.noarch.rpm'
+
</pre>
+
 
+
The .rpm file also copies the adobe General Public Key (GPG key) to /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux but does not import it. To import the key, type:
+
<pre>
+
su -c 'rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux'
+
 
</pre>
 
</pre>
  
The system is now ready to fetch rpm packages from adobe using yum. To verify this, take a look at the /etc/yum.repos.d/adobe-linux-i386.repo file that was just created. You should see something similar to the following:
+
===  x86 (32-bit) ===
  
 
<pre>
 
<pre>
[adobe-linux-i386]
+
sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm -y
name=Adobe Systems Incorporated
+
baseurl=http://linuxdownload.adobe.com/linux/i386/
+
enabled=1
+
gpgcheck=1
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
+
 
</pre>
 
</pre>
  
Notice that the file contains the URL where the packages are located, whether or not the repository should be enabled, whether rpm should check downloaded packages from adobe against the GPG key, and the location of the key itself.
+
=== Install the Adobe Flash web browser plugin ===
  
(If getting the tar.gz version of either the 32-bit or 64-bit plugin, unpack it and copy it to /usr/lib/mozilla/plugins or /usr/lib64/mozilla/plugins. Make sure that its ownership is root:root and that permissions are set to -rwxr-xr-x. Also, as root, run either restorecon -v '/usr/lib/mozilla/plugins/libflashplayer.so' or restorecon -v '/usr/lib64/mozilla/plugins/libflashplayer.so', depending on whether you are using the 32- or 64-bit version. The 64-bit alpha is currently only available in a .tar.gz version.)
+
The first command imports the GPG key for the Adobe Flash plugin repository and the second command installs the plugin itself.
  
After completing the Adobe repository configuration, run the following command to install the Flash plugin and ensure sound is enabled:
 
 
<pre>
 
<pre>
su -c 'yum install nspluginwrapper alsa-plugins-pulseaudio flash-plugin'
+
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
 +
sudo yum install flash-plugin -y
 
</pre>
 
</pre>
 
You may see messages indicating that some of these packages are already installed. This is not a problem. (In particular, a default graphical install of 32-bit Fedora already includes both <code>nspluginwrapper</code> and <code>alsa-plugins-pulseaudio</code>.)
 
 
Next, you should exit all copies of '''Firefox''' and start it again to enable the plugin, and then [[#Checking_the_plugin | check the plugin]].
 
  
 
== Checking the plugin ==
 
== Checking the plugin ==
Line 77: Line 55:
 
Also check the [http://www.adobe.com/software/flash/about/ Adobe Flash Player test page]
 
Also check the [http://www.adobe.com/software/flash/about/ Adobe Flash Player test page]
  
== Installing the plugin on Chrome ==
+
== Installing the plugin on Chromium web browser ==
  
Follow all of the instructions above. Then:
+
Follow all of the instructions in the Enabling Flash Plugin section. Then:
  
- create a Chrome plugin folder:
+
- on 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:
<pre>
+
su -c 'mkdir /opt/google/chrome/plugins'
+
</pre>
+
  
- on 32-bit, create a symbolic link that tells Chrome how to find the 32-bit plugin:
 
 
<pre>
 
<pre>
su -c 'ln -s /usr/lib/mozilla/plugins/libflashplayer.so /opt/google/chrome/plugins/libflashplayer.so'
+
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/chromium-browser/plugins/libflashplayer.so
 
</pre>
 
</pre>
 
- on 64-bit, create a symbolic link that tells Chrome how to find the 64-bit plugin:
 
 
- run Mozilla Firefox once so that it creates /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so
 
<pre>
 
su -c 'ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /opt/google/chrome/plugins/nswrapper_32_64.libflashplayer.so'
 
</pre>
 
 
 
- Exit all Chrome windows and restart Chrome.
 
 
- In the Chrome address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chrome with the --enable-plugins command line switch to force Chrome to re-scan its plugins folder.
 
 
== Installing the plugin on Chromium ==
 
 
Follow all of the instructions in the Enabling Flash Plugin section. Then:
 
  
 
- on 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:
 
- on 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:
 
<pre>
 
<pre>
su -c 'ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so'
+
sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so
 
</pre>
 
</pre>
  
- on 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:
 
 
- run Mozilla Firefox once so that it creates /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so
 
<pre>
 
su -c 'ln -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /usr/lib64/chromium-browser/plugins/nswrapper_32_64.libflashplayer.so'
 
</pre>
 
  
 
- Exit all Chromium windows and restart Chromium.
 
- Exit all Chromium windows and restart Chromium.
Line 123: Line 75:
 
- In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.
 
- In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.
  
== Troubleshooting and notes ==
+
== Installing Gnash ==
  
=== SELinux problems ===
+
{{admon/note | Free alternatives to Adobe Flash | There is a free and open source alternative called [http://www.gnu.org/software/gnash/ Gnash] available in Fedora's software repositoriesGnash can play flash videos but the audio portion of flash is often under the MP3 format which is patent encumberedSince Gnash uses Gstreamer, you can get additional codecs from other third party repositories but Fedora unfortunately cannot include them. There is also another free and open source alternative called [http://sourceforge.net/apps/trac/lightspark Lightspark] }}
 
+
In some cases, <code>nspluginwrapper</code> produces SELinux AVC errors, some of which may prevent viewing Flash contentChanging the relevant SELinux boolean may resolve this problem, but eliminates a great deal of additional security when using <code>nspluginwrapper</code>To make the change, run the following command:
+
 
+
<pre>
+
su -c 'setsebool -P allow_unconfined_nsplugin_transition=0'
+
</pre>
+
 
+
=== After Fedora upgrade/preupgrade ===
+
+
To regenerate wrapper previously generated by nspluginwrapper you need to remove the old one:
+
<pre>su -c 'rm /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so'</pre>
+
 
+
Please, restart your browser after this.
+
 
+
== Installing Gnash ==
+
  
Fedora includes a free and open source Flash player called Gnash.  Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player.  You likely want the Mozilla plugin.
+
Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player.  You likely want the Mozilla plugin.
  
 
Use PackageKit or run the following as root user
 
Use PackageKit or run the following as root user
  
<pre>yum remove nspluginwrapper
+
<pre>sudo yum remove nspluginwrapper -y
yum install gnash-plugin</pre>
+
sudo yum install gnash-plugin -y</pre>
  
 
If you use Konqueror as your web browser,  
 
If you use Konqueror as your web browser,  
  
<pre> yum install gnash-klash </pre>
+
<pre> sudo yum install gnash-klash -y</pre>
  
 
If you would like to have a desktop flash player,  
 
If you would like to have a desktop flash player,  
  
<pre> yum install gnash </pre>
+
<pre> sudo yum install gnash -y</pre>
  
 
Note that Flash often relies on MP3 for audio and Fedora cannot include support for it since it is a patent encumbered format.  Gnash uses the Gstreamer multimedia framework and hence additional multimedia codecs can be installed separately.  [[Third party repositories]] might provide such codecs.
 
Note that Flash often relies on MP3 for audio and Fedora cannot include support for it since it is a patent encumbered format.  Gnash uses the Gstreamer multimedia framework and hence additional multimedia codecs can be installed separately.  [[Third party repositories]] might provide such codecs.

Revision as of 07:30, 15 May 2013

This page contains information on Flash, a proprietary format for delivering audio and video content, primarily over the Internet.

Contents

Flash is non-free/proprietary software

Adobe's Flash plugin cannot be included in Fedora because it is not free/libre and open source software. Adobe does release a version of the Flash plugin for Linux, and this can be used in Firefox, Konqueror and other popular Internet browsers. When Adobe releases a newer version of the Linux Flash plugin, it makes packages available for Fedora, but Fedora cannot include Adobe's plugin as long as it is unavailable as free and open source software.

There are other open alternatives to Flash itself, including the patent unencumbered and free WebM, Ogg Theora video and Ogg Vorbis audio formats. Fedora has complete support for such open formats, and Fedora includes several web browsers including Firefox, Epiphany etc that plays Ogg and WebM files directly, without any need of third party and proprietary browser plugins.

YouTube and WebM support

Google has open sourced an implementation of VP8 video format and combined it with Ogg Vorbis audio and an adaptation of the Matroska container, creating a new format for free and open video and audio called WebM. YouTube is switching over to using WebM extensively and Fedora has embraced this format as well. Current versions of Fedora support WebM by default.

To enable support for it in YouTube, go to http://youtube.com/html5 and click on "Join the HTML5 Beta" link in the bottom of that page. Note that all videos are not available in WebM format yet especially videos that include advertisements but majority of them should play just fine. Here is a sample video for testing.

Flash plugin

You have to chose either based on the hardware architecture you are using.

x86_64 (64-bit)

sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm -y

x86 (32-bit)

sudo yum install http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm -y

Install the Adobe Flash web browser plugin

The first command imports the GPG key for the Adobe Flash plugin repository and the second command installs the plugin itself.

sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
sudo yum install flash-plugin -y

Checking the plugin

Type the following text in the Firefox address bar:

about:plugins

A section similar to the following should appear:

Flash-check-2.png

This information tells you that the Adobe Flash plugin has been successfully installed.


Also check the Adobe Flash Player test page

Installing the plugin on Chromium web browser

Follow all of the instructions in the Enabling Flash Plugin section. Then:

- on 64-bit, create a symbolic link that tells Chromium how to find the 64-bit plugin:

sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/chromium-browser/plugins/libflashplayer.so

- on 32-bit, create a symbolic link that tells Chromium how to find the 32-bit plugin:

sudo ln -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so


- Exit all Chromium windows and restart Chromium.

- In the Chromium address bar, type "about:plugins" to check whether the plugin loaded. You may have to re-run Chromium with the --enable-plugins command line switch to force Chromium to re-scan its plugins folder.

Installing Gnash

Note.png
Free alternatives to Adobe Flash
There is a free and open source alternative called Gnash available in Fedora's software repositories. Gnash can play flash videos but the audio portion of flash is often under the MP3 format which is patent encumbered. Since Gnash uses Gstreamer, you can get additional codecs from other third party repositories but Fedora unfortunately cannot include them. There is also another free and open source alternative called Lightspark

Gnash is very modular and includes plugins for Mozilla and Konqueror as well as a desktop player. You likely want the Mozilla plugin.

Use PackageKit or run the following as root user

sudo yum remove nspluginwrapper -y
sudo yum install gnash-plugin -y

If you use Konqueror as your web browser,

 sudo yum install gnash-klash -y

If you would like to have a desktop flash player,

 sudo yum install gnash -y

Note that Flash often relies on MP3 for audio and Fedora cannot include support for it since it is a patent encumbered format. Gnash uses the Gstreamer multimedia framework and hence additional multimedia codecs can be installed separately. Third party repositories might provide such codecs.