Skip to content

Instantly share code, notes, and snippets.

@IBwWG
Created January 31, 2017 19:54
Show Gist options
  • Save IBwWG/c6cf52c68ccd73c8cc48374da009e29d to your computer and use it in GitHub Desktop.
Save IBwWG/c6cf52c68ccd73c8cc48374da009e29d to your computer and use it in GitHub Desktop.
#!/bin/sh
echo ""
echo "-----------------------------------"
echo " Installing Flash Debugger"
echo "-----------------------------------"
wget -c https://fpdownload.macromedia.com/pub/labs/flashruntimes/flashplayer/linux64/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
# Copying to /usr/lib
sudo mkdir -p /usr/lib/flashplayer
sudo mv flashplayerdebugger /usr/lib/flashplayer/flashplayerdebugger
# 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
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