Add Flash Player. Fixes #9019.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18509 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
DJ Lucas 2017-03-19 09:02:00 +00:00
parent 32bc8e4c4a
commit 1c578c1408
4 changed files with 275 additions and 56 deletions

View File

@ -44,6 +44,11 @@
<listitem>
<para>March 19th, 2017</para>
<itemizedlist>
<listitem>
<para>[dj] - Add Flash Player 25.0.0.127 and move instrucionts for
Chromium Flash Player installation. Fixes
<ulink url="&blfs-ticket-root;9019">#9019</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to btrfs-progs-v4.10.1. Fixes
<ulink url="&blfs-ticket-root;9016">#9016</ulink>.</para>

View File

@ -0,0 +1,234 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY flashplayer-npapi-download-http "https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_ppapi_linux.x86_64.tar.gz">
<!ENTITY flashplayer-npapi-md5sum "dd8a19ea0aaa0e532d5c72f4309a67ae">
<!ENTITY flashplayer-npapi-size "8.6 MB">
<!ENTITY flashplayer-npapi32-download-http "https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_npapi_linux.i386.tar.gz">
<!ENTITY flashplayer-npapi32-md5sum "90f020bbee838657ee8ef5ff93557380">
<!ENTITY flashplayer-npapi32-size "8.1 MB">
<!ENTITY flashplayer-ppapi-download-http "https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_npapi_linux.x86_64.tar.gz">
<!ENTITY flashplayer-ppapi-md5sum "623b0453d8854b575e7d5848629d4152">
<!ENTITY flashplayer-ppapi-size "9 MB">
<!ENTITY flashplayer-ppapi32-download-http "https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_ppapi_linux.i386.tar.gz">
<!ENTITY flashplayer-ppapi32-md5sum "4f458f96a25d58d3461f988782d91f7c">
<!ENTITY flashplayer-ppapi32-size "8.1 MB">
<!ENTITY chromium-launcher-download-http "https://github.com/foutrelis/chromium-launcher/archive/v3.tar.gz">
<!ENTITY chromium-launcher-md5sum "bf6c9291237e4090d348ea126d26a9ec">
<!ENTITY chromium-launcher-size "8 KB">
]>
<sect1 id="flashplayer" xreflabel="Flash Player-&flashplayer-version;">
<?dbhtml filename="flashplayer.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>Flash Player-&flashplayer-version;</title>
<indexterm zone="flashplayer">
<primary sortas="a-Flash Player">Flash Player</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Flash Player</title>
<para><application>Flash Player</application> is a multi-platform client
runtime to view and interact with SWF content, distributed as a browser
plugin for both NPAPI (Gecko) and PPAPI (Blink) based browsers.</para>
&lfs80_checked;
<bridgehead renderas="sect3">Downlaods</bridgehead>
<bridgehead renderas="sect4">NPAPI plugin for Gecko (Mozilla and WebKit) 64-bit</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&flashplayer-npapi-download-http;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &flashplayer-npapi-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &flashplayer-npapi-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">NPAPI plugin for Gecko (Mozilla and WebKit) 32-bit</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&flashplayer-npapi32-download-http;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &flashplayer-npapi32-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &flashplayer-npapi32-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">PPAPI plugin for Blink (QTWebEngine and Chromium) 64-bit</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&flashplayer-ppapi-download-http;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &flashplayer-ppapi-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &flashplayer-ppapi-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">PPAPI plugin for Blink (QTWebEngine and Chromium) 32-bit</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&flashplayer-ppapi32-download-http;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &flashplayer-ppapi32-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &flashplayer-ppapi32-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Chromium Launcher (required for Chromium)</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&chromium-launcher-download-http;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &chromium-launcher-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &chromium-launcher-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Flash Player Dependencies (NPAPI)</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="cairo"/>,
<xref linkend="curl"/>,
<xref linkend="graphite2"/>,
<xref linkend="gtk2"/>,
<xref linkend="libffi"/>,
<xref linkend="pcre"/>,
<xref linkend="mesa"/>, and
<xref linkend="nss"/>,
</para>
<bridgehead renderas="sect4">Optional (runtime)</bridgehead>
<para role="optional">
<xref linkend="epiphany"/>,
<xref linkend="firefox"/>,
<xref linkend="libreoffice"/>,
<xref linkend="midori"/>,
<xref linkend="seamonkey"/>, and
<xref linkend="thunderbird"/>
</para>
<bridgehead renderas="sect3">Flash Player Dependencies (PPAPI)</bridgehead>
<bridgehead renderas="sect4">Optional (runtime)</bridgehead>
<para role="optional">
<xref linkend="chromium"/> (required if installing <application>Chromium
Launcher</application>) or
<xref linkend="qupzilla"/>
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/flashplayer"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Flash Player</title>
<bridgehead renderas="sect3">NPAPI Plug-in Installation (Mozilla and WebKit)</bridgehead>
<para>Install the <application>Flash Player</application> NPAPI plugin by
running the following commands:</para>
<screen><userinput>mkdir flashplayer &amp;&amp;
cd flashplayer &amp;&amp;
case $(uname -m) in
x86_64) tar -xf ../flash_player_npapi_linux.x86_64.tar.gz
;;
x86) tar -xf ../flash_player_npapi_linux.i386.tar.gz
;;
esac</userinput></screen>
<para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>install -vDm755 libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so</userinput></screen>
<bridgehead renderas="sect3">PPAPI Plug-in Installation (QTWebEngine and Chromium)</bridgehead>
<para>Install the <application>Flash Player</application> PPAPI plugin by
running the following commands:</para>
<screen><userinput>mkdir flashplayer &amp;&amp;
cd flashplayer &amp;&amp;
case $(uname -m in
x86_64) tar -xf ../flash_player_ppapi_linux.x86_64.tar.gz
;;
x86) tar -xf ../flash_player_ppapi_linux.i386.tar.gz
;;
esac</userinput></screen>
<para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>install -vDm755 libpepflashplayer.so /usr/lib/PepperFlash/libpepflashplayer.so</userinput></screen>
<bridgehead renderas="sect3">Chromium Lanucher Installation</bridgehead>
<para><application>Chromium Lanucher</application> is a wrapper for
<application>Chromium</application> that adds the PeppperFlash installation
path and plug-in flags to the <application>Chromium</application> command
line if the PPAPI plugin is found at runtime. Install <application>Chromium
Launcher</application> with the following commands:</para>
<screen><userinput>tar -xf chromium-launcher-3.tar.gz &amp;&amp;
cd chromium-launcher-3 &amp;&amp;
make PREFIX=/usr</userinput></screen>
<para>Now, as the <systemitem class="username">root</systemitem>
user:</para>
<screen role="root"><userinput>mv -v /usr/bin/chromium /usr/bin/chromium-orig &amp;&amp;
make PREFIX=/usr install-strip</userinput></screen>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>/usr/bin/chromium</seg>
<seg>/usr/lib/mozilla/plugins/libflashplayer.so and/or
/usr/lib/PepperFlash/libpepflashplayer.so</seg>
<seg>/usr/lib/PepperFlash</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>

View File

@ -33,6 +33,7 @@ $Date$
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="faad2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="fdk-aac.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flac.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flashplayer.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="frei0r.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gavl.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gstreamer10.xml"/>

View File

@ -60,38 +60,45 @@
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<note><para>Download this file via wget as:</para>
<screen><userinput>wget --content-disposition \
https://github.com/foutrelis/chromium-launcher/archive/v3.tar.gz</userinput></screen>
</note>
<bridgehead renderas="sect4">Recommended patch to use the system
<application>FFmpeg</application>:</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Optional launcher (to use the Flash Player PPAPI plugin):
<ulink url="https://github.com/foutrelis/chromium-launcher/archive/v3.tar.gz"/>
</para>
</listitem>
<listitem>
<para>
Patch to use the system installed <application>FFmpeg</application>:
<ulink url="&patch-root;/chromium-&chromium-version;-system_ffmpeg-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Optional Chrome binaries to extract the
<application>WideVine</application> plug-in (Netflix) support:</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP):</para>
<para>
Optional Chrome distribution (to copy widevine plugin):
<ulink url="http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_&chromium-version;-1_amd64.deb"/> or
<ulink url="http://mirror.retrosnub.co.uk/apt/google/pool/main/g/google-chrome-stable/google-chrome-stable_48.0.2564.116-1_i386.deb"/>
(i386 is no longer officially supported)
<ulink url="http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_&chromium-version;-1_amd64.deb"/>
</para>
</listitem>
<listitem>
<para>Download MD5 sum: ba137093ddd19e643988e66d5821eb3d</para>
</listitem>
<listitem>
<para>Download size: 45 MB</para>
</listitem>
</itemizedlist>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP):</para>
<para>
Optional Flash Player plugin:
<ulink url="https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_ppapi_linux.x86_64.tar.gz"/> or
<ulink url="https://fpdownload.adobe.com/pub/flashplayer/pdc/&flashplayer-version;/flash_player_ppapi_linux.i386.tar.gz"/>
<ulink url="http://mirror.retrosnub.co.uk/apt/google/pool/main/g/google-chrome-stable/google-chrome-stable_48.0.2564.116-1_i386.deb"/>
</para>
</listitem>
<listitem>
<para>Download MD5 sum: 895e877b9bfe5da05a061369c2078626</para>
</listitem>
<listitem>
<para>Download size: 45 MB</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Chromium Dependencies</bridgehead>
@ -317,53 +324,26 @@ Categories=GTK;Network;WebBrowser;
MimeType=application/xhtml+xml;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
EOF</userinput></screen>
<bridgehead renderas="sect3">Chromium Launcher</bridgehead>
<para><application>Chromium Launcher</application> is a wrapper for
<application>chromium</application> that allows use of the Pepper Flash
plugin. If you intend to use the <application>Pepper Flash</application>
plugin, build <application>Chromium Launcher</application> by running the
following commands:</para>
<screen><userinput>tar -xf ../chromium-launcher-3.tar.gz &amp;&amp;
cd chromium-launcher-3 &amp;&amp;
make PREFIX=/usr</userinput></screen>
<para>Install Chromium Launcher with the following commands (as the
<systemitem class="username">root</systemitem> user):</para>
<screen role="root"><userinput>rm -f /usr/bin/chromium &amp;&amp;
make PREFIX=/usr install-strip &amp;&amp;
cd ..</userinput></screen>
<bridgehead renderas="sect3">Extracting the WideVine plugin from Chrome</bridgehead>
<para>Extract the downloaded deb file with the following commands:</para>
<screen><userinput>mkdir temp &amp;&amp;
cd temp &amp;&amp;
ar -x ../../google-chrome-stable_&chromium-version;*.deb &amp;&amp;
tar -xf data.tar.xz</userinput></screen>
case $(uname -m) in
x86_64) ar -x ../../google-chrome-stable_&chromium-version;-1_amd64.deb
;;
x86) ar -x ../../google-chrome-stable_48.0.2564.116-1_i386.deb
;;
esac</userinput></screen>
<para>As the <systemitem class="username">root</systemitem> user, install
the WideVine plugin with the following command:</para>
<screen role="root"><userinput>install -vm755 opt/google/chrome/libwidevinecdm.so \
<screen role="root"><userinput>tar -xf data.tar.xz
install -vm755 opt/google/chrome/libwidevinecdm.so \
/usr/lib/chromium/</userinput></screen>
<bridgehead renderas="sect3">Installing the Pepper Flash plugin:</bridgehead>
<para>Extract the <application>Flash Player</application> plugin with the
following command:</para>
<screen><userinput>tar -xf ../../flash_player_ppapi_linux.*.tar.gz</userinput></screen>
<para>As the <systemitem class="username">root</systemitem> user, install
the Pepper Flash plugin with the following command:</para>
<screen role="root"><userinput>install -vdm755 /usr/lib/PepperFlash &amp;&amp;
install -vm755 libpepflashplayer.so /usr/lib/PepperFlash &amp;&amp;
install -vm644 manifest.json /usr/lib/PepperFlash</userinput></screen>
</sect2>
<sect2 role="commands">
@ -396,12 +376,11 @@ install -vm644 manifest.json /usr/lib/PepperFlash</userinput></screen>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>/usr/bin/chromium, /usr/lib/chromium/chromium,
<seg>/usr/lib/chromium/chromium,
/usr/lib/chromium/chromedriver, and
/usr/lib/chromium/chrome-sandbox</seg>
<seg>none</seg>
<seg>/usr/lib/chromium, /usr/lib/chromium-launcher,
and (optionally) /usr/lib/PepperFlash</seg>
<seg>/usr/lib/chromium</seg>
</seglistitem>
</segmentedlist>