3.2.2 / firefox / flashplayer

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

3.2.2 / firefox / flashplayer

Post#1 by Ed_P » 31 Dec 2016, 00:49

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.
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#2 by Ed_P » 31 Dec 2016, 01:20

hmmmm I knew this sounded familiar.

viewtopic.php?f=117&t=6404&p=50660#p50660
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#3 by Ed_P » 31 Dec 2016, 04:24

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:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#4 by Ed_P » 31 Dec 2016, 06:27

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:
Ed

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 793
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: 3.2.2 / firefox / flashplayer

Post#5 by ncmprhnsbl » 31 Dec 2016, 07:36

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
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: 3.2.2 / firefox / flashplayer

Post#6 by Bogomips » 31 Dec 2016, 11:24

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/
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5439
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: 3.2.2 / firefox / flashplayer

Post#7 by brokenman » 31 Dec 2016, 13:28

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 793
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: 3.2.2 / firefox / flashplayer

Post#8 by ncmprhnsbl » 31 Dec 2016, 13:52

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
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#9 by Ed_P » 31 Dec 2016, 16:23

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:
Ed

User avatar
ncmprhnsbl
Full of knowledge
Full of knowledge
Posts: 793
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: 3.2.2 / firefox / flashplayer

Post#10 by ncmprhnsbl » 31 Dec 2016, 21:12

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)
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#11 by Ed_P » 31 Dec 2016, 23:36

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:
Ed

User avatar
Ed_P
Contributor
Contributor
Posts: 3067
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: 3.2.2 / firefox / flashplayer

Post#12 by Ed_P » 01 Jan 2017, 00:58

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 viewtopic.php?f=81&t=5283&p=39782#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
Ed

Post Reply