Using Flash Player on Firefox (Gentoo specific)

From PS3 Wiki

Jump to: navigation, search

Image:Gentoo-new.gif

Objective

Have a Flash©player and plugin on Firefox, working at a good speed and compatible with Youtube.

Portage Method (emerge)

OBS:Use root user for proceed all tasks here.

  • Create a folder structure for new ebuilds
mkdir /usr/local/portage/flash/media-libs/swfdec -p
mkdir /usr/local/portage/flash/media-libs/swfdec/files
mkdir /usr/local/portage/flash/net-www/swfdec-mozilla -p

On this place we can find all ebuild for emerge SWFDEC

  • Copy the sources to /usr/portage/distfiles
cd /usr/portage/distfiles
wget http://swfdec.freedesktop.org/download/swfdec/0.4/swfdec-0.4.3.tar.gz
wget http://swfdec.freedesktop.org/download/swfdec-mozilla/0.4/swfdec-mozilla-0.4.3.tar.gz
  • Configure your portage

Open the make.conf

vi /etc/make.conf

Add this line or edit this and add /usr/local/portage/flash folder

PORTDIR_OVERLAY="$PORTDIR_OVERLAY /usr/local/portage/flash"
  • Creates the digests files for the packages
ebuild /usr/local/portage/flash/media-libs/swfdec/swfdec-0.4.3-r1.ebuild digest
ebuild /usr/local/portage/flash/net-www/swfdec-mozilla/swfdec-mozilla-0.4.3.ebuild digest
  • Install the packages
echo "media-libs/swfdec ~*" >> /etc/portage/package.keywords
echo "net-www/swfdec-mozilla ~*" >> /etc/portage/package.keywords
echo "media-libs/swfdec alsa ffmpeg gtk mad" >> /etc/portage/package.use
echo "net-www/swfdec-mozilla firefox" >> /etc/portage/package.use
emerge swfdec-mozilla

Hand Method (make install)

This method works for others Linux distros and archs, as it not uses the package manager.

You need a full devel environment (Gentoo Alread have it) this includes, mozdev, gcc, binutils, make, ...

Remark: Jan 13, 2008: I followed the procedure on a Playstation3 with PPC64, but it did not succeed - in Firefox, I could not play the flashplayer videos on youtube.com. BTW, the version number increased to 0.5.5, and that was the version I installed.

  • Make a folder to work and go to it
mkdir ~/swfdec
cd ~/swfdec
  • Download the sources
wget http://swfdec.freedesktop.org/download/swfdec/0.4/swfdec-0.4.3.tar.gz
wget http://swfdec.freedesktop.org/download/swfdec-mozilla/0.4/swfdec-mozilla-0.4.3.tar.gz
  • Untar the files
tar -xvzf swfdec-0.4.3.tar.gz
tar -xvzf swfdec-mozilla-0.4.3.tar.gz
  • Build flash player
cd swfdec-0.4.3
./configure --prefix=/usr
make
make install
  • Build flash plugin
cd swfdec-mozilla-0.4.3
./configure --prefix=/usr
make
make install
Personal tools