how to install flash player on mandriva shell script

January 3, 2010

Scripts

First script

# #!/bin/bash
# # Script created by
# # flashconf.com
# # Released under GPL
# # adapted from ubuntu for mandriva

# please stop all firefox before running
# run as root

echo “Stopping any Firefox that might be running”
killall -9 firefox

echo “Removing any other flash plugin previously installed:”
urpme flash-player-plugin gplflash libflashsupport gnash gnash-firefox-plugin gnash-konqueror-plugin swfdec-gnome swfdec-mozilla nspluginwrapper nspluginwrapper-i386
rm -f /usr/lib64/mozilla/plugins/*flash*
rm -f ~/.mozilla/plugins/*flash*
rm -f /usr/lib64/firefox/plugins/*flash*
rm -f /usr/lib64/firefox-addons/plugins/*flash*
rm -rfd /usr/lib64/nspluginwrapper

echo “Downloading Flash Player 10″
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz

echo “Uncompressing Flash Player 10″
tar zxvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz

echo “Installing Flash Player 10″
mv libflashplayer.so /usr/lib64/mozilla/plugins/

echo “Done :-)
echo “Lauch Firefox and go to about:plugins”

Second script and better one

Easily done, A 64 bit flash rpm would be really useful because of the two versions of ndiswrapper and the location of the plugin folders

# #!/bin/bash
# # Script created by
# # www.flashconf.com
# # Released under GPL
# #Adapted from ubuntu for mandriva
# # Further kludging by T.White

# DO NOT RUN AS ROOT
# Run from a folder in your home directory

# Set some variables
FLASH_VER=Flash Player 10 linux-x86_64 Alpha
FLASH_LOC=http://download.macromedia.com/pub/labs/flashplayer10/
FLASH_GZ=libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz
FLASH_LIB=libflashplayer.so

echo “Downloading $FLASH_VER”
wget “$FLASH_LOC$FLASH_GZ”

echo “Uncompressing $FLASH_VER”
tar zxvf $FLASH_GZ

echo “Please provide the root password so that filesystem and package operations can be performed”
su -

echo “Stopping any Firefox that might be running”
killall -9 firefox

echo “Removing any other flash plugin previously installed:”
urpme flash-player-plugin gplflash libflashsupport gnash gnash-firefox-plugin gnash-konqueror-plugin swfdec-gnome swfdec-mozilla nspluginwrapper nspluginwrapper-i386

# Not sure what the 32 bit official rpm from adobe
# is called but that needs to be urpme’d here too.

# I’m sure that the 64 bit nspluginwrapper should be urpmi’ed here
# So urpmi nspluginwrapper-x86_64 or whatever it’s called?

rm -f /usr/lib64/mozilla/plugins/*flash*
rm -f ~/.mozilla/plugins/*flash*
rm -f /usr/lib64/firefox/plugins/*flash*
rm -f /usr/lib64/firefox-addons/plugins/*flash*
rm -rfd /usr/lib64/nspluginwrapper

# There are also other directorys that the flash plugin could be installed
# a seach for libflashplayer.so & nspluginwrapper
# would be nice here and then removing, Instead of guessing

echo “Installing $FLASH_VER”
mv $FLASH_LIB /usr/lib64/mozilla/plugins/
# There should also be some soft links created here instead
# And I think that the flash plugin should be installed in
# /usr/lib64/flash-plugin/libflashplayer.so or /usr/lib/flash-plugin/libflashplayer.so
# So that /usr/lib64/mozilla/plugins/libflashplayer.so
# Is a soft link (using ln -s)
# That way, Apps such as Opera can find it

exit
rm $FLASH_GZ

echo “Done :-)
echo “$FLASH_VER installed.”

# “Launch Firefox and go to about:plugins”
firefox “about:plugins”

### EOF ###

, , , ,

Trackbacks/Pingbacks

  1. how to install flash player on mandriva shell script | Flash … | Just linux! - January 3, 2010

    [...] Read the rest here:  how to install flash player on mandriva shell script | Flash … [...]

  2. how to install flash player on mandriva shell script | Flash … Scripts Rss - January 4, 2010

    [...] original post here:  how to install flash player on mandriva shell script | Flash … By admin | category: video script | tags: flash, flash-animation, flash-design, [...]

Leave a Reply