个人工具

“UbuntuHelp:AMD64/FirefoxAndPlugins”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的12个中间版本)
第2行: 第2行:
 
{{Languages|UbuntuHelp:AMD64/FirefoxAndPlugins}}
 
{{Languages|UbuntuHelp:AMD64/FirefoxAndPlugins}}
 
== Introduction ==
 
== Introduction ==
If you need support for more plugins and would like to install a 32bit version of firefox to accomplish that, then see the section [[32bit below]]. If you want to keep using your 64bit browser and just need flash, then see the [[nspluginwrapper nspluginwrapper]] section further down in this page which will allow you to run your 64bit browser and 32bit flash.
+
Since the release of Hardy Heron it is possible to use the 64-bit browser, [[UbuntuHelp:[flash|Flash]]], [[UbuntuHelp:[java|Java]]], and [[UbuntuHelp:MPlayer|MPlayer]] plugins from the Ubuntu repositories.
[[Anchor(32bit)]]
+
If you need support for more plugins and would like to install a 32-bit version of Firefox to accomplish that, then see the section [[UbuntuHelp:[32-bit|below]]].
== 32bit Firefox and plugins ==
+
A 64-bit version from Adobe is under development, and the latest release can be downloaded from [http://labs.adobe.com/technologies/flashplayer10/ Adobe labs]. As of end of 2009, it is still in alpha testing stage, but is actually very stable for the common needs, as long as you don't need to use microphone or webcam with it. So it is the less painful way as you can install the 64-bit flash plugin as you do in the old-style way in 32bits environments for the flash 32-bit plugin.
The following technique is a painless way install 32bit Firefox and proprietary 32 bit binary plug-ins into your Ubuntu amd64 bit installation.  It is accomplished ''without'' the complexity of establishing a 32 bit chroot environment.
+
<<Anchor(flash)>>
=== Installing Firefox ===
+
== 64-bit Firefox and 64-bit Flash plugin (Not officially supported by Ubuntu) ==
==== Installing 32 Bit Emulation Libraries ====
+
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=info.png Use script provided and maintained in [http://ubuntuforums.org/showthread.php?t=1358591 this forum thread]. The script automates the steps listed below.
Before you can use the 32-bit version of Firefox you need to install the fundamental libraries for 32 bit support under 64 bit native Linux. Open a terminal and install these:
+
* Or use the following manual procedure:
 +
''''''
 +
<ol><li>Remove currently installed versions of Flash.</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install ia32-libs ia32-libs-gtk lib32asound2
+
sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla
 
  </nowiki></pre>
 
  </nowiki></pre>
==== Installing 32 Bit Edition of Firefox ====
+
<ol><li>Visit [http://labs.adobe.com/downloads/flashplayer10_64bit.html] to update the filename given under if necessary.
# Download the installation gzip from [http://www.getfirefox.com Get Firefox].
+
</li><li>Download the 64-bit Flash plugin and extract it:</li></ol>
# Open a terminal, and navigate to the directory where you saved it to. Extract the tarball and move it (adjust the file name as needed):
+
 
 
<pre><nowiki>
 
<pre><nowiki>
tar -zxf firefox-2.0.0.7.tar.gz
+
wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz && tar xvfz libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
sudo mv firefox /usr/local/firefox32
+
</nowiki></pre>
  </nowiki></pre>
+
<ol><li>Put the file in /usr/lib/flashplugin-installer/libflashplayer64.so for a site-wide install (or in ~/.mozilla/plugins for a single-user install):</li></ol>
# Next we must setup some minor font details.
+
 
First, create the ''/etc/pango32'' directory if it  does not already exist.
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo mkdir /etc/pango32
+
sudo mv libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer64.so
  </nowiki></pre>
+
</nowiki></pre>
Create the environment variable file for pango32 and open it for editing:
+
Versions of ubuntu with the flashplugin-installer use the alternatives system to manage links for flash plugins in multiple locations (use locate flashplugin-alternative.so to see them all). Ubuntu Karmic (9.10) firefox-3.5.7 uses the link in /usr/lib/xulrunner-addons/plugins, but other versions of firefox may use /usr/lib/mozilla/plugins or one of the others. Each plugins folder has a corresponding group name such as xulrunner-addons-flashplugin or mozilla-flashplugin. If you do not have flashplugin-installer installed, just ignore this and instead run:
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit /etc/pango32/pangorc &
+
sudo mkdir /usr/lib/flashplugin-installer
  </nowiki></pre>
+
</nowiki></pre>
Or if on '''Kubuntu''':
+
The alternatives system also manages links for iceape, icewasel and midbrowser in Ubuntu Karmic. Each alternative has a priority, if you installed the 32bit flash it will have the default priority of 50. The alternative of the highest priority will be chosen automatically for each group.
 +
<ol><li>Install the link (60 is the priority, you can use any value 0-100)</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
kdesu kate /etc/pango32/pangorc &
+
sudo update-alternatives --install /usr/lib/xulrunner-addons/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60
  </nowiki></pre>
+
</nowiki></pre>
Then paste the script into the editor:
+
<ol><li>Note that for Lucid, the command is:</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
[Pango]
+
sudo update-alternatives --install /usr/lib/mozilla/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60
ModuleFiles=/etc/pango32/pango.modules
+
</nowiki></pre>
[PangoX]
+
The syntax is update-alternatives --install <location where programs will use the link> <group_name> <real file with full path> <priority>.
AliasFiles=/etc/pango/pangox.aliases
+
<ol><li>To configure which alternative is active use:</li></ol>
  </nowiki></pre>
+
 
Save the file and close the editor.
+
# Finally, create a small script to setup the environment variables and launch our 32 bit version of Firefox.
+
 
<pre><nowiki>
 
<pre><nowiki>
gksudo gedit /usr/local/bin/firefox32 &
+
  sudo update-alternatives --config xulrunner-addons-flashplugin
  </nowiki></pre>
+
Or for '''Kubuntu''':
+
<pre><nowiki>
+
kdesu kate /usr/local/bin/firefox32 &
+
  </nowiki></pre>
+
Copy and paste the shell script instructions below:
+
<pre><nowiki>
+
#!/bin/sh
+
export GTK_PATH=/usr/lib32/gtk-2.0
+
export PANGO_RC_FILE=/etc/pango32/pangorc
+
export GDK_PIXBUF_MODULE_FILE=/etc/gtk-2.0/gdk-pixbuf.loaders.32
+
linux32 /usr/local/firefox32/firefox $@
+
  </nowiki></pre>
+
Save the file and close the editor.
+
Make the file executable so that we can launch it:
+
<pre><nowiki>
+
sudo chmod +x /usr/local/bin/firefox32
+
  </nowiki></pre>
+
# At this point, close down all instances of Firefox that you might have running. Firefox will spawn new versions of Firefox based upon any current versions you have running. This means that if you wish to load the 32 bit version, you must make certain that you have ''no'' instances of the 64 bit version running, and vice versa. Once you have closed all instances of Firefox (including the one in which you are probably reading this), test the executable with the following command in a terminal:
+
<pre><nowiki>
+
firefox32 &
+
  </nowiki></pre>
+
It should load properly. Ignore any warnings that might be output to the shell.
+
==== 32 Bit Plug-ins ====
+
The process for installing plug-ins is relatively painless.  Simply take the library file and place it into your newly created /usr/local/firefox32/plugins directory. All of these are optional, you can pick and choose from any of them that you wish to install.
+
===== Flash =====
+
First off, open a Terminal (Applications - Accessories), and copy/paste these commands into it:
+
<pre><nowiki>
+
cd ~/Desktop
+
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz
+
  </nowiki></pre>
+
This will download the Flash Player on your Desktop. Then, copy/paste the following:
+
<pre><nowiki>
+
tar -zxf install_flash_player_9_linux.tar.gz
+
  </nowiki></pre>
+
To extract the flash from the archive, and then just copy/paste this:
+
<pre><nowiki>
+
sudo mv install_flash_player_9_linux/libflashplayer.so /usr/local/firefox32/plugins/
+
  </nowiki></pre>
+
To move flash into the Firefox Plug-ins folder, from where Firefox will be able to run it. Now simply restart Firefox, and your Flash will be working!
+
===== Java =====
+
# To install the Java applet plugin for 32 bit Firefox, open a Terminal (Applications - Accessories), and copy/paste these commands into it:
+
<pre><nowiki>
+
sudo aptitude install ia32-sun-java6-bin
+
  </nowiki></pre>
+
# This will download and install java. Then, copy/paste the following:
+
<pre><nowiki>
+
sudo ln -s /usr/lib/jvm/ia32-java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/firefox32/plugins/
+
  </nowiki></pre>
+
This'll install a link within the Firefox 32 bit edition plugins directory and the Java applet. Now simply restart Firefox, and your Java will be working!
+
===== [[UbuntuHelp:RealPlayer|RealPlayer]] =====
+
# Download the installation package from [http://forms.real.com/real/player/download.html?f=unix/RealPlayer10GOLD.bin&product=playerplus&system=linux&pageid=unagi.8902005&pageregion=A1&src=realhome_linux_bb_0_3_1_0_0_1_0&pcode=rn&opage=realhome_linux_bb the [[UbuntuHelp:RealPlayer|RealPlayer]] website].
+
# Next, open up a terminal and change to the directory where you saved the file you downloaded. Make the file executable and extract it:
+
<pre><nowiki>
+
chmod +x RealPlayer10GOLD.bin
+
./RealPlayer10GOLD.bin
+
  </nowiki></pre>
+
#  Accept the default location and extract. Move the file to the appropriate area:
+
<pre><nowiki>
+
sudo mv RealPlayer /usr/local/realplayer32
+
  </nowiki></pre>
+
# Link the appropriate files to your Firefox 32 bit plug-in directory:
+
<pre><nowiki>
+
sudo ln -s /usr/local/realplayer32/mozilla/* /usr/local/firefox32/plugins
+
  </nowiki></pre>
+
# Link the [[UbuntuHelp:RealPlayer|RealPlayer]] binary blob file to a location that your default path can find it:
+
<pre><nowiki>
+
sudo ln -s /usr/local/realplayer32/realplay /usr/local/bin/realplay
+
  </nowiki></pre>
+
===== [[UbuntuHelp:MPlayer|MPlayer]] =====
+
# First download a copy of the [http://mplayerplug-in.sourceforge.net/ Mplayer plugins] attached [https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins?action=AttachFile&do=get&target=firefoxmplayer.tar.bz2 here].
+
# Open up a terminal and change to the directory where you downloaded the file. Extract the compressed file:
+
<pre><nowiki>
+
tar xjf firefoxmplayer.tar.bz2
+
 
  </nowiki></pre>
 
  </nowiki></pre>
# Copy the Mplayer plug-in files contained in the compressed file to /usr/local/firefox32/plugins/
+
At this stage, you should restart Firefox and verify that the plugin is installed by selecting Tools/Add-ons in the menu. You can check validity of you installation as well as installed version at [http://www.adobe.com/software/flash/about/ Adobe - About Flash Player]
 +
''''''
 +
* Uninstallation instructions:
 
<pre><nowiki>
 
<pre><nowiki>
sudo cp firefoxmplayer/mplayerplug-in* /usr/local/firefox32/plugins/
+
sudo update-alternatives --remove xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so
 +
sudo rm /usr/lib/flashplugin-installer/libflashplayer64.so
 
  </nowiki></pre>
 
  </nowiki></pre>
=== Optional Extras ===
+
Repeat the update-alternatives for any other plugin locations you added.
==== Set 32-bit Firefox As the Default Browser ====
+
== 64-bit Firefox and 32-bit Flash plugin (Officially supported by Ubuntu to the extent possible with Flash) ==
# Click System menu, then select ''Preferences > Preferred Applications''.
+
A fallback if the above scenario failed is Ubuntu-packaged 32-bit flash with nspluginwrapper.
# Under the '''Internet''' tab, choose '''Custom''' from the drop down list under '''Web Browser'''.
+
* Hardy Heron 8.04: [[UbuntuHelp:InstallingSoftware#installing-a-package|install the following package]]: '''''[[UbuntuHelp:apt:flashplugin-nonfree|apt:flashplugin-nonfree]]'''''.
# In the '''Command''' edit-box, type:
+
* Jaunty Jackalope 9.04, Karmic Koala 9.10 and newer: [[UbuntuHelp:InstallingSoftware#installing-a-package|install the following package]]: '''''[[UbuntuHelp:apt:flashplugin-installer|apt:flashplugin-installer]]'''''.
 +
<<Anchor(java)>>
 +
== 64-bit Firefox and 64-bit Java plugin ==
 +
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.pngInstructions are different from Firefox 3.5 and Firefox 3.6. For obtaining the latest version of Firefox 3.6 (as of February 2010), refer to [[UbuntuHelp:FirefoxNewVersion|FirefoxNewVersion]]. For more information about changes in Firefox 3.6, see [http://java.com/en/download/faq/firefox_newplugin.xml Why do I need Java 6 Update 10 and above for Firefox 3.6 and later versions?]
 +
* Firefox 3.6:
 +
* Install Java
 
<pre><nowiki>
 
<pre><nowiki>
firefox32 "%s"
+
    sudo apt-get remove --purge icedtea6-plugin
 +
    sudo apt-get install sun-java6-plugin
 
</nowiki></pre>
 
</nowiki></pre>
4. Click '''Close'''.
+
You may need to [[UbuntuHelp:Repositories/Ubuntu#Adding_Canonical_Partner_Repositories|enable|the Partner repository]] to install the sun-java6-plugin package. Then configure the new plugin.
==== Create a Firefox 32 Bit Menu Launcher ====
+
# Add a menu item or panel item.  Choose a suitable icon.
+
# Under the <pre><nowiki> command </nowiki></pre> entry, simply type firefox32.
+
# Edit the rest of the description as you like.
+
==== Beautifying Firefox's Widgets ====
+
To make Firefox use much nicer buttons and other widgets, follow the instructions below.
+
First, grab the widgets, extract them and back up your existing set:
+
 
<pre><nowiki>
 
<pre><nowiki>
wget http://users.tkk.fi/~otsaloma/art/firefox-form-widgets.tar.gz
+
sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib64/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so 50
tar -xvzf firefox-form-widgets.tar.gz
+
sudo cp /usr/local/firefox32/res/forms.css /usr/lib/mozilla-firefox/res/forms.css.bak
+
 
</nowiki></pre>
 
</nowiki></pre>
Finally, set Firefox to use the new widgets:
+
* Firefox 3.5:
 
<pre><nowiki>
 
<pre><nowiki>
cat firefox-form-widgets/res/forms-extra.css | sudo tee --append /usr/local/firefox32/res/forms.css > /dev/null
+
sudo apt-get install icedtea6-plugin
sudo cp -r firefox-form-widgets/res/form-widgets /usr/local/firefox32/res
+
</nowiki></pre>
</nowiki></pre>
+
<<Anchor(32-bit)>>
==== Troubleshooting ====
+
== 32-bit Firefox and plugins ==
 +
{|border="1" cellspacing="0"
 +
|https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconWarning3.png||''Unless you have a specific reason to run the Mozilla build, it's recommended to use the packages from the official Ubuntu repositories.''>See the [[UbuntuHelp:AMD64/|recommended procedure]] for getting Firefox.
 +
|}
 +
Instructions for installation of 32-bit Firefox from Mozilla builds is available at [[UbuntuHelp:FirefoxNewVersion/MozillaBuilds|FirefoxNewVersion/MozillaBuilds]].
 +
== Troubleshooting ==
 
'''For suggestions/discussion please use [[UbuntuHelp:AMD64/FirefoxAndPlugins/talk|AMD64/FirefoxAndPlugins/talk]]'''
 
'''For suggestions/discussion please use [[UbuntuHelp:AMD64/FirefoxAndPlugins/talk|AMD64/FirefoxAndPlugins/talk]]'''
* A recent upgrade to Feisty development has shown that Firefox 32 bit edition may not connect to the net under certain circumstances.
 
*# If you are running Feisty, when you load your Firefox 32 bit edition as per the following instructions, enter "about:config" into the address bar.
 
*## Type in "ipv6" and switch the setting to disabled by double clicking on the cell.  This should fix the temporary issue on Ubuntu Feisty amd64 (7.04)
 
* Currently the Java implementation under Feisty (7.04) may have issues. This also appears to be an IPV4 issue.
 
*# Execute /usr/local/java32/bin/ControlPanel
 
*## Click tab "Java", then "View..." in "Java Applet Runtime Settings"
 
1 . Double-click below "Java Runtime Parameters" and enter  "-Djava.net.preferIPv4Stack=true"
 
 
* [[UbuntuHelp:RealPlayer|RealPlayer]] Issues
 
* [[UbuntuHelp:RealPlayer|RealPlayer]] Issues
You may need add the 32 bit version of RealPlayer to your path variable.
+
You may need add the 32-bit version of [[UbuntuHelp:RealPlayer|RealPlayer]] to your path variable.
 
* Alternative Installation Solution
 
* Alternative Installation Solution
 
If the above installation solution did not work for you, there is another solution, requiring the use of WINE.
 
If the above installation solution did not work for you, there is another solution, requiring the use of WINE.
# Make sure the universe repsitory is enabled. In terminal enter:
+
<ol><li>Make sure the universe repsitory is enabled. In terminal enter:</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
sudo apt-get install ia32-libs lib32asound2  
+
sudo apt-get install ia32-libs lib32asound2
 
   </nowiki></pre>
 
   </nowiki></pre>
This will download the necessary 32 bit binaries for WINE.
+
This will download the necessary 32-bit binaries for WINE.
# Download the most recent WINE .deb file from http://wine.budgetdedicated.com/archive/index.html. Save the file to your desktop.
+
<ol><li>Download the most recent WINE .deb file from http://wine.budgetdedicated.com/archive/index.html. Save the file to your desktop.
# In terminal enter:
+
</li><li>In terminal enter:</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
cd ~/Desktop  
+
cd ~/Desktop
sudo dpkg --force-architecture -i wine_*_i386.deb  
+
sudo dpkg --force-architecture -i wine_*_i386.deb
 
   </nowiki></pre>
 
   </nowiki></pre>
# Download the Mozilla Firefox exe from http://www.mozilla.com/products/download.html?product=firefox-2.0.0.3&os=win&lang=en-GB. Save the file to your desktop.
+
<ol><li>Download the Mozilla Firefox exe from http://www.mozilla.com/products/download.html?product=firefox-3.0.9&os=win&lang=en-US. Save the file to your desktop.
# In terminal enter:
+
</li><li>In terminal enter:</li></ol>
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
cd ~/Desktop  
+
cd ~/Desktop
 
wine firefox*
 
wine firefox*
 
   </nowiki></pre>
 
   </nowiki></pre>
# Install Firefox normally by following the installer with default settings.
+
<ol><li>Install Firefox normally by following the installer with default settings.
Download Plugins
+
</li><li>Download Plugins
## Open the new link to Firefox that has appeared on your desktop.
+
<ol><li>Open the new link to Firefox that has appeared on your desktop.
## Navigate to a website that uses the plugins required (e.g http://youtube.com/ for Flash).
+
</li><li>Navigate to a website that uses the plugins required (e.g http://youtube.com/ for Flash).
## Click the button labled "Install Missing Plugins" in the bar at the top of the page, and install the plugin(s) from the menu shown.
+
</li><li>Click the button labled "Install Missing Plugins" in the bar at the top of the page, and install the plugin(s) from the menu shown.
## Test by trying to view a page for that plugin.
+
</li><li>Test by trying to view a page for that plugin.</li></ol>
/!\ '''NOTE:''' If you cannot hear any sound with the plugins, open terminal and type "winecfg" and select sound preferences in the audio tab.
+
 
[[Anchor(nspluginwrapper)]]
+
/!\ '''NOTE:''' If you cannot hear any sound with the plugins, open terminal and type "winecfg" and select sound preferences in the audio tab.
== Using nspluginwrapper for flash ==
+
----
This is for users who would like to use 64bit Firefox but want flash.  If you have followed the instructions above, then you already have flash working your 32bit Firefox and probably do not need to do this.
+
=== Gutsy Gibbon 7.10 ===
+
Install the nspluginwrapper.
+
<pre><nowiki>
+
sudo apt-get install nspluginwrapper
+
</nowiki></pre>
+
Open Firefox and visit a page that requires flash, for example http://www.adobe.com/products/flash/about/.  Install the plugin by clicking on "Install Missing Plugins..." on the yellow bar at the top of the browser window as in the screenshot below.  The Epiphany browser will use the flash plugin installed from Firefox.
+
https://help.ubuntu.com/community/AMD64/FirefoxAndPlugins?action=AttachFile&do=get&target=Screenshot-Adobe%2520-%2520Flash%2520Player%2520-%2520Mozilla%2520Firefox.png
+
=== Versions prior to 7.10 ===
+
==== Install the dependencies ====
+
<pre><nowiki>
+
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2
+
</nowiki></pre>
+
==== Install nspluginwrapper ====
+
add the respository from: http://www.janvitus.netsons.org/repository/
+
Then Install
+
<pre><nowiki>
+
sudo apt-get install nspluginwrapper gsfonts-x11
+
</nowiki></pre>
+
==== Download Flash ====
+
Download the .tar.gz Flash player 9 from Adobe site http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash
+
==== Run nspluginwrapper ====
+
Copy “libflashplayer.so” and “flashplayer.xpt” to /usr/lib/mozilla-firefox/plugins/
+
Shutdown Firefox and run this:
+
<pre><nowiki>
+
nspluginwrapper -i /usr/lib/mozilla-firefox/plugins/libflashplayer.so
+
</nowiki></pre>
+
Now flash should work!
+
/!\ nspluginwrapper will create ~/.mozilla/plugins/npwrapper.libflashplayer.so However flash might not be detected by firefox until npwrapper.libflashplayer.so is copied back to /usr/lib/mozilla-firefox/plugins/
+
=== See Also ===
+
http://ubuntuforums.org/showthread.php?t=341727
+
 
----
 
----
[[category:CategoryDocumentation]]
+
[[category:CategoryInternet]] [[category:CategoryInternet]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 17:22的最新版本

Introduction

Since the release of Hardy Heron it is possible to use the 64-bit browser, [[UbuntuHelp:[flash|Flash]]], [[UbuntuHelp:[java|Java]]], and MPlayer plugins from the Ubuntu repositories. If you need support for more plugins and would like to install a 32-bit version of Firefox to accomplish that, then see the section [[UbuntuHelp:[32-bit|below]]]. A 64-bit version from Adobe is under development, and the latest release can be downloaded from Adobe labs. As of end of 2009, it is still in alpha testing stage, but is actually very stable for the common needs, as long as you don't need to use microphone or webcam with it. So it is the less painful way as you can install the 64-bit flash plugin as you do in the old-style way in 32bits environments for the flash 32-bit plugin. <<Anchor(flash)>>

64-bit Firefox and 64-bit Flash plugin (Not officially supported by Ubuntu)

IconsPage?action=AttachFile&do=get&target=info.png Use script provided and maintained in this forum thread. The script automates the steps listed below.

  • Or use the following manual procedure:

'

  1. Remove currently installed versions of Flash.
 sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla
 
  1. Visit [1] to update the filename given under if necessary.
  2. Download the 64-bit Flash plugin and extract it:
 wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz && tar xvfz libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
 
  1. Put the file in /usr/lib/flashplugin-installer/libflashplayer64.so for a site-wide install (or in ~/.mozilla/plugins for a single-user install):
 sudo mv libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer64.so
 

Versions of ubuntu with the flashplugin-installer use the alternatives system to manage links for flash plugins in multiple locations (use locate flashplugin-alternative.so to see them all). Ubuntu Karmic (9.10) firefox-3.5.7 uses the link in /usr/lib/xulrunner-addons/plugins, but other versions of firefox may use /usr/lib/mozilla/plugins or one of the others. Each plugins folder has a corresponding group name such as xulrunner-addons-flashplugin or mozilla-flashplugin. If you do not have flashplugin-installer installed, just ignore this and instead run:

 sudo mkdir /usr/lib/flashplugin-installer
 

The alternatives system also manages links for iceape, icewasel and midbrowser in Ubuntu Karmic. Each alternative has a priority, if you installed the 32bit flash it will have the default priority of 50. The alternative of the highest priority will be chosen automatically for each group.

  1. Install the link (60 is the priority, you can use any value 0-100)
 sudo update-alternatives --install /usr/lib/xulrunner-addons/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60
 
  1. Note that for Lucid, the command is:
 sudo update-alternatives --install /usr/lib/mozilla/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60
 

The syntax is update-alternatives --install <location where programs will use the link> <group_name> <real file with full path> <priority>.

  1. To configure which alternative is active use:
 sudo update-alternatives --config xulrunner-addons-flashplugin
 

At this stage, you should restart Firefox and verify that the plugin is installed by selecting Tools/Add-ons in the menu. You can check validity of you installation as well as installed version at Adobe - About Flash Player '

  • Uninstallation instructions:
 sudo update-alternatives --remove xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so
 sudo rm /usr/lib/flashplugin-installer/libflashplayer64.so
 

Repeat the update-alternatives for any other plugin locations you added.

64-bit Firefox and 32-bit Flash plugin (Officially supported by Ubuntu to the extent possible with Flash)

A fallback if the above scenario failed is Ubuntu-packaged 32-bit flash with nspluginwrapper.

<<Anchor(java)>>

64-bit Firefox and 64-bit Java plugin

https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=warning.pngInstructions are different from Firefox 3.5 and Firefox 3.6. For obtaining the latest version of Firefox 3.6 (as of February 2010), refer to FirefoxNewVersion. For more information about changes in Firefox 3.6, see Why do I need Java 6 Update 10 and above for Firefox 3.6 and later versions?

  • Firefox 3.6:
  • Install Java
    sudo apt-get remove --purge icedtea6-plugin
    sudo apt-get install sun-java6-plugin

You may need to enable|the Partner repository to install the sun-java6-plugin package. Then configure the new plugin.

 sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/lib64/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so 50
  • Firefox 3.5:
 sudo apt-get install icedtea6-plugin

<<Anchor(32-bit)>>

32-bit Firefox and plugins

IconsPage?action=AttachFile&do=get&target=IconWarning3.png Unless you have a specific reason to run the Mozilla build, it's recommended to use the packages from the official Ubuntu repositories.>See the recommended procedure for getting Firefox.

Instructions for installation of 32-bit Firefox from Mozilla builds is available at FirefoxNewVersion/MozillaBuilds.

Troubleshooting

For suggestions/discussion please use AMD64/FirefoxAndPlugins/talk

You may need add the 32-bit version of RealPlayer to your path variable.

  • Alternative Installation Solution

If the above installation solution did not work for you, there is another solution, requiring the use of WINE.

  1. Make sure the universe repsitory is enabled. In terminal enter:
sudo apt-get install ia32-libs lib32asound2
   

This will download the necessary 32-bit binaries for WINE.

  1. Download the most recent WINE .deb file from http://wine.budgetdedicated.com/archive/index.html. Save the file to your desktop.
  2. In terminal enter:
cd ~/Desktop
sudo dpkg --force-architecture -i wine_*_i386.deb
   
  1. Download the Mozilla Firefox exe from http://www.mozilla.com/products/download.html?product=firefox-3.0.9&os=win&lang=en-US. Save the file to your desktop.
  2. In terminal enter:
cd ~/Desktop
wine firefox*
   
  1. Install Firefox normally by following the installer with default settings.
  2. Download Plugins
    1. Open the new link to Firefox that has appeared on your desktop.
    2. Navigate to a website that uses the plugins required (e.g http://youtube.com/ for Flash).
    3. Click the button labled "Install Missing Plugins" in the bar at the top of the page, and install the plugin(s) from the menu shown.
    4. Test by trying to view a page for that plugin.

    /!\ NOTE: If you cannot hear any sound with the plugins, open terminal and type "winecfg" and select sound preferences in the audio tab.