pavement

Flash

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(Linux plugin emulation)
(Linux plugin emulation)
 
(20 intermediate revisions by one user not shown)
Line 2: Line 2:
  
 
==Linux plugin emulation==
 
==Linux plugin emulation==
First install nspluginwrapper
+
Install {{port|www/linux-c6-flashplugin11}} through ports, since at times the repository package may be outdated:
# pkg_add -r
+
  # cd /usr/ports/www/linux-c6-flashplugin11; make install clean
Or with options:
+
  # cd /usr/ports/*/nspluginwrapper ; make install clean
+
  
Next install flashplugin11
+
This should install other linux-c6 dependencies, including {{port|www/nspluginwrapper}}. Follow the directions at the end of installing the programs, most of which will be repeated below in the configuration sections.
# cd /usr/ports/www/linux-c6-flashplugin11 ; make install clean
+
  
This should install other linux-c6 dependencies. Follow the directions at the end of installing the programs, most of which will be repeated below in the "Configuration" section. If it cannot fetch the file, download it from here:
+
Load Linux modules according to [[Linux, configuration#Loading Linux modules]].
http://freshmeat.net/projects/flashplugin/
+
  
Run the following for a library plugin to be found by firefox:
+
===/etc/===
nspluginwrapper -v -a -i
+
{{file|/etc/fstab}}
 
+
Or to upgrade from a previous installed Flash plugin:
+
nspluginwrapper -v -a -u
+
 
+
(*note: as of March 5, 2015 this port seems broken)
+
 
+
===How to update to the latest version of Flash===
+
The Linux library file from Adobe can be downloaded and emulated to update an outdated flash player.
+
Download the Flash tar.gz file for Linux at https://get.adobe.com/flashplayer/otherversions/.
+
 
+
Unzip and untar the file:
+
# tar -xzf install_flash_player_*_linux-i386.tar.gz
+
 
+
Brand ''libflashplayer.so'' as a linux file, then move it under ''/usr/local/lib/browser_plugins/'':
+
# brandelf -t Linux libflashplayer.so
+
# mv libflashplayer.so
+
 
+
To upgrade from a previous installed Flash plugin:
+
nspluginwrapper -v -a -u
+
 
+
This setup should work with non-emulated Firefox. This generally provides video playback on most websites requiring flash player. The instructions for updating KDE plugin is slightly different, look for the kde library file under the unzipped ''/usr'' directory. Please see [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu.html FreeBSD handbook (Linux® Binary Compatibility)] for more insight.
+
 
+
===Configuration===
+
====/etc/====
+
/etc/fstab
+
 
  linproc        /compat/linux/proc    linprocfs  rw    0  0
 
  linproc        /compat/linux/proc    linprocfs  rw    0  0
#possibly the two below
 
fdesc          /dev/fd              fdescfs    rw    0  0
 
 
  proc            /proc                procfs    rw    0  0
 
  proc            /proc                procfs    rw    0  0
  
/etc/rc.conf
+
{{file|/etc/devfs.conf}}
linux_enable="YES"
+
 
+
/etc/devfs.conf
+
 
  link /tmp shm
 
  link /tmp shm
  
/etc/sysctl.conf
+
{{file|/etc/sysctl.conf}}
 
  compat.linux.osrelease=2.6.18
 
  compat.linux.osrelease=2.6.18
  
====/compat/linux/====
+
===/compat/linux/===
  
/compat/linux/ should have at least the following sub-directories: etc/ lib/ proc/ usr/
+
{{file|/compat/linux/etc/yp.conf}}
% cd /compat/linux/
+
% mkdir etc/ lib/ proc/ usr/
+
 
+
/compat/linux/etc/yp.conf
+
 
  domainname mydomain.com  # this is your network's domain-name without localhost
 
  domainname mydomain.com  # this is your network's domain-name without localhost
 
  ypserver localhost  # my.yp.server
 
  ypserver localhost  # my.yp.server
  
/compat/linux/etc/nsswitch.conf
+
{{file|/compat/linux/etc/nsswitch.conf}}
 
  passwd:    files nis
 
  passwd:    files nis
 
  shadow:    files nis
 
  shadow:    files nis
 
  group:      files nis
 
  group:      files nis
 
  hosts:     files nis dns
 
  hosts:     files nis dns
<!---
 
====libmap.conf====
 
  
Add the following to /etc/libmap.conf
+
===Run nspluginwrapper===
# Flash7 for Firefox
+
Run the following for a library plugin to be found by Firefox:
  [/usr/local/lib/npapi/linux-flashplugin/libflashplayer.so]
+
  nspluginwrapper -v -a -i
libpthread.so.0                pluginwrapper/flash7.so
+
libdl.so.2                      pluginwrapper/flash7.so
+
libz.so.1                      libz.so.3
+
libstdc  -libc6.2-2.so.3        libstdc  .so.4
+
libm.so.6                      libm.so.4
+
libc.so.6                      pluginwrapper/flash7.so
+
+
+
# Flash6 for Konqueror
+
[/usr/X11R6/lib/linux-flashplugin6/libflashplayer.so]
+
libpthread.so.0                pluginwrapper/flash6.so
+
libdl.so.2                      pluginwrapper/flash6.so
+
libz.so.1                      libz.so.3
+
libstdc  -libc6.2-2.so.3        libstdc  .so.5
+
libm.so.6                      libm.so.4
+
libc.so.6                      pluginwrapper/flash6.so -->
+
  
 +
Or to upgrade from a previous installed Flash plugin:
 +
nspluginwrapper -v -a -u
  
====Konqueror====
+
To view the loaded plugins:
 
+
  nspluginwrapper -l
Go to Settings -> Configure Konqueror -> plugins
+
 
+
Create the directory and link files
+
  # mkdir /usr/X11R6/lib/linux-flashplugin6
+
# cd /usr/X11R6/lib/linux-flashplugin6
+
# ln -s /usr/local/lib/npapi/linux-flashplugin/flashplayer.xpt
+
# ln -s /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
+
 
+
Now hit 'Scan for new plugins'
+
 
+
Now go and test it out.
+
 
+
===Linux Opera===
+
 
+
I've noticed that some things work better under linux-opera than any other browser on FreeBSD.  For instance the Asterisk Flash Operator Panel will only work properly under this port and YouTube works with sound and video under opera!
+
  
All you should have to do is install it. Opera will automatically use the libmap.conf file to find the flash libraries and load them.
+
If this doesn't work on Firefox, all packages may need to be reinstalled cleanly.
# cd /usr/ports/www/linux-opera && make install clean
+
  
 
==Wine emulation==
 
==Wine emulation==
Line 118: Line 48:
 
Full Adobe Flash 9 support can be present by using a Win32 browser and Adobe Flash 9 for Windows in WINE. This was tested with WINE 0.9.59, FreeBSD 7-Release and Firefox 2.0.0.13.
 
Full Adobe Flash 9 support can be present by using a Win32 browser and Adobe Flash 9 for Windows in WINE. This was tested with WINE 0.9.59, FreeBSD 7-Release and Firefox 2.0.0.13.
  
Alternatively look into installing the package ''emulators/pipelight'', which is meant to use windows plugins, through wine emulation, in non-emulated FreeBSD browsers. (I haven't tested this set-up)
+
Alternatively look into installing the package {{port|emulators/pipelight}}, which is meant to use windows plugins, through wine emulation, in non-emulated FreeBSD browsers. (I haven't tested this set-up)
  
 
==External Links==
 
==External Links==

Latest revision as of 07:21, 30 October 2015

The Adobe Flash player plugin can be emulated to run on native browsers. Alternatively, the browser can also be emulated, but this method seems to lack performance.

Contents

[edit] Linux plugin emulation

Install www/linux-c6-flashplugin11 through ports, since at times the repository package may be outdated:

# cd /usr/ports/www/linux-c6-flashplugin11; make install clean

This should install other linux-c6 dependencies, including www/nspluginwrapper . Follow the directions at the end of installing the programs, most of which will be repeated below in the configuration sections.

Load Linux modules according to Linux, configuration#Loading Linux modules.

[edit] /etc/

/etc/fstab

linproc         /compat/linux/proc    linprocfs  rw    0   0
proc            /proc                 procfs     rw    0   0

/etc/devfs.conf

link /tmp shm

/etc/sysctl.conf

compat.linux.osrelease=2.6.18

[edit] /compat/linux/

/compat/linux/etc/yp.conf

domainname	mydomain.com  # this is your network's domain-name without localhost
ypserver	localhost  # my.yp.server

/compat/linux/etc/nsswitch.conf

passwd:     files nis
shadow:     files nis
group:      files nis
hosts:	    files nis dns

[edit] Run nspluginwrapper

Run the following for a library plugin to be found by Firefox:

nspluginwrapper -v -a -i

Or to upgrade from a previous installed Flash plugin:

nspluginwrapper -v -a -u

To view the loaded plugins:

nspluginwrapper -l

If this doesn't work on Firefox, all packages may need to be reinstalled cleanly.

[edit] Wine emulation

Full Adobe Flash 9 support can be present by using a Win32 browser and Adobe Flash 9 for Windows in WINE. This was tested with WINE 0.9.59, FreeBSD 7-Release and Firefox 2.0.0.13.

Alternatively look into installing the package emulators/pipelight , which is meant to use windows plugins, through wine emulation, in non-emulated FreeBSD browsers. (I haven't tested this set-up)

[edit] External Links

http://freebsd.kde.org/howtos/konqueror-flash.php


Some more extensive step-by-step instructions:

http://freebsd.langhans.com.pl


[edit] See also

The PC-BSD project have released version 1.4 of their FreeBSD based distribution which includes native Flash Player in Konqueror, Firefox and Opera.

Personal tools