LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trouble extracting and installing Adobe flash player (https://www.linuxquestions.org/questions/linux-newbie-8/trouble-extracting-and-installing-adobe-flash-player-785465/)

ash_zz_00 01-28-2010 05:41 PM

Trouble extracting and installing Adobe flash player
 
Hi,
I'm on Slackware 13.0.
I downloaded the tar file for Adobe flash player (install_flash_player_10_linux.tar.gz) to my /tmp.

But when I invoke "tar -xzvf install_flash_player_10_linux.tar.gz" all I get is a file libflashplayer.so in the same /tmp directory.

I was expecting a folder with the same name and more than the one file in it. What am I doing wrong?

Thanks in advance,

Ash.

gsker 01-28-2010 06:27 PM

From
http://www.basicconfig.com/install_a...lackware_linux

-- quote --
Update!

The new 'install_flash_player_10_linux.tar.gz' file contains only 'libflashplayer.so' file when you extract it. What you need to do is just copy the libflashplayer.so file to the /firefox/plugins directory (and other web browser as well). Here's the complete 'howto' steps:

1. Download 'install_flash_player_10_linux.tar.gz' from adobe website.
2. Extract it when the download is finished. The command is tar zxvf /path-to/install_flash_player_10_linux.tar.gz.
3. Copy 'libflashplayer.so' to /usr/lib/firefox-3.X.XX/plugins directory. Here is the command example: cp /path-to/libflashplayer.so /usr/lib/firefox-3.0.13/plugins.
4. Open Firefox web browser. Type about:plugins to verify flash player.

That's all.
-- end quote --

hope that helps.

GlennsPref 01-28-2010 06:28 PM

Hi, generally, I copy the .so file to my users plugins directory.

And then link it to where The other programs might look for it.

Code:

cd /usr/lib64/mozilla/plugins
# sudo wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
sudo tar xvf install_flash_player_10_linux.tar.gz
# rm install_flash_player_10_linux.tar.gz
ls
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /home/glenn/.mozilla/plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /root/.mozilla/plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib/netscape/plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/netscape/plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib/browser-plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/browser-plugins/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib64/flash-plugin/libflashplayer.so
sudo ln -s /usr/lib64/mozilla/plugins/libflashplayer.so /usr/lib/flash-plugin/libflashplayer.so

sudo ln -s /usr/lib/nspluginwrapper/x86_64/npconfig /usr/bin/nspluginwrapper

HTH, Glenn

GlennsPref 01-28-2010 06:34 PM

I also have an install script (bash) that came with one of the earlier packages.
~/bin/setup-flash.sh
Code:

#!/bin/bash
#/usr/lib/flash-plugin/setup
# These are the standard browser locations as found within Red Hat, Mandrake
# and SuSE Linux, and the tarball installers.
LOCATIONS="/usr/lib64/mozilla /usr/lib64/mozilla-* /usr/lib64/firefox-* /usr/lib64/seamonkey-* /usr/lib64/netscape /usr/lib64/opera /usr/lib64/firefox /usr/lib/mozilla /usr/lib/mozilla-* /usr/lib/firefox-* /usr/lib/seamonkey-* /usr/lib/netscape /usr/lib/opera /usr/lib/firefox /usr/local/netscape /usr/local/mozilla /usr/local/firefox /usr/local/seamonkey /opt/mozilla /opt/netscape /opt/firefox /opt/seamonkey"

deleteold() {
# Detect, Backup and Delete old global Flash plugins
# Old plugin files are saved in /root/oldflashplugins.tar.gz
# tar and gzip must be installed
if [ ! -f /root/oldflashplugins.tar.gz ]; then
    FILES="libflashplayer.so ShockwaveFlash.class flashplayer.xpt libgnashplugin.so"
    for DIR in $LOCATIONS
    do
        # Skip symlinks
        if [ -h $DIR ]; then continue; fi

        for F in $FILES
        do
            # Add old plugin files to backup and delete lists
            if [ -f $DIR/plugins/$F ]
            then
                BACKUPLIST="$BACKUPLIST $DIR/plugins/$F"
                DELETELIST="$DELETELIST $DIR/plugins/$F"
            fi
            # Add symbolic links to the delete list
            if [ -h $DIR/plugins/$F ]
            then
                DELETELIST="$DELETELIST $DIR/plugins/$F"
            fi
        done
    done

    # Backup and Delete files if delete list contains files.
    if [ "x$DELETELIST" != "x" ]
    then
        # If tar is available, backup files
        tar --version >& /dev/null
        if [ $? -eq 0 ]; then
            tar cfz /root/oldflashplugins.tar.gz $BACKUPLIST >& /dev/null
            rm -f $DELETELIST
            echo
            echo "NOTICE:"
            echo "Files belonging to older Flash plugins have been removed from the filesystem.  For your safety these files have been saved in /root/oldflashplugins.tar.gz.  You may remove this tarball if these files are no longer required."
        else
            echo
            echo "Error: tar is unavailable."
            echo "Unable to backup old Flash plugin files.  They were deleted in order to prevent conflicts."
        fi
    fi
fi


# Remove /etc/flash.license as it is not used anymore
[ -f /etc/flash.license ] && rm -f /etc/flash.license
}

detectbrowsers() {
# Detect Mozilla plugin compatible browsers
for DIR in $LOCATIONS
do
    # Skip symlinks
    if [ -h $DIR ]; then continue; fi
    if [ -d $DIR/plugins ]; then export LIST="$LIST $DIR"; fi
done
}

link() {
# Link Mozilla plugin compatible browsers
for DIR in $LIST
do
    ln -sf /usr/lib/flash-plugin/libflashplayer.so $DIR/plugins/libflashplayer.so
    ln -sf /usr/lib64/flash-plugin/libflashplayer.so $DIR/plugins/libflashplayer.so
done
}

deletelinks() {
# Delete symlinks
# Remove Mozilla plugin compatible browsers
for DIR in $LIST
do
    rm -f $DIR/plugins/libflashplayer.so
done
}

#=======================
# Main Section
#=======================
# Pre-Uninstall
if [ "$1" = "preun" ]; then
    detectbrowsers
    deletelinks
    exit 0
fi

# Installation
if [ "$1" = "install" ]; then
    deleteold
    detectbrowsers
    link
    exit 0
fi

# Upgrade
if [ "$1" = "upgrade" ]; then
    detectbrowsers
    link
    exit 0
fi

# Manual Setup

detectbrowsers
link

Regards Glenn

ash_zz_00 01-28-2010 06:59 PM

Thank you all. I got it to work.

manwichmakesameal 01-28-2010 09:33 PM

There is also a flashplayer package on the Slackware mirrors in the /extra directory.


All times are GMT -5. The time now is 07:31 AM.