Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 06 Dec 2019, 07:51
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Adobe Flash Player Auto Updater
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 8 [116 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Author Message
ETP


Joined: 19 Oct 2010
Posts: 1172
Location: UK

PostPosted: Fri 25 Oct 2019, 15:57    Post subject:  

@ Argolance:-

Merci beaucoup, c'est très gentil à vous.
GetFlash.png
 Description   
 Filesize   29.19 KB
 Viewed   406 Time(s)

GetFlash.png


_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
EdD

Joined: 09 Dec 2013
Posts: 197
Location: Southside Virginia

PostPosted: Sun 27 Oct 2019, 07:26    Post subject:  

Argolance wrote:
Bonjour,
Am I the only one who hasn't been able to update the flash player for some time? Rolling Eyes

Cordialement.


You're not alone. Fortunately, Flash isn't important to me anymore. I would like to be able to delete all the flash update files, but some persist anyway. Several minutes after starting FF, I get the message that the updater failed, where I used to get it right after startup of the system.

_________________
Dell optiplex 780, Intel Core 2 Duo CPU E7500 @ 2.93GHz, 4g RAM, w/ATI RV620 LE Radeon HD 3450. Currently running a full install of Slacko 6.3.0 ( 32 bit version).
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4201
Location: holland

PostPosted: Sun 27 Oct 2019, 08:24    Post subject:  

I think the script from Geoffrey at first post needs an update because of a change at the adobe end, changing the "about" url: 'adobe.com/software/flash/about/' to: 'get.adobe.com/flashplayer/about/' makes it work again for me, here's modified script:
Code:
#!/bin/bash
# By Geoffrey, do with as you please.......
# 15052017
# Update Flash v1.8
# Used sed in place of perl as suggested by sfs
# yad no longer a dependency, uses gtkdialog
# fixed url not found "get.adobe.com/flashplayer/" from some locale's, get update version info from alternate url "adobe.com/software/flash/about" rg66
# fix linux detection by sfs
# 14122016 final, Linux flashplayer now follows Firefox - NPAPI
# 20022017 reverted back to using busybox strings to get libflashplayer.so version number
# now only looks for new version @ adobe.com/software/flash/about
# URL fix 15052017
# fredx181, 27102019, fix: change "about" url: 'adobe.com/software/flash/about/' to 'get.adobe.com/flashplayer/about/'
FLASH_UPDATER="$(readlink -e "$0")"
sleep 0.3
if [ `pidof "$(basename "$FLASH_UPDATER")" -o %PPID | wc -w` -gt 1 ]; then
gtkdialog-splash -icon "/usr/share/pixmaps/flash-player-properties.png" -timeout 6 -fontsize x-large -text "
Flash Updater is running.
" &
 exit 1
fi

if [ ! -f ~/.flash_update/index.html ]; then
IFCONFIG="`ifconfig | grep '^[pwe]' | grep -v 'wmaster'`"
while [ "$IFCONFIG" != "" ]; do
   sleep 1
    ping -c 1 8.8.8.8
    if [ $? -eq 0 ];then
      break
   else
      ping -c 1 www.google.com
      if [ $? -eq 0 ];then
         break
      fi
   fi
done &> /dev/null
fi

function DOWNLOAD_FLASH(){
URL='fpdownload.adobe.com/get/flashplayer/pdc/'$LATEST_VERSION'/flash_player_npapi_linux.i386.tar.gz'
wget -t 2 -T 20 --waitretry=20 --spider -S "$URL" > ~/.flash_update/filesize 2>&1   
SIZE=`echo $(awk '/^Length: / {print $3}' ~/.flash_update/filesize) | sed 's/^.\(.*\).$/\1/'`
export DOWNLOADER_GUI='
<window title="Download Flash Player Update" icon-name="flash-player-properties" border-width="10" resizable="false">
<vbox>
<progressbar width-request="300">
<label>Please Wait...</label>
<input>wget --no-check-certificate -4 -c -t 5 -w 5 -P ~/.flash_update '$URL' 2>&1 | sed -nru "s|.* ([0-9]+%) +([^ ]+).*$|\1\nDownloading \1 of '$SIZE' @ \2B/sec |p" 2>/dev/null</input>
<action type="exit">Ready</action>
</progressbar>
<hbox homogeneous="true">
<button use-underline="true">
   <label>"_Cancel "</label>
   <input file stock="gtk-close"></input>   
   <action>func_terminate_service</action>
   <action>EXIT:exit</action>
   </button>
</hbox>
</vbox>
</window>'
I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog --program=DOWNLOADER_GUI); do
   eval $STATEMENTS
done
IFS=$I
[ $EXIT = exit ] && exit 1

cd ~/.flash_update/
tar -zxvf flash_player_npapi_linux.i386.tar.gz libflashplayer.so &> /dev/null
chown root:root libflashplayer.so
cd /
rm /usr/lib/mozilla/plugins/libflashplayer.so
mv ~/.flash_update/libflashplayer.so /usr/lib/mozilla/plugins/libflashplayer.so
export INSTALLED_VERSION=$(busybox strings -n13 /usr/lib/mozilla/plugins/libflashplayer.so  | grep 'FlashPlayer_' | cut -d '_' -f2-5| tr '_' '.')
gtkdialog-splash -icon "/usr/share/pixmaps/flash-player-properties.png" -timeout 6 -fontsize x-large -text "Flash Player has now been updated
         Version $INSTALLED_VERSION"
         
[ "$LATEST_VERSION" = "$INSTALLED_VERSION" ] && rm -r ~/.flash_update
func_terminate_service
}
export -f  DOWNLOAD_FLASH

 func_terminate_service(){
PID_UPDATE_FLASH=$(pidof update_flash)   
GUI=$(ps -ef | grep program=FLASH_UPDATER_GUI | grep -v grep | awk '{ print $2 }')
     kill "$PID_UPDATE_FLASH"
     kill "$GUI"
      }
export -f  func_terminate_service
 
[ ! -f ~/Startup/update_flash ]   && echo false > ~/.update_flash
if grep -q true ~/.update_flash 2> /dev/null;then
CHECKBOX='<default>true</default>'
else
CHECKBOX='<default>false</default>'
fi

mkdir -p ~/.flash_update
if [ ! -f ~/.flash_update/index.html ]; then
# fredx181, changed about url to "get.adobe.com/flashplayer/about/"
wget --no-check-certificate -O- --spider get.adobe.com/flashplayer/about/ > ~/.flash_update/flash_url 2>&1
if grep -q '200 OK' ~/.flash_update/flash_url 2> /dev/null; then
wget -q -N -P ~/.flash_update get.adobe.com/flashplayer/about/
else
gtkdialog-splash -icon "/usr/share/pixmaps/flash-player-properties.png" -timeout 8 -fontsize x-large -text "The Adobe web site appears
  to unavailable at this time
      Please try again......."
rm -r ~/.flash_update && func_terminate_service         
fi;fi

export LATEST_VERSION=`cat /root/.flash_update/index.html | grep -A3 Linux | grep [0-9] | awk -F '[><]' '{print $3}' | tr -d "\n"` #rg66
export INSTALLED_VERSION=$(busybox strings -n13 /usr/lib/mozilla/plugins/libflashplayer.so  | grep 'FlashPlayer_' | cut -d '_' -f2-5| tr '_' '.')

if [ "$LATEST_VERSION" = "$INSTALLED_VERSION" ]; then
TEXT="<b><span size='"'large'"'>Adobe Flash is up to date...</span></b>"
TEXT_VERSION="<b><span size='"'x-large'"'>Current Version $INSTALLED_VERSION</span></b>"
TEXT_LINE1="$TEXT"
TEXT_LINE2="$TEXT_VERSION"
BUTTON1='<button use-underline="true">
   <label>" _About"</label>
   <input file stock="gtk-info"></input>
   <action>disable:TIMER</action>
   <action>launch:UPDATER_ABOUT</action>
   </button>'
TIMER='<timer seconds="true" interval="8" visible="false">
    <variable>TIMER</variable>
    <action>EXIT:exit</action>
    </timer>'
rm -r ~/.flash_update   
else
if [ -f ~/.flash_update/flash_player_npapi_linux.i386.tar.gz ]; then
TEXT="<b><span size='"'large'"'>Adobe Flash update has already started...</span></b>"
TEXT_VERSION="<b><span size='"'x-large'"'>New Version $LATEST_VERSION</span></b>"
TEXT_LINE1="$TEXT"
TEXT_LINE2="$TEXT_VERSION"
BUTTON1='<button use-underline="true">
   <label>" _About"</label>
   <input file stock="gtk-info"></input>
   <action>launch:UPDATER_ABOUT</action>
   </button>'
BUTTON2='<button use-underline="true">
   <label>"_Resume"</label>
   <input file stock="gtk-apply"></input>
   <action>DOWNLOAD_FLASH</action>
   </button>'
else
TEXT="<b><span size='"'large'"'>A New Adobe Flash update is Available</span></b>"
TEXT_VERSION="<b><span size='"'x-large'"'>New Version $LATEST_VERSION</span></b>"
TEXT_LINE1="$TEXT"
TEXT_LINE2="$TEXT_VERSION"
BUTTON1='<button use-underline="true">
   <label>" _About"</label>
   <input file stock="gtk-info"></input>
   <action>launch:UPDATER_ABOUT</action>
   </button>'
BUTTON2='<button use-underline="true">
   <label>"_Update"</label>
   <input file stock="gtk-apply"></input>
   <action>DOWNLOAD_FLASH</action>
   </button>'
fi;fi

LINK="<b><u><span color='"'blue'"'>Update Flash 1.8 By Geoffrey 15th May 2017</span></u></b>"
ABOUT="<b><span size='"'x-large'"'>Adobe Flash Updater</span></b>"

export UPDATER_ABOUT='
<window title="Flash Player Updater" icon-name="gtk-about">
  <vbox>
    <text wrap="false" justify="2" use-markup="true"><label>"'$ABOUT'"</label></text>
    <eventbox tooltip-text="  Adobe Flash Player Auto Updater  " hover-selection="true" homogeneous="true">
      <text justify="2" use-markup="true"><label>"'$LINK'"</label></text>
      <action signal="button-press-event">defaultbrowser http://www.murga-linux.com/puppy/viewtopic.php?t=100523 &</action>
     </eventbox>
    <text><label>""</label></text>
    <text wrap="false" justify="2" use-markup="true"><label>"Updates only the flash player plugin libflashplayer.so"</label></text>
    <text><label>""</label></text>
    <hbox space-fill="false" space-expand="true" homogeneous="true">
      <button ok>
        <action>closewindow:UPDATER_ABOUT</action>
      </button>
    </hbox>
  </vbox>
  <variable>UPDATER_ABOUT</variable>
</window>'

export FLASH_UPDATER_GUI='   
<window title="Flash Player Updater" icon-name="flash-player-properties" border-width="10" resizable="false">
<vbox>
 <hbox>
  <vbox>
   <pixmap>
    <input file icon="flash-player-properties"></input>
    <height>48</height><width>48</width>
    </pixmap>
  </vbox>
  <vbox>
   <text wrap="false" xalign="0" use-markup="true"><label>"'$TEXT_LINE1'"</label></text>
   <text wrap="false" xalign="0" use-markup="true"><label>"'$TEXT_LINE2'"</label></text>
   <checkbox use-underline="true">
   '$CHECKBOX'
    <label>_Run Flash Player Updater at startup</label>
    <variable>STARTUP</variable>
    <action>echo $STARTUP > ~/.update_flash</action>
    <action>if true ln -s /usr/bin/update_flash ~/Startup/update_flash &> /dev/null</action>
    <action>if false rm ~/Startup/update_flash &> /dev/null</action>
    </checkbox>
  </vbox>
  </hbox>
  <hbox homogeneous="true">
  <hbox>
    '$TIMER'
    '$BUTTON1'
   '$BUTTON2'
   <button use-underline="true">
   <label>"_Cancel "</label>
   <input file stock="gtk-close"></input>
   <action>EXIT:exit</action>
   </button>
  </hbox>
  </hbox>
</vbox>
</window>'
gtkdialog --program=FLASH_UPDATER_GUI >/dev/null 2>&1


EDIT: Also attached: update_flash-1.8-1.pet including this change.

Fred
update_flash-1.8-1.pet
Description  fixed update_flash v1.8-1
pet

 Download 
Filename  update_flash-1.8-1.pet 
Filesize  3.27 KB 
Downloaded  62 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5624
Location: King's Lynn, UK.

PostPosted: Sun 27 Oct 2019, 10:29    Post subject:  

@ Fred:-

Thanks for the 'fix', mate! Your modified script has got my update_flash-1.8 working again for the first time in a loooong while..... Very Happy

This was always one of my favourite bits of Geoff's software, 'cos I love the GUI for it. I know you can appreciate that, seeing as how you're very much a GUI man yourself (and understand the value of them), since they help to convince newbies that Pup's not SO hard after all.....

Adobe went through an extended spell, some while back, of juggling all their Flash download URLs around every few weeks.....and this went on for months and months. I believe Geoff simply got fed-up with constantly re-writing the script.....then he dropped off the radar for quite a while, and when he did reappear, I think his priorities had changed. Update_flash just slid further and further down into the Puppy 'pit of obscurity'...

Our Russian colleague, SFS, adapted Geoff's script for PepperFlash, and it works so well that I incorporated it into my Chrome & Iron packages. Strictly speaking, it's not needed for Chrome any longer, since the Linux release now auto-updates from within the browser itself , though it still works well for Iron.

Curiously, Adobe have never shifted the Pepper URL around, not even once; it works as well today as the day when SFS posted his 'mod'.....

Go figure. A sign, I guess, of the enormous 'clout' Big Brother now wields; it can even 'persuade' a huge concern like Adobe to do things so they're to Google's advantage.....


Mike. Wink

_________________
MY 'PUPPY' PACKAGES


Last edited by Mike Walsh on Sun 27 Oct 2019, 17:10; edited 1 time in total
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3715
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 27 Oct 2019, 13:45    Post subject:  

Bonsoir,
ETP wrote:
Merci beaucoup, c'est très gentil à vous
.
De rien, thanks! Wink
Quote:
Adobe went through an extended spell, some while back, of juggling all their Flash download URLs around every few weeks.....and this went on for months and months.

This is why, seeing that Geoffroy has not been seen on the Forum since July, continuing the momentum of the "getflash" originally created by technosaurus and Barry K, improved by ASRI, a remote configuration file was used, automatically downloaded at the start of the application and saved as /root/.getflash/getflash.conf, avoiding having to modify the main script. I also added, for ToOpPy users, a flashing notification icon in the system tray when a new flash version is available, icon that user has just to click to install the latest version.
This Arrow getflashplayer 1.7.2, which obviously does not intend to overshadow Geoffroy's script, is also internationalized, which makes it accessible to non-English-speaking users.

Cordialement.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5624
Location: King's Lynn, UK.

PostPosted: Mon 28 Oct 2019, 08:32    Post subject:  

Mike Walsh wrote:
Thanks for the 'fix', mate! Your modified script has got my update_flash-1.8 working again for the first time in a loooong while..... Very Happy


Spoke too soon.

Still getting the "Debian apt-get Yum tar.gz" crap coming up, and nowt actually happening when you try to download the new version; it just 'hangs'. I think it needs more work than just updating the URLs; I don't understand it, myself, because it worked beautifully when Geoff first released it, but over the successive months it just steadily went to 'hell in a handbasket'.....and has never worked properly since. And in certain older Pups, like Racy/Wary, it just doesn't work at all.....and it isn't because there's any binaries/dependencies involved, since it's just basically a script.

Mystifying.

I daresay it probably does work fine in the DebianDogs, but it seems to be a lost cause in the Puppies. Argolance's modified version of GetFlash, however, seems to be working nicely...

Whatcha reckon, Fred?


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4201
Location: holland

PostPosted: Mon 28 Oct 2019, 13:31    Post subject:  

Hi Mike,

When I share a .pet I always test on at least one Puppy, in this case on Xenialpup 32-bit and it worked fine, so... indeed mystifying that it doesn't work for you.
Any errors you see when running from terminal ?

Quote:
Still getting the "Debian apt-get Yum tar.gz" crap coming up


No idea what you mean, where do you see that ? Geoff's script has nothing to do with apt-get or whatever.
Btw, Debiandog or Puppy makes no difference in this case, all the same commands, wget, cat, busybox, grep etc...

Quote:
And in certain older Pups, like Racy/Wary, it just doesn't work at all.....and it isn't because there's any binaries/dependencies involved, since it's just basically a script


Yes , just script but it could well be because of older binary versions called by the script e.g. wget or/and others.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 5624
Location: King's Lynn, UK.

PostPosted: Mon 28 Oct 2019, 14:38    Post subject:  

Hiya, Fred.

Nah, no criticism of what you've done, mate. I'd never do that..! Laughing

I haven't used your .pet, per se; what I did was to replace the main script with your published version. Essentially the same thing, since the script pretty much is the utility.

fredx181 wrote:
Quote:
Still getting the "Debian apt-get Yum tar.gz" crap coming up

No idea what you mean, where do you see that ? Geoff's script has nothing to do with apt-get or whatever.


No, it's not in the script itself. It shows up on the GUI, seemingly at random:-

http://www.murga-linux.com/puppy/viewtopic.php?p=954282#954282

I have it set to auto-run at boot, so's I get the option to 'upgrade' to a new version as soon as it appears. But it can't be the "A -2 / A -3" thing that Geoff mentions, 'cos that fix is already in the script. This is where my lack of understanding of Geoff's code is letting me down, 'cos I don't really understand what that's doing.....

(*shrug*)

Any ideas? Or did you make any other changes in the .pet itself, when you re-packed it?


Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3715
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Wed 06 Nov 2019, 07:27    Post subject:  

Bonsoir,
Arrow GetFlashPlayer 1.7.4

Cordialement

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
Bird Dog

Joined: 15 Jun 2014
Posts: 68
Location: Toronto, Ontario, Canada

PostPosted: Thu 07 Nov 2019, 16:57    Post subject: flashplayer1.7.4  

Thanks very much Argolance your 1.7.2 seems to work for me. Whats the difference between 1.7.2 and 1.7.4.

Thanks
Bird Dog

_________________
Frugal Tahrpup 646.0.5 & Xenialpup 64 save folder on core2 quad Q6600 2 gigs ram & AMD 6 core 4 gigs ram, Frugal Tahrpup 6.0.6 CE save folder on P4 3.0 ghz 1 gig ram and Dell P4 Celeron 2.4 ghz 1 gig ram
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3715
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 08 Nov 2019, 06:52    Post subject:  

Bonjour,

@Bird Dog
Following tests on other Puppies (Stretch and Buster), I made some modifications that seem to have solved some problems encountered. The other changes are listed on the French-speaking thread (link above). DeepL translate or any other will do the job well. Wink

What does a "Bird Dog" look like? Very Happy

Cheers.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 8 of 8 [116 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0853s ][ Queries: 12 (0.0180s) ][ GZIP on ]