Page 1 of 1

3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 00:49
by Ed_P
Not sure where the problem lies but with;

3.2.2 Cinnamon 64-bit and
firefox-50.1.0-x86_64-1.xzm and
flashplayer-plugin-24.0.0.186-x86_64-2alien.xzm

http://www.adobe.com/software/flash/about/ says the flashplayer plugin is missing.

The firefox module is the one I used with 3.2.1 and the flashplayer module I downloaded with USM today.

Each time I tried this I shutdown firefox, downloaded the flashplayer with USM, moved it to my Modules folder, activated it and restarted firefox.

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 01:20
by Ed_P
hmmmm I knew this sounded familiar.

http://forum.porteus.org/viewtopic.php? ... 660#p50660

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 04:24
by Ed_P
Deleting the .wh files didn't solve the problem and there is no flashplayer module on the server and no update-flash script in 3.2.2. ___ #%@&*

:wall:

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 06:27
by Ed_P
I ran this in AF mode.

Code: Select all

#!/bin/sh

# Color definitions
txtbld=$(tput bold)               # Bold
txtred=${txtbld}$(tput setaf 1)   # Red
rst=$(tput sgr0)                  # Reset

function redpswd() {
echo -e "$1" $txtred  
}

if [ `whoami` != "root" ]; then
    redpswd "Enter root's password"
    su -c "sh $0 $1"
    exit
fi
echo $rst

RMs() {
  echo   ls $WHERE/.wh*
  ls $WHERE/.wh*
  echo

    rm $WHERE/usr/lib/.wh.kde4
    rm $WHERE/usr/lib/.wh.mozilla
    rm $WHERE/usr/lib64/.wh.kde4
    rm $WHERE/usr/lib64/.wh.mozilla
    rm $WHERE/usr/bin/.wh.flash-player-properties
    rm $WHERE/var/log/scripts/.wh.flashplayer-plugin-23.0.0.???-x86_64-1
    rm $WHERE/var/log/packages/.wh.flashplayer-plugin-23.0.0.???-x86_64-1
    rm $WHERE/var/log/scripts/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1
    rm $WHERE/var/log/packages/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1
    rm $WHERE/usr/share/.wh.kde4
    rm $WHERE/usr/share/icons/hicolor/??x??/apps/.wh.flash-player-properties.png
    rm $WHERE/usr/share/pixmaps/.wh.flash-player-properties.png

  echo
}

set +x;

WHERE=/mnt/live/memory/images/changes
  RMs

WHERE=/mnt/live/memory/changes
  RMs

WHERE=/mnt/loop
mloop /mnt/sda5/porteus3.2/changes/porteussave.dat
if [ -d ${WHERE}/home ]; then 
  RMs
  uloop
else
  echo " ** save.dat file did not mount. **"
  echo 
fi

exit
Which resulted in this.

Code: Select all

guest@porteus:~$ sh /mnt/sda5/porteus3.2/Guest/flashfix.sh
Enter root's password 
Password: 

ls /mnt/live/memory/images/changes/.wh*
ls: cannot access '/mnt/live/memory/images/changes/.wh*': No such file or directory

rm: cannot remove '/mnt/live/memory/images/changes/usr/lib/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/lib/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/lib64/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/lib64/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/bin/.wh.flash-player-properties': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/var/log/scripts/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/var/log/packages/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/var/log/scripts/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/var/log/packages/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/share/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/share/icons/hicolor/??x??/apps/.wh.flash-player-properties.png': No such file or directory
rm: cannot remove '/mnt/live/memory/images/changes/usr/share/pixmaps/.wh.flash-player-properties.png': No such file or directory

ls /mnt/live/memory/changes/.wh..wh.aufs /mnt/live/memory/changes/.wh..wh.orph /mnt/live/memory/changes/.wh..wh.plnk
/mnt/live/memory/changes/.wh..wh.aufs

/mnt/live/memory/changes/.wh..wh.orph:

/mnt/live/memory/changes/.wh..wh.plnk:

rm: cannot remove '/mnt/live/memory/changes/usr/lib/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/lib/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/lib64/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/lib64/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/bin/.wh.flash-player-properties': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/var/log/scripts/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/var/log/packages/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/var/log/scripts/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/var/log/packages/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/share/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/share/icons/hicolor/??x??/apps/.wh.flash-player-properties.png': No such file or directory
rm: cannot remove '/mnt/live/memory/changes/usr/share/pixmaps/.wh.flash-player-properties.png': No such file or directory

using /dev/loop4

Please wait while i gather some info ....



 #################################
 Your data file has been mounted at: 
/mnt/loop

You can unmount it by typing uloop

Here is a list of the files:
dev  etc  home	lib  mnt  opt  root  tmp  usr  var

ls /mnt/loop/.wh..wh.aufs /mnt/loop/.wh..wh.orph /mnt/loop/.wh..wh.plnk
/mnt/loop/.wh..wh.aufs

/mnt/loop/.wh..wh.orph:

/mnt/loop/.wh..wh.plnk:

rm: cannot remove '/mnt/loop/usr/lib/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/loop/usr/lib/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/loop/usr/lib64/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/loop/usr/lib64/.wh.mozilla': No such file or directory
rm: cannot remove '/mnt/loop/usr/bin/.wh.flash-player-properties': No such file or directory
rm: cannot remove '/mnt/loop/var/log/scripts/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/loop/var/log/packages/.wh.flashplayer-plugin-23.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/loop/var/log/scripts/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/loop/var/log/packages/.wh.flashplayer-plugin-2?.0.0.???-x86_64-1': No such file or directory
rm: cannot remove '/mnt/loop/usr/share/.wh.kde4': No such file or directory
rm: cannot remove '/mnt/loop/usr/share/icons/hicolor/??x??/apps/.wh.flash-player-properties.png': No such file or directory
rm: cannot remove '/mnt/loop/usr/share/pixmaps/.wh.flash-player-properties.png': No such file or directory


/mnt/loop has been unmounted

guest@porteus:~$ 
Rebooted Porteus-CINNAMON-v3.2.2-x86_64.iso with changes=EXIT:/porteus3.2/changes/porteussave.dat, started firefox, still no flash plugin. :wall:

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 07:36
by ncmprhnsbl
yeah, this is the old lib > lib64 issue
the fix is create a symlink in /usr/lib/mozilla to /usr/lib64/mozilla
and now firefox finds flash-plugin

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 11:24
by Bogomips
ncmprhnsbl wrote:yeah, this is the old lib > lib64 issue
the fix is create a symlink in /usr/lib/mozilla to /usr/lib64/mozilla
and now firefox finds flash-plugin
Trouble is flashplater from modules placed into /usr/lib/mozilla (suppose also update-flash) , resulting in symlink being overlaid, and so all lib64 modules lost to browser. :( Workaround (AF mode) in guiexec:

Code: Select all

[[ -d .mozilla ]] || mkdir .mozilla
ln -s /usr/lib64/mozilla/plugins/ .mozilla/

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 13:28
by brokenman
Just so you know, the update-flash and update-pepperflash were removed from the update scripts. They constantly change and require script modification and are not really needed. USM can grab them and pepperflash installs itself.

If you can give me the code to push to update-firefox I will include it in the update-firefox script. Thanks.

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 13:52
by ncmprhnsbl
um.. to me this is very simple,
flashplayer-plugin from usm/alien has its plugin.so in /usr/lib64/mozilla, there is no /usr/lib anything>>> no symlinks overwritten..
for whatever reason firefox(from update-firefox) looks for its addons in /usr/lib/mozilla..
i suppose this symlink could be added to firefox module via the update-firefox script

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 16:23
by Ed_P
ncmprhnsbl wrote:yeah, this is the old lib > lib64 issue
the fix is create a symlink in /usr/lib/mozilla to /usr/lib64/mozilla
and now firefox finds flash-plugin
That sounds so familiar but I find nothing in my notes/scripts to do that.

So do I

Code: Select all

cd  /usr/lib/mozilla 
ln -s /usr/lib64/mozilla/plugins/ .mozilla/
?

Or can I just execute

Code: Select all

ln -s /usr/lib64/mozilla/plugins/  /usr/lib/mozilla
from anywhere?
Do I need to be root to do this?

I'll be back, I have to go dry behind my ears. :oops:


-update-

Code: Select all

guest@porteus:~$ ls /usr/lib64/mozilla/plugins/ 
libflashplayer.so*
guest@porteus:~$ ls /usr/lib/mozilla
/bin/ls: cannot access '/usr/lib/mozilla': No such file or directory
guest@porteus:~$ 
:x

Code: Select all

guest@porteus:~$ ls .mozilla
extensions/  firefox/
guest@porteus:~$ 
:unknown:

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 21:12
by ncmprhnsbl
i used a (root) filemanager> create new link :wink:
but this should work(as root, from anywhere):

Code: Select all

ln -s /usr/lib64/mozilla  /usr/lib/mozilla
to make it permanant(if not using changes)
i extracted flash-plugin module,
made a /usr/lib directory in it,
copied the mozilla symlink to it
then rebuilt the module
as a rule, anything done outside of /home/guest should be done as root (excluding external partitions, which may or may not be)

Re: 3.2.2 / firefox / flashplayer

Posted: 31 Dec 2016, 23:36
by Ed_P
Bogomips wrote:Workaround (AF mode) in guiexec:

Code: Select all

[[ -d .mozilla ]] || mkdir .mozilla
ln -s /usr/lib64/mozilla/plugins/ .mozilla/

Actually ran these commands in normal mode and the flashplayer now works in Firefox. :good:

And the symlink carries thru the changes=EXIT reboot!! :shock:

:Yahoo!:

Thank you guys for your time, your efforts, your patience. :beer:

Re: 3.2.2 / firefox / flashplayer

Posted: 01 Jan 2017, 00:58
by Ed_P
brokenman wrote:Just so you know, the update-flash and update-pepperflash were removed from the update scripts. They constantly change and require script modification and are not really needed.
brokenman, I'm not sure what your update-flash script did but I have/had one that I found didn't need to be changed much at all. The script is posted in http://forum.porteus.org/viewtopic.php? ... 782#p39782 and yes I use to change the FPVERSION for each download. Then I found if the FPVERSION was set to 999 I always got the current version regardless of the number.

With Adobe combining the Linux non-Linux modules into one I had to change the script a bit but I think it will always produce the most current module just like before, without tweaking each update.

Attached for your review.

Code: Select all

#!/bin/sh
# http://forum.porteus.org/viewtopic.php?f=53&t=4840&p=35284#p35280
# http://forum.porteus.org/viewtopic.php?f=81&t=5283&p=39782#p39782

BOOTDEV=`grep -A1 "Booting" /var/log/porteus-livedbg|tail -n1|sed 's^//^/^g'`
VERSION=$(cat /etc/porteus-version)
FOLDER=/porteus${VERSION:9:3} 
if [ ${BOOTDEV:7:1} != a ]; then
   FOLDER=""
fi
GUEST="$BOOTDEV$FOLDER/Guest"
MODULES="$BOOTDEV$FOLDER/Modules"

FPVERSION=999
if [ ! "$1" == "" ]; then
   FPVERSION=$1
fi

if [ `whoami` != "root" ]; then
   echo
   echo "Module unavailable via USM?"
   echo -en "Press Enter to download vrsn $FPVERSION, Ctrl+C to end.\n"
   read answer
fi

ALIEN=http://www.slackware.com/~alien/slackbuilds/flashplayer-plugin/build
ARCH=i386
if [ `echo $MACHTYPE | sed -e 's/-.*$//'` = x86_64 ]; then
   ARCH=x86_64
fi
if [ `whoami` != "root" ]; then
   ktsuss "$0 $1"
   exit
fi

if [ -d  "/home/guest/Downloads/flashplayer-plugin/" ]; then
   rm /home/guest/Downloads/flashplayer-plugin/*
fi
wget $ALIEN/flashplayer-plugin.SlackBuild                           -P /home/guest/Downloads/flashplayer-plugin
#wget $ALIEN/install_flash_player_11.2.202.$FPVERSION_linux_$ARCH.gz -P /home/guest/Downloads/flashplayer-plugin
wget $ALIEN/install_flash_player_29.9.9.999_$ARCH.gz                -P /home/guest/Downloads/flashplayer-plugin
wget $ALIEN/slack-desc                                              -P /home/guest/Downloads/flashplayer-plugin

cd   /home/guest/Downloads/flashplayer-plugin

chmod +x flashplayer-plugin.SlackBuild
./flashplayer-plugin.SlackBuild

txz2xzm /tmp/*.txz

if [ -f  $MODULES/flashplayer-plugin-*.xzm ]; then
#   rm -f $MODULES/flashplayer-plugin-*.xzm
   mv $MODULES/flashplayer-plugin-*.xzm $MODULES/flashplayer-plugin-*.xyzm
fi
cp /tmp/*.xzm $MODULES/

echo
echo Done 
echo
ls -sh $MODULES/flash*.*
echo
read

I only used the script when USM failed to download the current one with a LIB.TXT missing error like it did earlier this week.

Happy New Year Jay. :beer:

Ed