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 rootecho “Stopping any Firefox that might be running”
killall -9 firefoxecho “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/nspluginwrapperecho “Downloading Flash Player 10″
cd ~
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gzecho “Uncompressing Flash Player 10″
tar zxvf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gzecho “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.soecho “Downloading $FLASH_VER”
wget “$FLASH_LOC$FLASH_GZ”echo “Uncompressing $FLASH_VER”
tar zxvf $FLASH_GZecho “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 firefoxecho “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 guessingecho “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 itexit
rm $FLASH_GZecho “Done
”
echo “$FLASH_VER installed.”# “Launch Firefox and go to about:plugins”
firefox “about:plugins”### EOF ###




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