Flash Plugin: Difference between revisions

From LFScript
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripts]]
[[Category:Scripts]]
Adobe's Flash Player is closed source software. If you run the commands on this page, only a script is installed which facilitates the installation of the actual plugin.
Flash plugin for firefox.


<scriptname>flash-plugin</scriptname>
<scriptname>flash-plugin</scriptname>


== Dependencies ==
== Sources ==
* <dependency>wget</dependency>
* <sourcecode>https://fpdownload.adobe.com/pub/flashplayer/pdc/25.0.0.127/flash_player_npapi_linux.i386.tar.gz</sourcecode> (for 32-bit systems)
* <sourcecode>https://fpdownload.adobe.com/pub/flashplayer/pdc/25.0.0.127/flash_player_npapi_linux.x86_64.tar.gz</sourcecode> (for 64-bit systems)


You might also want to install <code>firefox</code>...
<md5>90f020bbee838657ee8ef5ff93557380  flash_player_npapi_linux.i386.tar.gz
dd8a19ea0aaa0e532d5c72f4309a67ae  flash_player_npapi_linux.x86_64.tar.gz</md5>


== Installation ==
== Installation ==
<build user="root">ARCH="x86_64"
case `uname -m` in
  i?86)
    ARCH="i386"
    ;;
esac


<build user="root">cat > /usr/sbin/install-flash-plugin << "EOF"
mkdir flash
#!/bin/sh
pushd flash
# This script downloads and installs Adobe Flash Player.
tar -xf ../../flash_player_npapi_linux.*${ARCH}.tar.gz
set -e


getFlashPlayer() {
cp -vR usr /
    local ARCH="$(uname -m)"
mkdir -p /usr/lib/mozilla/plugins
    case $(uname -m) in
cp -v libflashplayer.so /usr/lib/mozilla/plugins
        i?86) local ARCH="i386" ;;
    esac


    local FILENAME="install_flash_player_11_linux.${ARCH}.tar.gz"
popd</build>
    local URL="http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/${FILENAME}"
 
    local TEMP_DIR="$(mktemp -d)"
    pushd "${TEMP_DIR}"
 
    wget&nbsp;"${URL}"
    tar xf "${FILENAME}"
 
    cp -vR usr /
    mkdir -p /usr/lib/mozilla/plugins
    cp -v libflashplayer.so /usr/lib/mozilla/plugins
 
    popd
    rm&nbsp;-rf "${TMP_DIR}"
 
    echo "Done!"
}
 
getFlashPlayer
EOF</build>
 
<build user="root">chmod&nbsp;755 /usr/sbin/install-flash-plugin</build>
 
== Usage ==
After you have booted your OS for the first time, run the following command as '''root''' to install the flash plugin:
 
<pre>install-flash-plugin</pre>

Revision as of 21:16, 16 March 2017

Flash plugin for firefox.

LFScript can find this software under the name flash-plugin.

Sources


MD5 Checksums:

90f020bbee838657ee8ef5ff93557380  flash_player_npapi_linux.i386.tar.gz
dd8a19ea0aaa0e532d5c72f4309a67ae  flash_player_npapi_linux.x86_64.tar.gz

Installation

As the root user:

ARCH="x86_64"
case `uname -m` in
  i?86)
    ARCH="i386"
    ;;
esac

mkdir flash
pushd flash
tar -xf ../../flash_player_npapi_linux.*${ARCH}.tar.gz

cp -vR usr /
mkdir -p /usr/lib/mozilla/plugins
cp -v libflashplayer.so /usr/lib/mozilla/plugins

popd