This guide will show you how to get Sun's java 1.5 release working as a plug-in for 64-bit Konqueror, and how to get Macromedia's 32-bit flash plug-in working in 64-bit Konqueror.
I've tried to make this guide as newbie friendly as I can. Hence a lot of steps, but they are baby steps. It really isn't much hassle to get these things working.
Please note: The flash part of this guide is only helpfull for 64-bit users. As Macromedia refuse to release a 64-bit version, getting it working in a 64-bit browser is nigh-on impossible. This guide will not work for Firefox, Mozilla or similar browsers... This is only for Konqueror users, ideally using a KUbuntu (amd64 release) install.
Sun Java
Sun do not release a netscape compatible plug-in for Java for 64-bit systems. Only for 32-bit systems. However, due to the way Konqueror uses Java, it's not really a problem.
1) Go download Sun's 64-bit release of Java for Linux from here: http://www.java.com/en/download/manual.jsp (Make sure to grab the 'Linux AMD64' release. Do not download the RPM.
2) Add universe and multiverse into your /etc/apt/sources.list file if you haven't already done so. See here if you're not sure how to do this; HowToEnableTheMultiverseRepositoryInUbuntu?action= show (Note: It lists Ubuntu instructions first. then KUbuntu after, so scroll towards the bottom).
3) Get the required packages installed into your system. Open up Konsole (K Menu, then System, then Terminal Program) and copy and paste the following into the Konsole window:Enter your password if you get asked for it. Apt will then probably confirm what you want installing. Just press 'Y' then Enter.Code:sudo apt-get install fakeroot java-package java-common
4) Stay with the Konsole window. Now copy and paste the following:5) You'll see the following. Press Y (enter isn't needed):Code:fakeroot make-jpkg jre-1_5_0_05-linux-amd64.bin6) Now you'll need to accept the agreement. Press Enter when prompted. Have a read (SpaceBar to scroll through the contents). Press 'q' when you've read that. If you agree with Sun's licencing terms, type in 'yes' and press enter. If not, type 'no' and enter and stop, this guide isn't for you...Code:Detected product: Java(TM) Runtime Environment (J2RE) Standard Edition, Version 1.5.0+update05 Sun Microsystems(TM), Inc. Is this correct [Y/n]:
7) Load of text will scroll past. Don't worry about it.
8) When that's done. Copy and Paste this:Enter your password if asked for it.Code:sudo dpkg -i sun-j2re1.5_1.5.0+update05_amd64.deb
9) Nearly there! Now run this:This will activate Sun's java instead of using what KUbuntu ships with. Enter password if asked for it. Select the entry for '/usr/lib/j2re1.5-sun/bin/java' by putting in the number next to it, and pressing enter. For me, this was 3.Code:sudo update-alternatives --config java
10) Open Konqueror. Goto the 'Settings' Menu. 'Configure Konqueror'. In the new window that opens, goto the 'Java and Javascript' picture on the left hand side (click on it). Change the 'Path to Java executeable, or 'java':' Setting to read '/usr/bin/java'. Click okay.
11) Now to test. Go here: http://www.java.com/en/download/help/testvm.xml And you should see a dancing cartoon, along with information showing Sun's Java 1.5 is installed!
Macromedia Flash:
Macromedia refuse to release a 64-bit version of their flash player. However, it can be forced to work with 64-bit Konqueror, with a little coaxing. Be warned, there are pitfalls to this approach:
* You'll be replacing the plug-in system Konqueror uses with a 32-bit version. This means any 64-bit plugins you already have will not work anymore.
* You'll be installing some required 32-bit libraries outside of apt or dpkg. This means that security updates for these packages that the KUbuntu/Ubuntu team release will not update these 32-bit libraries. It's unlikely to cause any issues. But just be aware of what you're doing. I'll try and release updated libraries when I see them
* This is a dirty hack. You will be copying library files to force flash to work. It should work, as it works very well here. But bear this is mind if you have problems. If you do have problems, let me know!
* Sometimes I have problems with sound not playing. I'm sure what the problem is. But I am working on this, and will keep everyone here posted.
* A nice side-effect of this, is that CrossOver Office's plug-ins now work!
1) Goto http://www.macromedia.com/shockwave/...ShockwaveFlash in Konqueror.
2) Click 'Download now' and save the file in your home directory.
3) Goto http://riblet.plus.com/kubuntu/ and download the latest set of libraries. This archive contains all the 32-bit stuff you need. Remember, this is a dirty hack, but should work well. I will update this page with newer versions of the libraries if I see any problems. At the time of writing, the latest file is ia32-for-flash-1.0.tar.gz
4) Open up Konsole (K menu, System, Terminal Program). Type in the following:
This will extract the flash player, go to where it extracts to, and will then open the install script. As we have to edit it.Code:tar -zxvf install_flash_player_7_linux.tar.gz cd install_flash_player_7_linux/ chmod +w flashplayer-installer nano -w flashplayer-installer
5) Scroll down until you see the section labled:
A bit after that, you'll see:Code:############################## # Main Section ##############################
Change that last line to read x86_64) - So the edited bit should be:Code:# check architecture TEMPARCH=`uname -m` case $TEMPARCH in i[3456]86)
Press Ctrl+X to exit the editor. Press 'Y' when it asks about saving the modified buffer (Towards the bottom of the window...). Then press enter.Code:# check architecture TEMPARCH=`uname -m` case $TEMPARCH in x86_64)
6) Now install flash! Enter in the following lines (enter your password if asked). The first three lines create a home for flash, then make it accessable to all users, the fourth line starts the installer that we modified earlier.
7) Follow the prompts from the installer. When asked for a 'installation path', enter in '/opt/netscape' (without the quotes). Press y and enter at the next prompt. On 'Perform another installation?' press n and enter.Code:sudo mkdir /opt/netscape sudo mkdir /opt/netscape/plugins sudo chmod 755 /opt/netscape/plugins sudo ./flashplayer-installer
8) Nearly there! Flash is now installed. Now we have to make Konqueror work with it... This is actually the easiest bit. Run these:
9) Go back to Konqueror. Goto the Settings menu, 'Configure Konqueror'. Goto the 'Plugins' option along the left (you may have to scroll down). Click 'Scan for new plugins'. In the 'Plugins' tab, you should now see a entry for 'Netscape plugins', and a entry for '/opt/netscape/plugins/libflashplayer.so'. If so, everything should be working! I suggest you play with the 'Use artsdsp to pipe plugin sound through aRts' option if you have sound problems.Code:cd ~ sudo tar -zxvf ia32-for-flash-1.0.tar.gz -C /
10) Test flash, visit www.badgerbadgerbadger.com for a little flash animation.
If you have problems:
Respond to this thread. If you can't get the flash plug-in working, please give me the output of the following commands (I can't do much without this information, second command may give no output at all, but I'd like it all the same):
Code:file /usr/bin/nsplugin* nspluginscan



Adv Reply





Bookmarks