Skip to content

Instantly share code, notes, and snippets.

@jgranick
Created March 2, 2019 00:25
Show Gist options
  • Save jgranick/3c351630016dd68baedbbe4b0a5e742e to your computer and use it in GitHub Desktop.
Save jgranick/3c351630016dd68baedbbe4b0a5e742e to your computer and use it in GitHub Desktop.
Flash Player install script for Linux
#!/bin/sh
echo ""
echo "-----------------------------------"
echo " Installing Flash Debugger"
echo "-----------------------------------"
sudo echo ""
wget -c https://fpdownload.macromedia.com/pub/flashplayer/updaters/32/flash_player_sa_linux_debug.x86_64.tar.gz
tar xvzf flash_player_sa_linux_debug.x86_64.tar.gz
rm flash_player_sa_linux_debug.x86_64.tar.gz
wget -c https://helpx.adobe.com/content/dam/help/mnemonics/flashplayer_app_RGB.svg
# Copying to /usr/lib
sudo mkdir -p /usr/lib/flashplayer
sudo mv flashplayerdebugger /usr/lib/flashplayer/flashplayerdebugger
sudo mv flashplayer_app_RGB.svg /usr/lib/flashplayer/icon.svg
# Adding symlinks
sudo rm -rf /usr/bin/flashplayerdebugger
sudo ln -s /usr/lib/flashplayer/flashplayerdebugger /usr/bin/flashplayerdebugger
# Creating a *.desktop entry
echo "[Desktop Entry]
Name=Flash Player Debugger
Exec=/usr/lib/flashplayer/flashplayerdebugger %U
Icon=/usr/lib/flashplayer/icon.svg
MimeType=application/swf-flash;application/x-shockwave-flash;
Terminal=false
Type=Application
Categories=GTK;GNOME;AudioVideo;Player;Video;" > flashplayerdebugger.desktop
sudo mv flashplayerdebugger.desktop /usr/share/applications/flashplayerdebugger.desktop
sudo update-desktop-database
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment