Ribs
November 16th, 2005, 11:10 AM
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:
sudo apt-get install fakeroot java-package java-common
Enter your password if you get asked for it. Apt will then probably confirm what you want installing. Just press 'Y' then Enter.
4) Stay with the Konsole window. Now copy and paste the following:
fakeroot make-jpkg jre-1_5_0_05-linux-amd64.bin
5) You'll see the following. Press Y (enter isn't needed):
Detected product:
Java(TM) Runtime Environment (J2RE)
Standard Edition, Version 1.5.0+update05
Sun Microsystems(TM), Inc.
Is this correct [Y/n]:
6) 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...
7) Load of text will scroll past. Don't worry about it.
8) When that's done. Copy and Paste this:
sudo dpkg -i sun-j2re1.5_1.5.0+update05_amd64.deb Enter your password if asked for it.
9) Nearly there! Now run this:
sudo update-alternatives --config java 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.
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/download/download.cgi?P1_Prod_Version=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:
tar -zxvf install_flash_player_7_linux.tar.gz
cd install_flash_player_7_linux/
chmod +w flashplayer-installer
nano -w flashplayer-installer
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.
5) Scroll down until you see the section labled:
##############################
# Main Section
##############################
A bit after that, you'll see:
# check architecture
TEMPARCH=`uname -m`
case $TEMPARCH in
i[3456]86)
Change that last line to read x86_64) - So the edited bit should be:
# check architecture
TEMPARCH=`uname -m`
case $TEMPARCH in
x86_64)
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.
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.
sudo mkdir /opt/netscape
sudo mkdir /opt/netscape/plugins
sudo chmod 755 /opt/netscape/plugins
sudo ./flashplayer-installer
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.
8) Nearly there! Flash is now installed. Now we have to make Konqueror work with it... This is actually the easiest bit. Run these:
cd ~
sudo tar -zxvf ia32-for-flash-1.0.tar.gz -C /
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.
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):
file /usr/bin/nsplugin*
nspluginscan
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:
sudo apt-get install fakeroot java-package java-common
Enter your password if you get asked for it. Apt will then probably confirm what you want installing. Just press 'Y' then Enter.
4) Stay with the Konsole window. Now copy and paste the following:
fakeroot make-jpkg jre-1_5_0_05-linux-amd64.bin
5) You'll see the following. Press Y (enter isn't needed):
Detected product:
Java(TM) Runtime Environment (J2RE)
Standard Edition, Version 1.5.0+update05
Sun Microsystems(TM), Inc.
Is this correct [Y/n]:
6) 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...
7) Load of text will scroll past. Don't worry about it.
8) When that's done. Copy and Paste this:
sudo dpkg -i sun-j2re1.5_1.5.0+update05_amd64.deb Enter your password if asked for it.
9) Nearly there! Now run this:
sudo update-alternatives --config java 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.
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/download/download.cgi?P1_Prod_Version=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:
tar -zxvf install_flash_player_7_linux.tar.gz
cd install_flash_player_7_linux/
chmod +w flashplayer-installer
nano -w flashplayer-installer
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.
5) Scroll down until you see the section labled:
##############################
# Main Section
##############################
A bit after that, you'll see:
# check architecture
TEMPARCH=`uname -m`
case $TEMPARCH in
i[3456]86)
Change that last line to read x86_64) - So the edited bit should be:
# check architecture
TEMPARCH=`uname -m`
case $TEMPARCH in
x86_64)
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.
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.
sudo mkdir /opt/netscape
sudo mkdir /opt/netscape/plugins
sudo chmod 755 /opt/netscape/plugins
sudo ./flashplayer-installer
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.
8) Nearly there! Flash is now installed. Now we have to make Konqueror work with it... This is actually the easiest bit. Run these:
cd ~
sudo tar -zxvf ia32-for-flash-1.0.tar.gz -C /
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.
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):
file /usr/bin/nsplugin*
nspluginscan