WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Flash setup  (Read 40355 times)

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #30 on: December 27, 2012, 04:39:04 AM »
FWIW, running opera out of an arbitrary dir and adding an arbitrary dir containing libflashplayer.so as plugin dir path in preferences GUI works fine.

Tested, not working from arbitrary directory with opera-12.

Probably libflashplayer.so should be on /apps/opera-12/lib/opera-12/plugins/ -directory.

Cannot copy there because *.scm is "read-only-type" file system.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #31 on: December 27, 2012, 06:20:11 AM »
Reason for not working is /apps installation directory is obvious:

libflashplayer.so is dynamically linked library and that is related with several other dynamically linked libs.

Because Opera "/apps" installation point libflashplayer.so cannot find those libs.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Flash setup
« Reply #32 on: December 27, 2012, 06:54:45 AM »
Post output of:
ldd /path/to/libflashplayer.so |grep not
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #33 on: December 28, 2012, 01:14:29 AM »
ldd /path/to/libflashplayer.so |grep not

----------------------------------------------------
libssl3.so => not found
   libsmime3.so => not found
   libnss3.so => not found
   libnssutil3.so => not found
   libplds4.so => not found
   libplc4.so => not found
   libnspr4.so => not found
   libgtk-x11-2.0.so.0 => not found
   libgdk-x11-2.0.so.0 => not found
   libatk-1.0.so.0 => not found
   libpangoft2-1.0.so.0 => not found
   libgdk_pixbuf-2.0.so.0 => not found
   libpangocairo-1.0.so.0 => not found
   libcairo.so.2 => not found
   libpango-1.0.so.0 => not found
------------------------------------------------------------

Those are located on "/apps" directory, but not found. That can be fixed by "ldconfig", but it is useless without systematic lib handling (that is missed by TC, I guess).


Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #34 on: December 28, 2012, 02:56:48 AM »
That shared library configuration should be at "/etc/ld.so.conf" file.

At TC 4.7.x that is consisting "usr/local/lib" only.

The key element of the linux lib file system are "/lib" and "/usr/lib/" directories, which should include "linux trusted libraries".

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #35 on: December 28, 2012, 05:03:17 AM »
For some reason, ldconfig refuses to load libs from "/apps" directory, so whole .scm system has to be dismantled to fix (several libs are needed).


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Flash setup
« Reply #36 on: December 29, 2012, 08:17:07 AM »
So, your issue seems to be paths of dependencies of flashplayer, browser and flashplayer paths being totally irrelevant.
Installing all dependencies of flashplayer (like gtk2, netscape runtime, curl etc.) as .tcz should work.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #37 on: December 29, 2012, 04:47:17 PM »
getFlash11.scm was updated a few days ago, and it should just work.  I have it working with opera-12, update your extensions and it should just work.

getFlash11.tcz has had changes since I maintained it, and it may not work though.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #38 on: December 30, 2012, 11:21:45 AM »
Reload TC 4.7.2 with Xorg.

Installed packages:

firefox.scm and getflash11.scm -> flash.scm installed

Command "ldd /usr/local/lib/mozilla/plugins/libflashplayer.so":

--------------------------------------------------------------------------
linux-gate.so.1 =>  (0xb77d9000)
   libgthread-2.0.so.0 => not found
   libX11.so.6 => /usr/lib/libX11.so.6 (0xb6549000)
   libXext.so.6 => /usr/lib/libXext.so.6 (0xb6537000)
   libXt.so.6 => /usr/lib/libXt.so.6 (0xb64e1000)
   librt.so.1 => /lib/librt.so.1 (0xb64d8000)
   libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0xb64ce000)
   libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb64c5000)
   libssl3.so => not found
   libsmime3.so => not found
   libnss3.so => not found
   libnssutil3.so => not found
   libplds4.so => not found
   libplc4.so => not found
   libnspr4.so => not found
   libpthread.so.0 => /lib/libpthread.so.0 (0xb64ad000)
   libdl.so.2 => /lib/libdl.so.2 (0xb64a9000)
   libgtk-x11-2.0.so.0 => not found
   libgdk-x11-2.0.so.0 => not found
   libatk-1.0.so.0 => not found
   libpangoft2-1.0.so.0 => not found
   libgdk_pixbuf-2.0.so.0 => not found
   libpangocairo-1.0.so.0 => not found
   libcairo.so.2 => not found
   libpango-1.0.so.0 => not found
   libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb6443000)
   libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0xb6415000)
   libgobject-2.0.so.0 => not found
   libgmodule-2.0.so.0 => not found
   libglib-2.0.so.0 => not found
   libm.so.6 => /lib/libm.so.6 (0xb63f1000)
   libc.so.6 => /lib/libc.so.6 (0xb62e6000)
   /lib/ld-linux.so.2 (0xb77da000)
   libXau.so.6 => /usr/lib/libXau.so.6 (0xb62e3000)
   libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb62dd000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb62c7000)
   libSM.so.6 => /usr/lib/libSM.so.6 (0xb62be000)
   libICE.so.6 => /usr/lib/libICE.so.6 (0xb62a5000)
   libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0xb629f000)
   libz.so.1 => /usr/lib/libz.so.1 (0xb628e000)
   libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0xb626e000)
   libuuid.so.1 => /lib/libuuid.so.1 (0xb6269000)
----------------------------------------------------------------------------

Edit: those missing libs are present at /apps -directory but obviously not found by ldd
Edit2: I think it is security issue why ldd won't load those libs:

"There is an security mechanism in Solaris preventing an application with setuid getting exploited by preloading a malicous library to carry out an dependency substitution or symbol interposition attack. This mechanism kicks in, when an executable uses setuid and it's not executed by the owner of the file. It's not that way, that preloading doesn't work with setuid binaries. To enable the libraries to be preloaded under this conditions, they have to be in directories that were explicitly configured by the admin as safe (or that were configured per default as secure directories in the factory install)"
« Last Edit: December 30, 2012, 12:13:29 PM by Yleisajattelija »

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #39 on: December 30, 2012, 11:25:36 AM »
getFlash11.scm was updated a few days ago, and it should just work.  I have it working with opera-12, update your extensions and it should just work.

getFlash11.tcz has had changes since I maintained it, and it may not work though.

getflash11.scm date is 2012/09/26
firefox.scm, date 2012/11/22
opera.scm, date 2012/12/25

Are those dates OK?

Edit: Firefox and Opera are now both working with youtube flashplayer and not with yle-areena. 
« Last Edit: December 30, 2012, 11:37:00 AM by Yleisajattelija »

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #40 on: December 30, 2012, 12:32:45 PM »
There is an environment variable, which set ldd secured directories path. If TC /apps installation point is meant to kept, that variable should be set to /apps/lib -directory (but not /apps -directory for security reasons) and shared libs should be placed on that /apps/lib directory.

One option is to place all shared libs to /usr/lib directory, but that brakes .scm concept.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #41 on: December 30, 2012, 01:00:48 PM »
getflash11.scm was updated a few days ago, but on the new server and not ibiblio. 

http://repo.tinycorelinux.net

is the mirror of the new server where the updated getFlash11.scm should be.

As for the library path and ldd, the scm format deliberately does not use that to avoid library conflicts, and the scm extensions are designed to work with that in consideration.  So libraries that are part of an scm are not meant for use system wide.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #42 on: December 31, 2012, 07:43:47 AM »
Reload TC 4.7.2 from http://repo.tinycorelinux.net

getflash11.scm date is 2012/09/26
firefox.scm, date 2012/11/22
opera.scm, date 2012/12/25

Seems that getflash11.scm is stil out of date, something problems with repo and/or sync?

Edit: getflash11.scm is getting flashplayer newest ver. 11.2.202.258 ,so info file date stamp is possible not correct.
Edit2: Firefox, Opera and flashplayer is working correctly with youtube videos but not with yle-areena videos and ldd reports those missing libraries.
« Last Edit: December 31, 2012, 07:51:04 AM by Yleisajattelija »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11243
Re: Flash setup
« Reply #43 on: December 31, 2012, 08:10:12 AM »
Hi Yleisajattelija
Quote
As for the library path and ldd, the scm format deliberately does not use that to avoid library conflicts
I think that means you can not use  ldd  to check for missing dependencies.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 175
Re: Flash setup
« Reply #44 on: December 31, 2012, 09:13:22 AM »
I think that means you can not use  ldd  to check for missing dependencies.

There are several linux loaders (newest are for ELF format, I think), but all should be recognized by ldd.

.so files are dynamically loadable libraries and must be loaded somehow. I think TC has not custom made loader, so ldd should recognize those libs, (but I'm quite often wrong and maybe this time, too).