Hi,
In this guide I'll show you how to install and configure Java (with the Mozilla plugin) and LimeWire all from RPMs, letting you switch between java configurations with ease.
Reminders
The list of these will be pretty small for this howto but here it is anyways:
- Many Sun JRE versions can be installed at once, and they are often quite large - You only really need the most recent one. The commands in this howto expect you only have one Sun JRE installed at once, so if you're trying to update to a newer version, you'll have to remove the older ones first. To remove old versions, simply run:To remove a specific verison, issue where name-version is the package name (jre in this case) and the version outputted by rpm -q. You can just copy > paste the output really. For example:jre-1.6.0-fcs
jre-1.5.0_11-fcs
jre-1.5.0_10-fcs
jre-1.5.0_09-fcs
Code:
rpm -e jre-1.5.0_11-fcs
rpm -e jre-1.5.0_10-fcs
rpm -e jre-1.5.0_09-fcs
You will also want to remove the old alternatives entry:
Code:
su -
alternatives --remove java /usr/java/VERSION/bin/java
Replace VERSION with the version you're removing. To see the current path, run:
Code:
alternatives --display java
- Remember to use Limewire responsibly; Check your local copyright laws.
- If you're on a slow connection, disabling uploads (by making slots 0 in preferences) can help speed things up.
- Many of you are about to ask "Beryl or Compiz killed Limewire! What can I do?" The fix is actually quite simply - Start Limewire like normal, and when the window is all grey, start Metacity. This can by done in the case of Beryl via "Select window manager" in the tray manager or in Compiz by disabling the desktop effects. The window should appear properly now, and so re-enable the desktop-effects or make Beryl your window manager and voila - Limewire in Compiz or Beryl!
** If you would like, you can download the attached tarball which contains two automated scripts that will do all this for you. Simply extract the Compiz or Beryl script to your Desktop. Double-click to run Limewire.
Requirements
Before installing Java or Limewire, make sure you have the correct packages installed:
Code:
su -c "yum -y install compat-libstdc++-33 compat-libstdc++-296"
Java
First things first, you will need Java. You can always get the newest version of Java by visiting this page:
http://java.com/en/download/index.jsp
Simply click the Download button, then when presented with a list of downloads choose the Linux RPM (Self-extracting file).
Please save this into your home directory (or move it there if you haven't), and then launch a terminal. Type into it:
Code:
su -c "sh ./jre*.bin"
Keep hitting <enter> until the license is finished, then type yes to signal that you approve of the license. It will unpack and install the JRE, or Java Runtime Environment.
Now that Java has been correctly installed, the plugin needs to be linked so Java applets can be used in web browsers and so that you can switch between Java configurations easily. First, link the plugin: (Ignore errors from chcon if you don't have SELinux enabled)
Code:
chcon -t textrel_shlib_t "$(rpm -ql jre | grep libdeploy\\.so$)"
ln -sf "$(rpm -ql jre|grep plugin|grep ns7/|grep \\.so$)" /usr/lib/mozilla/plugins/libjavaplugin_oji.so
This command should work for any and all versions of JRE. Secondly, you need to install the Java alternative now:
Code:
/usr/sbin/alternatives --install /usr/bin/java java $(rpm -ql jre | grep bin/java$) 2
/usr/sbin/alternatives --config java
Select "2".
Finally, restart Firefox/Mozilla/Opera/etc and test your Java here.
Limewire
Once Java is installed, installing Limewire is very simple. Select either the Fedora 7 or Fedora 8 RPMs and install it using the Package Installer.
NOTE: By doing so you are accepting that you will not use Limewire for copyright infringement.
If you don't have the Package Installer (system-config-packages) installed, use a terminal:
Code:
su
rpm -Uhv limewire-free*.rpm
Enjoy!
Firewing1