Difference between revisions of "Flash Plugin"
From LFScript
(Created page with "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. <scr...") |
|||
Line 1: | Line 1: | ||
+ | [[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. | 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. | ||
Line 27: | Line 28: | ||
pushd "${TEMP_DIR}" | pushd "${TEMP_DIR}" | ||
− | wget "${URL}" | + | /* -#/* -#wget "${URL}" |
+ | #- */#- */ | ||
tar xf "${FILENAME}" | tar xf "${FILENAME}" | ||
Line 35: | Line 37: | ||
popd | popd | ||
− | rm -rf "${TMP_DIR}" | + | rm -rf "${TMP_DIR}" |
echo "Done!" | echo "Done!" | ||
Line 43: | Line 45: | ||
EOF</build> | EOF</build> | ||
− | <build user="root">chmod 755 /usr/sbin/install-flash-plugin</build> | + | <build user="root">chmod 755 /usr/sbin/install-flash-plugin</build> |
== Usage == | == Usage == |
Revision as of 15:58, 14 June 2014
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.
LFScript can find this software under the name flash-plugin
.
Dependencies
- wget
You might also want to install firefox
...
Installation
As the root user:
cat > /usr/sbin/install-flash-plugin << "EOF" #!/bin/sh # This script downloads and installs Adobe Flash Player. set -e getFlashPlayer() { local ARCH="$(uname -m)" case $(uname -m) in i?86) local ARCH="i386" ;; esac local FILENAME="install_flash_player_11_linux.${ARCH}.tar.gz" local URL="http://fpdownload.macromedia.com/get/flashplayer/pdc/11.1.102.55/${FILENAME}" local TEMP_DIR="$(mktemp -d)" pushd "${TEMP_DIR}" /* -#/* -#wget "${URL}" #- */#- */ tar xf "${FILENAME}" cp -vR usr / mkdir -p /usr/lib/mozilla/plugins cp -v libflashplayer.so /usr/lib/mozilla/plugins popd rm -rf "${TMP_DIR}" echo "Done!" } getFlashPlayer EOF
As the root user:
chmod 755 /usr/sbin/install-flash-plugin
Usage
After you have booted your OS for the first time, run the following command as root to install the flash plugin:
install-flash-plugin