Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: nick65go on December 21, 2011, 02:29:11 AM

Title: getflash11 does not generate flash11.tcz
Post by: nick65go on December 21, 2011, 02:29:11 AM
I use core 4.2rc2 on a fresh partition. getflash11 does indeed install flash11, because I can use it and I see it in /tmp/tcloop/flash11. opera-next and firefox8 run OK.

my comment is about flash11.tcz : it is not generated, it is not in /tce/optional
but if I modfy the script genflash11.sh, to remove the -noappend
"sudo mksquashfs pkg/ "$DOWNLOAD_DIR"/flash"$VER".tcz -noappend > /dev/null 2>&1 || exit_red"

this new line works
sudo mksquashfs pkg/ "$DOWNLOAD_DIR"/flash"$VER".tcz || exit_red
but the resulting files are in /optional not in /mnt/sda6/tc4/optional/

btw: /tc4/optional has read and write permisions for tc:staff and AppBrowser works ok.
the /optional/flash11.tcz is root:root for user:group, but .dep and .md5.txt are tc:staff owner.

I can manage to build myself flash11.tcz, but maybe the extension owner wish to correct the script ;)
Anyway, thank you for the script and your effort to maintain it.
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on December 21, 2011, 02:51:57 AM
Ok, I think I know what has happened, I will fix it.
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on December 21, 2011, 03:05:25 AM
Should be good now, try again.
Title: Re: getflash11 does not generate flash11.tcz
Post by: nick65go on December 21, 2011, 03:32:43 AM
thanks Jason, flash11.tcz  was created OK, together with dep and md5.txt
One more request, please:
flash11.tcz has root:root owner, but should be tc:staff maybe, to show in appbrowser list for ondemand (and onboot)?

Edit: sorry, I tested with a random selected extension, root:root permissions set, reboot again, and appbrowser seems to know /list that extension anyway for ondemand or onboot. which is good to know.
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on December 21, 2011, 03:42:11 AM
Ok, try again, I added that in.
Title: Re: getflash11 does not generate flash11.tcz
Post by: flyinghamster on March 16, 2012, 10:36:20 PM
 :D Hi new tinycore user here... Sorry if this has been addressed elsewhere. I did a fresh install of tinycore but am having a difficult time installing Flash 11.

I have downloaded GetFlash11 through the app browser and run it from the desktop. However, I seem to be missing the flash11.tcz file and do not know where to proceed.

Strangely, I am able to watch youtube videos but any other flash application brings up the adobe download link.

Am I missing something obvious? i do not see flash11 in the tmp/tcloop/ folder as stated earlier in this post.
Title: Re: getflash11 does not generate flash11.tcz
Post by: teraflopb on March 17, 2012, 11:40:36 AM
Same here. Run getflash11 and there is a terminal window that flashes then goes away....
Title: Re: getflash11 does not generate flash11.tcz
Post by: Rich on March 17, 2012, 12:34:35 PM
Hi flyinghamster
GetfFlash only gets and packages the flash extension, it does not load it. Check your  tce/optional  directory to see if
it's there. If not, open a terminal and enter   sudo find / -iname *flash*.tcz to find it, then copy the tcz, md5, and dep
files to  tce/optional. Now open   AppsAudit   and add the flash extension to onboot. Reboot and flash should now
work.
Title: Re: getflash11 does not generate flash11.tcz
Post by: flyinghamster on March 17, 2012, 01:03:55 PM
After downloading and running GetFlash11, there still seems to be no resultant output. Just like teraflopb, terminal window flash and then nothing. The expected folder /optional does not contain anything additional, and using the search query you gave me comes up only with the result for the GetFlash11.tcz

Unfortunately I believe the retrieval and packaging of the extension may be the problem.

Is it worth trying to use GetFlash11? Is there a good method to manually install Flash from the Adobe tarball?

Title: Re: getflash11 does not generate flash11.tcz
Post by: Rich on March 17, 2012, 01:10:55 PM
Hi flyinghamster
It's possible that Adobe put out a new version of flashplayer. I think Jason W once mentioned that every time that
happens it breaks the  GetFlash  extension. At any rate, I suggest waiting for Jason to weigh in on this topic, he
knows a lot more about it than I do,
Title: Re: getflash11 does not generate flash11.tcz
Post by: flyinghamster on March 17, 2012, 01:18:18 PM
well thanks for your patience! i know that keeping up with download links is not exactly on the top of everyone's development list  ;) i will check back though for any updates
Title: Re: getflash11 does not generate flash11.tcz
Post by: Rich on March 17, 2012, 01:32:21 PM
Hi flyinghamster
If Jason doesn't respond to this thread in a couple of days, PM him with a link to this thread.
Title: Re: getflash11 does not generate flash11.tcz
Post by: ljk on March 17, 2012, 01:48:26 PM
Hello flyinghamster,

The present version of "getFlash11.sh" seems to work if you run it in a terminal window.  At least it did update Flash on my system.  If I ran it from the desktop, I got  the results that you indicated above, & Flash wasn't updated.  You probably understand about loading getFlash11.sh & running it in a terminal window.  If not, please send me a personal message, & I'll give you what works for me.

Take care.

ljk
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on March 17, 2012, 05:47:38 PM
I see the issue, the startup script calls on /opt/.tce_dir for the tce directory.

Since robc has done the latest update and hopefully would like to maintain it, I will give him a chance first before I correct it though it is a simple correction.
Title: Re: getflash11 does not generate flash11.tcz
Post by: gerald_clark on March 17, 2012, 06:07:40 PM
For a temporary fix:
echo "/etc/sysconfig/tcedir" > /opt/.tce_dir
Title: Re: getflash11 does not generate flash11.tcz
Post by: OldAdamUser2 on March 17, 2012, 06:09:28 PM
Hi FlyingHampster,

I empathize with your difficulties in getting flash to work well. I think almost everyone is having similar problems, which is why Steve Jobs wrote what he did about Apple and Adobe Flash (http://www.apple.com/hotnews/thoughts-on-flash/).

I'm a big fan of Tiny Core Linux, but even this great OS sometimes bogs down under the huge CPU requirements of the latest versions of Flash. Here, for example, is a direct quote from the official TC FAQ page:

Quote
How to get flash working?

Short answer: see the getFlash9.tcz extension.

Long answer:
Flash 10 has such steep requirements, it is not supported on TC. The last working version was 10 beta 2, but due to the beta nature of that, using Flash 9 is recommended.

Don't use Adobe's installer, copy libflashplayer.so yourself to your browser's plugin folder.

To have sound in Flash using OSS, you need to copy libflashsupport (included in OSS.tcz) to both /usr/lib and your browser's plugin folder.

There are two variations of the library in /usr/lib/oss/lib, one only enabling OSS sound, the other enabling that and also playing flash over SSL. You need OpenSSL for the second library.

Depending on if you have OpenSSL loaded and need to use flash over SSL, pick one of the libs, and copy it to both /usr/lib and your browser's plugin folder, and then rename it to libflashsupport.so in both places.

Requirements: Flash 9 requires GTK+-2.

The only problem with that is that Flash9 has security problems, is no longer available for download, and often won't play the latest Flash material anyway.

Like you, I have had trouble lately with getFlash10 (and getFlash11)--though I assume the problem was just a function of the way I have installed TC 3.8.2 on my system. I do have Flash10.3 installed and working--and it works pretty well for most content.

However, Flash10 does push the CPU on my Eee900 to its absolute limit, sometimes causes crashes, and often tortures the hard drive. This is not the fault of TC3.8.2 so much as it is the fault of Adobe Flash as implemented in virtually all versions of Linux.


Title: Re: getflash11 does not generate flash11.tcz
Post by: flyinghamster on March 17, 2012, 07:54:28 PM
Thanks to everyone for all your help!!  :D

I had given up on the script for the time being and spent the last few hours manually installing flash from the tar. After several walkthroughs were unsuccessful, I tried copy/pasting the .so file to the hidden /home/tc/.mozilla/plugins folder and voila !! It works!  ;D

This has definitely been a crash course in linux file systems for me!  8)
Title: Re: getflash11 does not generate flash11.tcz
Post by: thane on March 18, 2012, 12:50:47 PM
When I rebooted after updating to TCL 4.4, I found that getflash11 no longer appeared in the applications menu. Further checking showed some missing dependencies. I downloaded these and now getflash11 does appear in the applications menu. However clicking on it just causes a quick flicker and does not open a terminal or appear to start a process. My current flash11 still works though which suggests that getflash11 isn't doing much of anything. Not sure if this is a bug or if it's because flash is already installed...
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on March 18, 2012, 04:46:29 PM
Since getflash11 is one of the most universally used extensions,  I am going to revert it to it's previously working state while we wait on a correction from robc.

Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on March 18, 2012, 05:27:23 PM
I have uploaded the previous getFlash11 but with fetching the latest flash.

I did not alter the info file as this is temporary to see what robc wants to do with it.

Title: Re: getflash11 does not generate flash11.tcz
Post by: robc on March 19, 2012, 09:24:04 AM
I'll fix it tonight
Title: Re: getflash11 does not generate flash11.tcz
Post by: robc on March 19, 2012, 08:03:20 PM
fixed
the install script did check /opt/.tce_dir for the tce directory, that has been fixed
the desktop file had a typo in the exec so the script was not running.  That is why the aterm window would open then close immediately
Title: Re: getflash11 does not generate flash11.tcz
Post by: mocore on March 30, 2012, 09:43:14 AM
getflash10 is also in the 4x repo and fails to create flash10.tcz

is this script also in need of the same fix?
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on March 30, 2012, 10:37:15 AM
I think it just needs to be removed, folks who want flash 10 will need to download it manually.
Title: Re: getflash11 does not generate flash11.tcz
Post by: mocore on March 30, 2012, 01:59:18 PM

 i cant/dont realy disagree but when getflash11 tcz/scm failed to load flash
 (and before i was clued up to  .tce_dir changes)
 ::) i headed straight for getflash10 
Title: Re: getflash11 does not generate flash11.tcz
Post by: Jason W on March 31, 2012, 02:50:20 PM
Here is what I will do.  I will remove getFlash10.tcz to avoid confusion since it is broken.  Anyone interested in taking it up can contact me and I will send them a copy.
Title: Re: getflash11 does not generate flash11.tcz
Post by: AbNoRMiS on April 02, 2012, 09:32:04 PM
now i do not even know which i have getFlash11
old or fixed old or it is fixed new :)
because i also have a couple remarks
for example about adding getFlash11.tcz
to onboot.lst without checking bootcode
wondering which version i see it?

p.s.
Code: (bash) [Select]
grep flash$VER.tcz $TCEDIR/onboot.lst > /dev/null 2>&1 || echo "flash"$VER".tcz" >> $TCEDIR/onboot.lstvs
Code: (bash) [Select]
ONBOOTNAME=`getbootparam lst 2>/dev/null`
[ "$ONBOOTNAME" ] || ONBOOTNAME="onboot.lst"
TCEDIR=${TCEDIR%/optional}
grep flash$VER.tcz $TCEDIR/$ONBOOTNAME >/dev/null 2>&1 || echo "flash$VER.tcz" >> $TCEDIR/$ONBOOTNAME
Title: Re: getflash11 does not generate flash11.tcz
Post by: AbNoRMiS on April 02, 2012, 10:13:22 PM
or here's another mentioned
why in the script /usr/local/tce.installed/getFlash11
red marked code is present?
Quote
if [ ! -f "$TCEDIR"/optional/flash11.tcz ]; then
   if pgrep X >/dev/null; then
   su "$THISUSER" -c 'aterm -T "Download, Setup, and Create flash11.tcz" -e /usr/local/bin/getFlash11.sh'
   else
   su "$THISUSER" -c 'getFlash11.sh'
   fi   
fi
that is if i already have installed flash11.tcz
and uninstalled or removed getFlash11.tcz from onboot list
if i again load getFlash11.tcz to update flash11.tcz
nothing will happen?
Title: Re: getflash11 does not generate flash11.tcz
Post by: robc on April 02, 2012, 10:24:15 PM
It is a test to see if this is first time getFlash11 has ran.  That code is from the tcz install script which only runs right after the extension is installed.  The install script is not meant to be ran manually.  This is to prevent an unwanted update of your flash11 extension if you have a specific version that you want to use.

If you already have flash11.tcz then you will need to run the update script directly, either through the cli or the wm menu.

why would you add getFlash11 to your onboot list?
Title: Re: getflash11 does not generate flash11.tcz
Post by: AbNoRMiS on April 02, 2012, 11:11:21 PM
It is a test to see if this is first time getFlash11 has ran.  That code is from the tcz install script which only runs right after the extension is installed.  The install script is not meant to be ran manually.  This is to prevent an unwanted update of your flash11 extension if you have a specific version that you want to use.
test of whether i have installed some specific flash version was held in the old version in the script /usr/local/bin/getFlash11.sh
was asked question to which needed to answer yes or no
and it was correctly
If you already have flash11.tcz then you will need to run the update script directly, either through the cli or the wm menu.
if i already have specific version of flash11.tcz and mistakenly run the update script directly then there will be no check and no questions raised to prevent an unwanted update of my flash11 extension
why would you add getFlash11 to your onboot list?
sorry, i mistakenly wrote the getFlash11.tcz instead of flash11.tcz but you have to look at the code below
if you setup your bootloader isolinux or grub4dos etc to start tinycore with bootcode lst=myonboot.lst in which onboot list will get flash11.tcz record?
reminding
Code: (bash) [Select]
grep flash$VER.tcz $TCEDIR/onboot.lst > /dev/null 2>&1 || echo "flash"$VER".tcz" >> $TCEDIR/onboot.lstvs
Code: (bash) [Select]
ONBOOTNAME=`getbootparam lst 2>/dev/null`
[ "$ONBOOTNAME" ] || ONBOOTNAME="onboot.lst"
TCEDIR=${TCEDIR%/optional}
grep flash$VER.tcz $TCEDIR/$ONBOOTNAME >/dev/null 2>&1 || echo "flash$VER.tcz" >> $TCEDIR/$ONBOOTNAME