Upgrading Fedora - plugins (part a)
Welcome to the tutorial guide. The guide will provide instructions and advise to the user about how to install browser plugins for firefox which is the default browser in Fedora 7.
Welcome to the tutorial guide. The guide will provide instructions and advise to the user about how to install browser plugins for firefox which is the default browser in Fedora 7.
Flash
Please note if you are planning to install flash plugin, then first of all you need to install #Adobe repository. After Adobe repository is installed, you can now install the Flash Plugin by running following command:
su -c ‘yum install flash-plugin’
If you are facing difficulties regarding hearing audio during playback of flash video, then you need to install packet called libflashsupport. This can be installed by running following command:
su -c ‘yum install libflashsupport’
If you would like to install Flash without #Adobe repository, then simply install Flash Player 10 by running following command:
su -c ‘rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.12.36-release.i386.rpm’
Please note that there is no 64 bit flash so to enable flash in a 64 bit machine you will need a program called nsplugininwrapper to finish off the install. This nsplugininwrapper can be installed by running following command:
su -c ‘yum install nspluginwrapper’
Now, in order to enable it, please run the following command.
mozilla-plugin-config
Istallating Sun Java
There are several methods to install the Sun Java Runtime Environment. Let’s go through first method that we will be taking into account to install Sun Java.It has not been completely open sourced so it is not included in Fedora at this stage. This will change in the future when Sun has completely open sourced this package.
Some packages need to be installed initially to complement the installation. Please run following command as below:
su -c ‘yum install compat-libstdc++-33 compat-libstdc++-296′
After that, you will then need to update the library links by running following command:
su -c ‘/sbin/ldconfig’
You will need to
- download the Java Package
- download the *.bin file
- You will need to be root
su –login
- switch to the correct directory
cd /opt
- run the binary file.
sh /home/marc/Desktop/jre-6u3-linux-i586.bin
- link the plugins into the browser directory
ln -s /opt/jre1.6.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
- create a java.sh script.
/etc/profile.d/java.sh
======================
export JAVA_HOME=/opt/jre1.6.0_04
export PATH=$JAVA_HOME/bin:$PATH
in the terminal:
source /etc/profile.d/java.sh
- type the following
/usr/sbin/alternatives –install /usr/bin/java java /opt/jre1.6.0_04/bin/java 2
- configure the java version
/usr/sbin/alternatives –config java
- enable the Sun JRE as the default package
There are 2 programs which provide ‘java’.
Selection Command
———————————————–
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.6.0_04/bin/java
Enter to keep the current selection[+], or type selection number:
- type the following:
2
- test to see if it is enabled you should see it installed.
/usr/sbin/alternatives –display java
- restart firefox
Sun Java (Method 2 - jdk-6u4-linux-i586.bin version)
This is the second method for installing Sun Java.
- Before we go ahead with installing Sun Java, we need to ensure that we have the #Jpackage. This is because some packages need to be installed initially to complement the installation.
su -c ‘yum install compat-libstdc++-33 compat-libstdc++-296′
- After that, we have to update the library links, by running following command:
su -c ‘/sbin/ldconfig’
- then we will download the Java package from Sun.
- during download, we need to ensure that we download the *bin file NOT the *rpm file. Please note that the current version is jdk-6u4-linux-i586.bin
- We also need to install some pre-requisite packages by running following command:
su -c ‘yum install rpm-build yum-utils’
- after that we will then switch to root
su –login
- now we will move the files to the appropriate directory and create the directories.
rpmdev-setuptree
mv /home/desktop/YourUsername/jdk* /usr/src/redhat/SOURCES/
- please switch to the directory
cd /usr/src/redhat/SRPMS/
- after switching successfully to the directory, we will then get the Source RPM
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- now, please rebuild the RPM
setarch i586 rpmbuild –rebuild java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- You can delete some files that can’t be installed on Fedora
rm -f /usr/src/redhat/RPMS/i586/java-1.6.0-sun-fonts* /usr/src/redhat/RPMS/i586/java-1.6.0-sun-jdbc*
- You can iInstall the rpm’s
yum –nogpgcheck localinstall /usr/src/redhat/RPMS/i586/java-1.6.0-sun-*
- also, create the link so that it works in Firefox
ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
- you can check to see if it is functioning at java if it shows the wrong version, then please following steps as below:
- enable the Sun JRE as the default package
There are 2 programs which provide ‘java’.
Selection Command
———————————————–
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.6.0_04/bin/java
Enter to keep the current selection[+], or type selection number:
Type the following:
2
Test to see if it is enabled you should see it installed.
If you followed instructions as provided in this tutorial guide then you would have successfully installed the plugins.













