“UbuntuHelp:AMD64/FirefoxAndPlugins”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
(未显示同一用户的9个中间版本) | |||
第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 | + | 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. |
− | + | 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 [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. | |
− | + | <<Anchor(flash)>> | |
− | == | + | == 64-bit Firefox and 64-bit Flash plugin (Not officially supported by Ubuntu) == |
− | ==== | + | 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. |
− | + | * Or use the following manual procedure: | |
+ | '''''' | ||
+ | <ol><li>Remove currently installed versions of Flash.</li></ol> | ||
+ | |||
<pre><nowiki> | <pre><nowiki> | ||
− | sudo apt-get | + | sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla |
</nowiki></pre> | </nowiki></pre> | ||
− | + | <ol><li>Visit [http://labs.adobe.com/downloads/flashplayer10_64bit.html] to update the filename given under if necessary. | |
− | <ol><li> | + | </li><li>Download the 64-bit Flash plugin and extract it:</li></ol> |
− | </li><li> | + | |
<pre><nowiki> | <pre><nowiki> | ||
− | + | 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 | |
− | + | </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> | |
− | <ol><li> | + | |
− | |||
<pre><nowiki> | <pre><nowiki> | ||
− | sudo | + | sudo mv libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer64.so |
− | + | </nowiki></pre> | |
− | + | 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> | ||
− | + | sudo mkdir /usr/lib/flashplugin-installer | |
− | + | </nowiki></pre> | |
− | + | 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> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <ol><li> | + | |
<pre><nowiki> | <pre><nowiki> | ||
− | + | sudo update-alternatives --install /usr/lib/xulrunner-addons/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60 | |
− | + | </nowiki></pre> | |
− | + | <ol><li>Note that for Lucid, the command is:</li></ol> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <ol><li> | + | |
<pre><nowiki> | <pre><nowiki> | ||
− | + | sudo update-alternatives --install /usr/lib/mozilla/plugins/flashplugin-alternative.so xulrunner-addons-flashplugin /usr/lib/flashplugin-installer/libflashplayer64.so 60 | |
− | + | </nowiki></pre> | |
− | + | The syntax is update-alternatives --install <location where programs will use the link> <group_name> <real file with full path> <priority>. | |
− | + | <ol><li>To configure which alternative is active use:</li></ol> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <ol><li>To | + | |
<pre><nowiki> | <pre><nowiki> | ||
− | sudo | + | sudo update-alternatives --config xulrunner-addons-flashplugin |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | 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 | + | 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> | ||
− | + | 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. | |
− | + | * Hardy Heron 8.04: [[UbuntuHelp:InstallingSoftware#installing-a-package|install the following package]]: '''''[[UbuntuHelp:apt:flashplugin-nonfree|apt:flashplugin-nonfree]]'''''. | |
− | < | + | * 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> | ||
− | + | sudo apt-get remove --purge icedtea6-plugin | |
+ | sudo apt-get install sun-java6-plugin | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | 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. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<pre><nowiki> | <pre><nowiki> | ||
− | + | 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 | |
− | + | ||
− | + | ||
</nowiki></pre> | </nowiki></pre> | ||
− | + | * Firefox 3.5: | |
<pre><nowiki> | <pre><nowiki> | ||
− | + | sudo apt-get install icedtea6-plugin | |
− | + | </nowiki></pre> | |
− | + | <<Anchor(32-bit)>> | |
− | + | == 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]]''' | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* [[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. | ||
第181行: | 第91行: | ||
<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. |
<ol><li>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. | ||
</li><li>In terminal enter:</li></ol> | </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> | ||
− | <ol><li>Download the Mozilla Firefox exe from http://www.mozilla.com/products/download.html?product=firefox- | + | <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. |
</li><li>In terminal enter:</li></ol> | </li><li>In terminal enter:</li></ol> | ||
<pre><nowiki> | <pre><nowiki> | ||
− | cd ~/Desktop | + | cd ~/Desktop |
wine firefox* | wine firefox* | ||
</nowiki></pre> | </nowiki></pre> | ||
第205行: | 第115行: | ||
</li><li>Test by trying to view a page for that plugin.</li></ol> | </li><li>Test by trying to view a page for that plugin.</li></ol> | ||
− | /!\ '''NOTE:''' | + | /!\ '''NOTE:''' If you cannot hear any sound with the plugins, open terminal and type "winecfg" and select sound preferences in the audio tab. |
− | + | ---- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
---- | ---- | ||
− | [[category: | + | [[category:CategoryInternet]] [[category:CategoryInternet]] |
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 17:22的最新版本
![]() |
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
目录
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)
Use script provided and maintained in this forum thread. The script automates the steps listed below.
- Or use the following manual procedure:
'
- Remove currently installed versions of Flash.
sudo apt-get purge flashplugin-nonfree flashplugin-installer gnash gnash-common mozilla-plugin-gnash swfdec-mozilla
- Visit [1] to update the filename given under if necessary.
- 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
- 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.
- 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
- 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>.
- 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.
- Hardy Heron 8.04: install the following package: apt:flashplugin-nonfree.
- Jaunty Jackalope 9.04, Karmic Koala 9.10 and newer: install the following package: 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 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
![]() |
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
- RealPlayer Issues
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.
- 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.
- Download the most recent WINE .deb file from http://wine.budgetdedicated.com/archive/index.html. Save the file to your desktop.
- In terminal enter:
cd ~/Desktop sudo dpkg --force-architecture -i wine_*_i386.deb
- 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:
cd ~/Desktop wine firefox*
- Install Firefox normally by following the installer with default settings.
- Download Plugins
- 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).
- 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.
/!\ NOTE: If you cannot hear any sound with the plugins, open terminal and type "winecfg" and select sound preferences in the audio tab.