Tiny Core Linux

Tiny Core Extensions => TCE News => Topic started by: coreplayer2 on November 11, 2015, 12:13:11 PM

Title: [Fixed] getFlash11 - Update
Post by: coreplayer2 on November 11, 2015, 12:13:11 PM
Another cat and mouse game, this time Adobe is the culprit.

After Pandora refused to play without Flash's latest security updates, I was forced to resolve the issue.

It appears that as of yesterday adobe changed their downloads directory structure, as a result the link to download the latest Flash v11.2.202.548 is broken.  This didn't just break our getFlash11 but appears to have also broke most major Linux Distributions "get Flash" scripts running curl to auto find the download link.

The latest Flash download is located under a directory using it's version number, kinda a catch 22 scenario.   However the issue is fixed with:
Code: [Select]
DOWNLOAD=$(curl -s 'https://get.adobe.com/flashplayer/download/?installer=Flash_Player_11.2_for_other_Linux_(.tar.gz)_32-bit&standalone=1'  | grep -o 'https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.*/install_flash_player_11_linux.i386.tar.gz')


I'm submitting the updated getFlash11 extension asap, meanwhile if anyone needs the fixed script to install or update Flash11 with latest security updates;  Please download the attached script, set exec perms and run it to update your flash11 extension

:)

Title: Re: [Fixed] getFlash11 - Update
Post by: patrikg on June 02, 2016, 06:00:25 AM
Sorry for hijacking this thread, but...

To make this good script to work again, you need to add  "--no-check-certificate" in line 84
From:
Code: (bash) [Select]
wget "$DOWNLOAD" > /dev/null 2>&1To
Code: (bash) [Select]
wget --no-check-certificate "$DOWNLOAD" > /dev/null 2>&1
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 02, 2016, 07:17:58 AM
Sorry for hijacking this thread, but...

All suggestions welcome thanks.

While I understand there has been a recent update with wget isn't this fix dependent on the wget version, so I question arises "are some folks going to have issues  if we make this change?"  Or perhaps we should force busybox?

thoughts?  while my copy of the script still works flawlessly.

Title: Re: [Fixed] getFlash11 - Update
Post by: Misalf on June 02, 2016, 11:45:43 AM
Command:
Code: [Select]
wget https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.202.621/install_flash_player_11_linux.i386.tar.gz
Output:
Code: [Select]
--2016-06-02 20:40:53--  https://fpdownload.adobe.com/get/flashplayer/pdc/11.2.202.621/install_flash_player_11_linux.i386.tar.gz
Resolving fpdownload.adobe.com (fpdownload.adobe.com)... 23.222.27.248
Connecting to fpdownload.adobe.com (fpdownload.adobe.com)|23.222.27.248|:443... connected.
ERROR: The certificate of ‘fpdownload.adobe.com’ is not trusted.
ERROR: The certificate of ‘fpdownload.adobe.com’ hasn't got a known issuer.

Code: [Select]
--no-check-certificate
This fixes it for me as well.
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 02, 2016, 11:48:53 AM
Thanks for the info.  Which wget are you using please?
Title: Re: [Fixed] getFlash11 - Update
Post by: Misalf on June 02, 2016, 11:51:52 AM
Oh, of course.
GNU wget fails without "--no-check-certificate".
Busybox wget works fine.
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 02, 2016, 11:54:48 AM
Ah ha!  ok thanks  I'll make the necessary adjustment to use busybox version by default for consistency
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 06, 2016, 01:27:58 PM
Updated getFlash11 extension submitted for both x86 and corepure64 repo's
should be in repo soon

attached is x86 version (must be used with previous getFlash11 extension to include audio components)
Title: Re: [Fixed] getFlash11 - Update
Post by: Misalf on June 06, 2016, 03:25:36 PM
Works. Thanks!
Code: [Select]
00:20:18 tc@box:/tmp/$> ./getFlash11.sh
squashfs-tools is already downloaded.
squashfs-tools is already installed!
bash is already downloaded.
bash is already installed!
gtk2 is already downloaded.
gtk2 is already installed!
nss is already downloaded.
nss is already installed!
curl is already downloaded.
curl is already installed!
/usr/bin/wget: symbolic link to ../../bin/busybox
Downloading Adobe Flash...
Done.
Copying files and setting permissions...
Done.
Creating tcz extension in /mnt/sda3/tce-7.x/optional...
Done.
flash11.tcz: OK
flash11.tcz is now in /mnt/sda3/tce-7.x/optional and installed.
00:21:23 tc@box:/tmp/$>

What about 'not' muting wget's output?
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 06, 2016, 04:21:58 PM
You mean this
Code: [Select]
/usr/bin/wget: symbolic link to ../../bin/busybox??

I left it in for this version just as confirmation that we were in fact using busybox version
Title: Re: [Fixed] getFlash11 - Update
Post by: Misalf on June 07, 2016, 02:54:30 AM
No, I mean the download process bar.
Downloading 10 MB through 56Kb modem takes about 30 minutes. If the download is stalled I might have no indication.
Title: Re: [Fixed] getFlash11 - Update
Post by: patrikg on June 10, 2016, 10:48:10 AM
Today i just edit the file and added busybox in front of the wget command like this.
Worked great.
From:
Code: (bash) [Select]
wget "$DOWNLOAD" > /dev/null 2>&1
To:
Code: (bash) [Select]
busybox wget "$DOWNLOAD" > /dev/null 2>&1
Title: Re: [Fixed] getFlash11 - Update
Post by: coreplayer2 on June 10, 2016, 10:59:29 AM
hi patrikg,  the updated script/extension doesn't need "busybox wget..."   busybox is set globally
Title: Re: [Fixed] getFlash11 - Update
Post by: patrikg on June 10, 2016, 11:29:19 AM
Yes of course, but if you have load wget it will fail.
Because the loaded wget gets first in the search path.