个人工具

UbuntuHelp:FirefoxAMD64FlashJava

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 09:41的版本 (新页面: {{From|https://help.ubuntu.com/community/FirefoxAMD64FlashJava}} {{Languages|UbuntuHelp:FirefoxAMD64FlashJava}} /!\ '''NOTE:''' A recent upgrade to Feisty development has shown that Fir...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


/!\ 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:

** 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)

/!\ NOTE: Currently the Java implementation under Feisty (7.04) is not working. Anyone with information please post their results. /!\ SOLUTION:

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"

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:

sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2

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 firefox there. Move this directory to /usr/local/firefox32 . The following snippet will accomplish this from a terminal:

sudo mv ~/Desktop/firefox /usr/local/firefox32
  • 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:

gksudo gedit /etc/pango32/pangorc &

Or if on Kubuntu:

kdesu kate /etc/pango32/pangorc &

Paste the script:

[Pango]
ModuleFiles=/etc/pango32/pango.modules
[PangoX]
AliasFiles=/etc/pango/pangox.aliases

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:

gksudo gedit /usr/local/bin/firefox32 &

Or for Kubuntu:

kdesu kate /usr/local/bin/firefox32 &

Copy and paste the shell script instructions below:

#!/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 $@

Save the file and close the editor. Make the file executable so that we can launch it:

sudo chmod +x /usr/local/bin/firefox32
  • 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:

firefox32 &

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 flash-player-plugin-9.0.21.78 . Perform the following to install the plugin:

sudo mv ~/Desktop/flash-player-plugin-9.0.21.78/libflashplayer.so /usr/local/firefox32/plugins/

/!\ 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 /usr/local/firefox32/plugins/ 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:

chmod +x ~/Desktop/jre-6u1-linux-i586.bin

Then just type this in the terminal, exactly as shown

~/Desktop/jre-6u1-linux-i586.bin

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:

sudo mv ~/jre1.6.0_01 /usr/local/java32

Install a link within the Firefox 32 bit edition plugins directory to launch Java applets:

sudo ln -s /usr/local/java32/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/firefox32/plugins/

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:

chmod +x ~/Desktop/RealPlayer10GOLD.bin
~/Desktop/RealPlayer10GOLD.bin

Accept the default location and extract. Move the file to the appropriate 32 bit area:

sudo mv ~/RealPlayer /usr/local/realplayer32

Link the appropriate files to your Firefox 32 bit plugin directory:

sudo ln -s /usr/local/realplayer32/mozilla/* /usr/local/firefox32/plugins

Link the RealPlayer binary blob file to a location that your default path can find it:

sudo ln -s /usr/local/realplayer32/realplay /usr/local/bin/realplay

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 command 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:
sudo apt-get install ia32-libs lib32asound2 

This will download the necessary 32 bit binaries for WINE.

  • In terminal enter:
cd ~/Desktop 
sudo dpkg --force-architecture -i wine_*_i386.deb 

Step 2: Download Firefox

  • In terminal enter:
cd ~/Desktop 
wine firefox*
  • 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.
  • 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).