个人工具

“UbuntuHelp:FirefoxAMD64FlashJava”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/FirefoxAMD64FlashJava}} {{Languages|UbuntuHelp:FirefoxAMD64FlashJava}} /!\ '''NOTE:''' A recent upgrade to Feisty development has shown that Fir...)
 
(正在重定向到 UbuntuHelp:AMD64/FirefoxAndPlugins
 
第1行: 第1行:
 +
#REDIRECT [[UbuntuHelp:AMD64/FirefoxAndPlugins]]
 
{{From|https://help.ubuntu.com/community/FirefoxAMD64FlashJava}}
 
{{From|https://help.ubuntu.com/community/FirefoxAMD64FlashJava}}
 
{{Languages|UbuntuHelp:FirefoxAMD64FlashJava}}
 
{{Languages|UbuntuHelp:FirefoxAMD64FlashJava}}
 
 
/!\ '''NOTE:''' A recent upgrade to Feisty development has shown that Firefox 32 bit edition will not connect to the net.  Working to try and troubleshoot the issue.
 
/!\ '''SOLUTION:'''
 
<pre><nowiki>
 
** 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)
 
</nowiki></pre>
 
/!\ '''NOTE:''' Currently the Java implementation under Feisty (7.04) is not working.  Anyone with information please post their results.
 
/!\ '''SOLUTION:'''
 
<pre><nowiki>
 
Once again, this appears to be an IPV4 issue.  Thanks to Femtiofyra for the following fix:
 
** Execute /usr/local/java32/bin/ControlPanel
 
** Click tab "Java", then "View..." in "Java Applet Runtime Settings"
 
** Double-click below "Java Runtime Parameters" and enter  "-Djava.net.preferIPv4Stack=true"
 
</nowiki></pre>
 
 
== Firefox 2.0 with Flash and Java under AMD64 ==
 
 
The following technique is a painless way to integrate proprietary 32 bit binary plugins into your Ubuntu amd64 bit installation.  It is accomplished without the complexity of establishing a 32 bit chroot environment.  The following procedure was tested under Ubuntu 6.10.
 
 
=== Step 1:  Install 32 Bit Emulation Libraries ===
 
Open a terminal and install these fundamental libraries for 32 bit support under 64 bit native Linux:
 
<pre><nowiki>
 
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2
 
</nowiki></pre>
 
 
=== Step 2:  Download and Install the 32 Bit Edition of Firefox ===
 
 
* Download Firefox
 
Download the installation gzip from http://www.getfirefox.com.  The following link will download the most recent version of firefox as of this writing:  http://www.mozilla.com/en-US/products/download.html?product=firefox-2.0.0.2&os=linux&lang=en-US
 
 
* Extract Firefox
 
Extract the tarball to your desktop.  It should create a directory called <code><nowiki> firefox </nowiki></code> there.  Move this directory to <code><nowiki> /usr/local/firefox32 </nowiki></code>.  The following snippet will accomplish this from a terminal:
 
 
<pre><nowiki>
 
sudo mv ~/Desktop/firefox /usr/local/firefox32
 
</nowiki></pre>
 
 
* Establish Environment for Firefox
 
Next we must setup some minor font details for the environment.
 
Create the environment variable file for pango32 and open it for editing:
 
<pre><nowiki>
 
gksudo gedit /etc/pango32/pangorc &
 
</nowiki></pre>
 
Or if on Kubuntu:
 
<pre><nowiki>
 
kdesu kate /etc/pango32/pangorc &
 
</nowiki></pre>
 
 
Paste the script:
 
<pre><nowiki>
 
[Pango]
 
ModuleFiles=/etc/pango32/pango.modules
 
[PangoX]
 
AliasFiles=/etc/pango/pangox.aliases
 
</nowiki></pre>
 
Save the file and close the editor.
 
 
* Create a shell script to launch the 32 bit version of Firefox.
 
Finally, we create a small script to setup the environment variables and launch our 32 bit version of Firefox.
 
 
Create the shell script and open it for editing:
 
<pre><nowiki>
 
gksudo gedit /usr/local/bin/firefox32 &
 
</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>
 
 
* Shutdown and test.
 
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 shut all instances down (including the one in which you are probably reading this ;) ), test the executable with the following command:
 
 
<pre><nowiki>
 
firefox32 &
 
</nowiki></pre>
 
 
It should load properly.  Ignore any warnings that might be output to the shell.
 
 
=== Step 3:  Install Proprietary 32 Bit Plugins ===
 
The process for installing plugins is relatively painless.  Simply take the library file and place it into your newly created /usr/local/firefox32/plugins directory.  The following procedure will accomplish this for both Flash 9 Beta and the most recent version of Java.  The following steps are not needed by each other, so feel free to install what you like.
 
 
* Download and install Flash 9 Beta for 32 bit Firefox.
 
As of this writing, http://labs.adobe.com/downloads/flashplayer9.html has the most recent version of Flash for installation purposes.  Open and extract the file from http://www.adobe.com/go/fp9_update_b2_installer_linuxplugin to your desktop.  It will create a directory on your desktop with the title of <code><nowiki> flash-player-plugin-9.0.21.78 </nowiki></code>.  Perform the following to install the plugin:
 
<pre><nowiki>
 
sudo mv ~/Desktop/flash-player-plugin-9.0.21.78/libflashplayer.so /usr/local/firefox32/plugins/
 
</nowiki></pre>
 
 
/!\ Note:  If you downloaded a newer version, the process will be similar but not identical.  Simply browse the downloaded archive to the libflashplayer.so file and move it into your <code><nowiki> /usr/local/firefox32/plugins/ </nowiki></code> directory.
 
 
Flash is now installed.  Test as above.
 
 
* Download and install the Java applet plugin for 32 bit Firefox.
 
Download the most recent Java plugin for 32 bit browsers from http://www.java.com/en/download/linux_manual.jsp.  Only download the "self-extracting file" version -- not the RPM.  Save the file onto your desktop.  The following link is provided for convienience:  http://javadl.sun.com/webapps/download/AutoDL?BundleId=11187
 
Adjust the permissions and execute the file.  The following will initiate this process as given by the links above:
 
<pre><nowiki>
 
chmod +x ~/Desktop/jre-6u1-linux-i586.bin
 
</nowiki></pre>
 
Then just type this in the terminal, exactly as shown
 
<pre><nowiki>
 
~/Desktop/jre-6u1-linux-i586.bin
 
</nowiki></pre>
 
At this point, you will be required to answer the end user licensing agreement.  After answering yes, it will extract a directory into your home directory.
 
Migrate the 32 bit version of the Java plugin to an appropriate directory on your system.  As of this writing, the following will accomplish this:
 
<pre><nowiki>
 
sudo mv ~/jre1.6.0_01 /usr/local/java32
 
</nowiki></pre>
 
Install a link within the Firefox 32 bit edition plugins directory to launch Java applets:
 
<pre><nowiki>
 
sudo ln -s /usr/local/java32/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/firefox32/plugins/
 
</nowiki></pre>
 
 
The 32 bit Java browser plugin is now installed.  Test as above.
 
 
* Download and install the RealPlayer plugin for 32 bit Firefox.
 
/!\ '''NOTE:'''  The following technique will require the 32 bit version of RealPlayer to be in your path.  Will post instructions on how to do this ''without'' needing to install the actual 32 bit version fully with the 32 bit emulation end.
 
/!\ Updated.  Please test with the linked RealPlayer binary line.
 
 
Download the installation package from http://www.real.com/realcom/ and save it to your desktop.  The following link is provided for convienience:  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
 
Make the file executable and extract it to your desktop:
 
<pre><nowiki>
 
chmod +x ~/Desktop/RealPlayer10GOLD.bin
 
~/Desktop/RealPlayer10GOLD.bin
 
</nowiki></pre>
 
Accept the default location and extract.
 
Move the file to the appropriate 32 bit area:
 
<pre><nowiki>
 
sudo mv ~/RealPlayer /usr/local/realplayer32
 
</nowiki></pre>
 
Link the appropriate files to your Firefox 32 bit plugin directory:
 
<pre><nowiki>
 
sudo ln -s /usr/local/realplayer32/mozilla/* /usr/local/firefox32/plugins
 
</nowiki></pre>
 
Link the 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>
 
 
The 32 bit RealPlayer browser plugin is now installed.  Test as above.
 
 
==== Step 4:  Optional Addition of Firefox 32 Bit Menu Launcher ====
 
* Add a menu item or panel item.  Choose a suitable icon.
 
* Under the <code><nowiki> command </nowiki></code> entry, simply type firefox32.
 
* Edit the rest of the description as you like.
 
 
 
 
=== Alternative Solution ===
 
 
If the above solution did not work for you, there is another solution, requiring the use of WINE.
 
 
==== Step 1:  Download and install WINE ====
 
 
* Make sure the universe repsitory is enabled. In terminal enter:
 
<pre><nowiki>
 
sudo apt-get install ia32-libs lib32asound2
 
</nowiki></pre>
 
 
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:
 
<pre><nowiki>
 
cd ~/Desktop
 
sudo dpkg --force-architecture -i wine_*_i386.deb
 
</nowiki></pre>
 
 
==== Step 2:  Download Firefox ====
 
 
* 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.
 
 
* In terminal enter:
 
<pre><nowiki>
 
cd ~/Desktop
 
wine firefox*
 
</nowiki></pre>
 
 
* Install Firefox normally by following the installer with default settings.
 
 
==== Step 3:  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.
 
 
 
 
=== Discussion ===
 
Discuss this page at http://ubuntuforums.org/showthread.php?p=626612
 
 
=== Legacy Instructions ===
 
/!\ These are legacy instructions.  If all goes well, you shouldn't require any of the following information.  It is kept for archiving sake.
 
 
''If you are having problems with segmentation faults when trying to use the browser's or email client's "Open" or "Execute" methods for opening data files or attachments in helper applications (such as 'evince' for PDFs), then try this alternative method:
 
 
Change the files 'firefox32' and 'thunderbird32' to read''
 
''#!/bin/sh''
 
''export GTK_PATH=/usr/lib32/gtk-2.0''
 
''export LD_PRELOAD=/usr/lib32/libpangohack.so.0''
 
''linux32 /usr/local/<firefox/thunderbird>32/<firefox/thunderbird> $@''
 
 
''Note that this method is untested AFAIK - please post any potential issues with it. Many thanks to 'lychee' from the forums.
 
 
DrBob: just 2 comments
 
* sound is an issue under KDE (Kubuntu) as well. The arts daemon (if running) must be suspended in order for Flash to be able to emit sound.
 
* with the above procedure, the fonts used by firefox32 don't match those in the ubuntu-packaged version. I don't know how to fix this (those that appear in firefox32 are oversized for me, YMMV). NB. I'm talking about the fonts used in the GUI, not those used in rendering webpages (but the latter don't quite match either).''
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月22日 (四) 12:38的最新版本