WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Flash setup  (Read 43260 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #45 on: December 31, 2012, 02:58:38 PM »
If you are wanting to use ldd on the flash extension, here is the command to use to account for /apps/flash/lib as a library path:

Code: [Select]
root@box:~# export LD_LIBRARY_PATH=/apps/flash/lib:/apps/gtk2/lib
root@box:~# ldd /usr/local/lib/mozilla/plugins/libflashplayer.so
        linux-gate.so.1 =>  (0xb775c000)
        libgthread-2.0.so.0 => /apps/gtk2/lib/libgthread-2.0.so.0 (0xb65cd000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb64c6000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb64b4000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb645e000)
        librt.so.1 => /lib/librt.so.1 (0xb6455000)
        libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0xb644b000)
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb6442000)
        libssl3.so => /apps/flash/lib/libssl3.so (0xb6414000)
        libsmime3.so => /apps/flash/lib/libsmime3.so (0xb63ef000)
        libnss3.so => /apps/flash/lib/libnss3.so (0xb62dd000)
        libnssutil3.so => /apps/flash/lib/libnssutil3.so (0xb62c6000)
        libplds4.so => /apps/flash/lib/libplds4.so (0xb62c3000)
        libplc4.so => /apps/flash/lib/libplc4.so (0xb62bf000)
        libnspr4.so => /apps/flash/lib/libnspr4.so (0xb628b000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6275000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6270000)
        libgtk-x11-2.0.so.0 => /apps/gtk2/lib/libgtk-x11-2.0.so.0 (0xb5ea4000)
        libgdk-x11-2.0.so.0 => /apps/gtk2/lib/libgdk-x11-2.0.so.0 (0xb5e0e000)
        libatk-1.0.so.0 => /apps/gtk2/lib/libatk-1.0.so.0 (0xb5df2000)
        libpangoft2-1.0.so.0 => /apps/gtk2/lib/libpangoft2-1.0.so.0 (0xb5dcc000)
        libgdk_pixbuf-2.0.so.0 => /apps/gtk2/lib/libgdk_pixbuf-2.0.so.0 (0xb5dad000)
        libpangocairo-1.0.so.0 => /apps/gtk2/lib/libpangocairo-1.0.so.0 (0xb5da2000)
        libcairo.so.2 => /apps/gtk2/lib/libcairo.so.2 (0xb5cf2000)
        libpango-1.0.so.0 => /apps/gtk2/lib/libpango-1.0.so.0 (0xb5cb1000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5c4d000)
        libfontconfig.so.1 => /apps/gtk2/lib/libfontconfig.so.1 (0xb5c1b000)
        libgobject-2.0.so.0 => /apps/gtk2/lib/libgobject-2.0.so.0 (0xb5bd8000)
        libgmodule-2.0.so.0 => /apps/gtk2/lib/libgmodule-2.0.so.0 (0xb5bd5000)
        libglib-2.0.so.0 => /apps/gtk2/lib/libglib-2.0.so.0 (0xb5acc000)
        libm.so.6 => /lib/libm.so.6 (0xb5aa9000)
        libc.so.6 => /lib/libc.so.6 (0xb599d000)
        /lib/ld-linux.so.2 (0xb775d000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb599a000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5994000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb597e000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb5976000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb595c000)
        libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0xb5956000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb5945000)
        libXinerama.so.1 => /usr/local/lib/libXinerama.so.1 (0xb5942000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb5939000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb5877000)
        libXcomposite.so.1 => /usr/local/lib/libXcomposite.so.1 (0xb5874000)
        libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0xb5871000)
        libpixman-1.so.0 => /apps/gtk2/lib/libpixman-1.so.0 (0xb57ee000)
        libxcb-shm.so.0 => /apps/gtk2/lib/libxcb-shm.so.0 (0xb57eb000)
        libxcb-render.so.0 => /apps/gtk2/lib/libxcb-render.so.0 (0xb57e4000)
        libxcb.so.1 => /apps/gtk2/lib/libxcb.so.1 (0xb57ca000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb57ad000)
        libgio-2.0.so.0 => /apps/gtk2/lib/libgio-2.0.so.0 (0xb5687000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb5675000)
        libexpat.so.1 => /apps/gtk2/lib/libexpat.so.1 (0xb564d000)
        libffi.so.5 => /apps/gtk2/lib/libffi.so.5 (0xb5647000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb5642000)
root@box:~#


Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #46 on: December 31, 2012, 03:35:20 PM »
First problem is, I cannot find docs for .scm format. Is that top secret?

Second problem is flashplayer is not playing some protected videos.

"libflashplayer.so" is dynamically linked library and is obviously depended on several libraries and  few of those libs are missing. Flashplayer cannot work without libs it need.

ldd just print missing shared libraries of "libflashplayer.so", it is not loader/linker.

ld.so and ld-linux.so* are lib loaders for linux,  /etc/ld.so.conf is conf file and ldconfig is run time binder.

For libflashplayer.so to find libs someone has to set path to /etc/ld.so.conf file and/or run ldconfig to set those bindings.

Is this command JasonW suggested setting secured directory environment variable that linux loaders could find missing libs?  (sorry I'm not big help because I don't know .scm structure).

root@box:~# export LD_LIBRARY_PATH=/apps/flash/lib:/apps/gtk2/lib

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11576
Re: Flash setup
« Reply #47 on: December 31, 2012, 04:30:15 PM »
Hi Yleisajattelija
Quote
First problem is, I cannot find docs for .scm format. Is that top secret?
I'm not aware of any formal doc, but have you read through this thread?
http://forum.tinycorelinux.net/index.php/topic,12457.msg67393.html#msg67393

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #48 on: December 31, 2012, 04:36:56 PM »
When you launch a web browser that an scm extension, it uses an LD_LIBRARY_PATH that will allow libflashplayer.so to find it's needed libs.  Depending on a system wide library path specified in /etc/ld.so.conf is not needed for scm's.  That is one of the structural distinctions of a basically self contained package.  The bad news is that you can't load, say, gtk2.scm and it provide a gtk2 environment that can be used by non scm apps.


The scm format is not clearly documented since  for the user it should just work, and I am basically the only scm extension maker aside from a couple others who have contributed.  I hope one day documentation can appear. 

Please post the output of the earlier 2 commands I mentioned so I can see what libraries are missing on your system.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #49 on: December 31, 2012, 05:43:31 PM »
Here is result and seems to find all libs!

-------------------------------------------------------------------------------------------------------------
   linux-gate.so.1 =>  (0xb77b1000)
   libgthread-2.0.so.0 => /apps/gtk2/lib/libgthread-2.0.so.0 (0xb6622000)
   libX11.so.6 => /usr/lib/libX11.so.6 (0xb651f000)
   libXext.so.6 => /usr/lib/libXext.so.6 (0xb650d000)
   libXt.so.6 => /usr/lib/libXt.so.6 (0xb64b7000)
   librt.so.1 => /lib/librt.so.1 (0xb64ae000)
   libXcursor.so.1 => /usr/local/lib/libXcursor.so.1 (0xb64a4000)
   libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb649b000)
   libssl3.so => /apps/flash/lib/libssl3.so (0xb646d000)
   libsmime3.so => /apps/flash/lib/libsmime3.so (0xb6448000)
   libnss3.so => /apps/flash/lib/libnss3.so (0xb6336000)
   libnssutil3.so => /apps/flash/lib/libnssutil3.so (0xb631f000)
   libplds4.so => /apps/flash/lib/libplds4.so (0xb631c000)
   libplc4.so => /apps/flash/lib/libplc4.so (0xb6318000)
   libnspr4.so => /apps/flash/lib/libnspr4.so (0xb62e4000)
   libpthread.so.0 => /lib/libpthread.so.0 (0xb62ce000)
   libdl.so.2 => /lib/libdl.so.2 (0xb62c9000)
   libgtk-x11-2.0.so.0 => /apps/gtk2/lib/libgtk-x11-2.0.so.0 (0xb5efd000)
   libgdk-x11-2.0.so.0 => /apps/gtk2/lib/libgdk-x11-2.0.so.0 (0xb5e67000)
   libatk-1.0.so.0 => /apps/gtk2/lib/libatk-1.0.so.0 (0xb5e4b000)
   libpangoft2-1.0.so.0 => /apps/gtk2/lib/libpangoft2-1.0.so.0 (0xb5e25000)
   libgdk_pixbuf-2.0.so.0 => /apps/gtk2/lib/libgdk_pixbuf-2.0.so.0 (0xb5e06000)
   libpangocairo-1.0.so.0 => /apps/gtk2/lib/libpangocairo-1.0.so.0 (0xb5dfb000)
   libcairo.so.2 => /apps/gtk2/lib/libcairo.so.2 (0xb5d4b000)
   libpango-1.0.so.0 => /apps/gtk2/lib/libpango-1.0.so.0 (0xb5d0a000)
   libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb5ca6000)
   libfontconfig.so.1 => /apps/gtk2/lib/libfontconfig.so.1 (0xb5c74000)
   libgobject-2.0.so.0 => /apps/gtk2/lib/libgobject-2.0.so.0 (0xb5c31000)
   libgmodule-2.0.so.0 => /apps/gtk2/lib/libgmodule-2.0.so.0 (0xb5c2e000)
   libglib-2.0.so.0 => /apps/gtk2/lib/libglib-2.0.so.0 (0xb5b25000)
   libm.so.6 => /lib/libm.so.6 (0xb5b02000)
   libc.so.6 => /lib/libc.so.6 (0xb59f6000)
   /lib/ld-linux.so.2 (0xb77b2000)
   libXau.so.6 => /usr/lib/libXau.so.6 (0xb59f3000)
   libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb59ed000)
   libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb59d7000)
   libSM.so.6 => /usr/lib/libSM.so.6 (0xb59cf000)
   libICE.so.6 => /usr/lib/libICE.so.6 (0xb59b5000)
   libXfixes.so.3 => /usr/local/lib/libXfixes.so.3 (0xb59af000)
   libz.so.1 => /usr/lib/libz.so.1 (0xb599e000)
   libXinerama.so.1 => /usr/local/lib/libXinerama.so.1 (0xb599b000)
   libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb5992000)
   libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb58d0000)
   libXcomposite.so.1 => /usr/local/lib/libXcomposite.so.1 (0xb58cd000)
   libXdamage.so.1 => /usr/local/lib/libXdamage.so.1 (0xb58ca000)
   libpixman-1.so.0 => /apps/gtk2/lib/libpixman-1.so.0 (0xb5847000)
   libxcb-shm.so.0 => /apps/gtk2/lib/libxcb-shm.so.0 (0xb5844000)
   libxcb-render.so.0 => /apps/gtk2/lib/libxcb-render.so.0 (0xb583d000)
   libxcb.so.1 => /apps/gtk2/lib/libxcb.so.1 (0xb5823000)
   libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb5806000)
   libgio-2.0.so.0 => /apps/gtk2/lib/libgio-2.0.so.0 (0xb56e0000)
   libresolv.so.2 => /lib/libresolv.so.2 (0xb56ce000)
   libexpat.so.1 => /apps/gtk2/lib/libexpat.so.1 (0xb56a6000)
   libffi.so.5 => /apps/gtk2/lib/libffi.so.5 (0xb56a0000)
   libuuid.so.1 => /lib/libuuid.so.1 (0xb569b000)
-----------------------------------------------------------------------------------------------------

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #50 on: December 31, 2012, 05:48:44 PM »
Can you provide a link to the protected videos, if they are publicly available, so I can test?

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #51 on: December 31, 2012, 06:34:26 PM »
http://areena.yle.fi/tv

Problem is that locale area restrict codes are used, and have to use some proxy trick to watch outside of Finland.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Flash setup
« Reply #52 on: December 31, 2012, 07:02:59 PM »
Ok, I tried to use various Finnish proxies, but unable to reach the video through  them, so cannot test.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Flash setup
« Reply #53 on: December 31, 2012, 09:28:00 PM »
I was curious so clicked on the link above, then proceeded to watch  the flash TV shows and movies in firefox.  am I missing something?
that was in Windows with flash version 11.5.502.135

opened up firefox in tc and the video did not play, i think I need an updated version of flash which is currently version 11.1.102.55  So attempted to update flash11 but failed to download source "error: downloading source".  I didn't look any further.   Seems like I need to update java also (done)


Ok I understand now,  the video is selective, only some flash video play while most have a connection error.   Disregard
« Last Edit: January 01, 2013, 01:50:17 AM by coreplayer2 »

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #54 on: January 01, 2013, 03:43:14 AM »
There is text "Järjestelmä väliaikaisesti pois käytöstä", when player is not working and played with Finland area code and some different English text if area code is blocked and video not shown for that reason.

This Adobe Access protection may be used other applications, but it is quite new anyway and I don't know other application. I think curaga is finn, could he make tests?

This problem is related with HTLM5/flashplayer problem, HTLM5 is capable to play videos as well, but film studios do not allow to use it for copy right issues. Adobe do not want develop linux version any more, because all know that will be hacked before official release. i think google is committed to hide flashplayer code and that's why chrome is supported.

Macrohard Doors is closed system, so hacking is little bit harder (little bit only).

This Adobe/Google/Chrome system is useless anyway, there is so called "analog hole" which prevents all effort to protect digital media copyrights. That's bad of course, artists (and film studios) should get their money. too.

Only result is like this, illegal use is not prevented, and those who pay (finns TV is financed by tax payers money = that's me too) for product cannot use product.

This case is an excellent example how  these protection mechanism never works as should. That same thing happened with mp3, no protection mechanisms never worked so it has to released for free use.

Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #55 on: January 01, 2013, 06:54:39 AM »
I think it isn't  eventually good idea to reject all public lib bindings like .scm format does.

That is complicated issue, but with current and future MMU, uP, memory types (mass storage, flash memories, fast cashes etc.) and multicore uP structures shared libs are still need.

Shared libraries (and dynamic lib loading) are efficient on large systems where is sufficient memory. mass storage and capable MMU-system. Especially at applications like flashplayer it is good because of applications temporary nature, user wants first to play video and next to close video and start surfing with tinycore forum. It waste of memory and resources to keep all libs loaded, and eventually is impossible as continuous manner if number of applications is not limited somehow. It is reasonable in some cases to keep several copies of same libs (it think this is The Idea behind .scm format), and when loading same lib differently for different applications is indeed isolating lib conflicts, but this flashplayer problem is good example of difficulties encountered with that approach.

Static loading is good idea for embedded systems, and typically dynamic loading is used only when other choices are not possible.

I agree, that TC base system should be on busybox and even fully statically linked, if needed. Actually I have large embedded scientific application, which will run on linux platform. Maintaining proprietary embedded linux is nightmare, and TC is one option. I'm looking for solution, where target system is lightweight embedded TC and development environment is workstation with fully capable TC installation.

I think TC should be dedicated library management to handle different type situations and should include different libs handling. There should be smooth transition from static memory model CLI running small Armcore uP to full powered all-MMU multicore/GPU machine with advanced dynamically loaded libs.


aus9

  • Guest
Re: Flash setup
« Reply #56 on: January 01, 2013, 08:27:00 AM »
I can't read Finnish and have a pepper flash player but its showing a load but not playing does image text help?





Offline Yleisajattelija

  • Full Member
  • ***
  • Posts: 192
Re: Flash setup
« Reply #57 on: January 01, 2013, 08:47:03 AM »
Translation:

Transfer error has occur, try to reload page
1) Problems with your Internet connection, (for example wireless connection has temporary cuts off)
2) You are using service from abroad,  license is limited only for Finland users

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Flash setup
« Reply #58 on: January 01, 2013, 11:00:04 AM »
That's so funny,    initially I clicked on many video's and they all played without error.  Later they became selective where some played while others did not, now none play..   lol   How ridiculous can you get..  all the movies are self protected by the language alone!

I have seen both those errors, must be the hole you mention.   


The reason I'm curious is because HTML5 is not working for me either in tc  - have no audio :(

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Flash setup
« Reply #59 on: January 01, 2013, 11:32:59 AM »
Yes I'm a Finn, but I won't touch Flash by choice. I use yle-dl to watch what few good programs they still make.
The only barriers that can stop you are the ones you create yourself.