Flash Plugin: Difference between revisions
From LFScript
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
pushd "${TEMP_DIR}" | pushd "${TEMP_DIR}" | ||
wget "${URL}" | |||
tar xf "${FILENAME}" | tar xf "${FILENAME}" | ||
Revision as of 14:15, 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