LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-17-2013, 04:45 PM   #1
klee12
Member
 
Registered: May 2007
Posts: 48

Rep: Reputation: 15
java plugin, mozplugger and opera


Hello

I just upgraded to Slackware 14.0 and find that my Chrome browser cannot open an important site because it says there is no java plugin. It doesn't work with Firefox either.

I tried to install the browser Opera, but I can't get the source from SlackBuild

I had tried to install mozplugger from Slackbuild, but I think there is something wrong with the source. It looks like it has been truncated.

I'm not that concerned about Opera and Slackbuild (though I think I would like to get them working), but would like to have the plugin. I've installed the jdk package from Slackbuild, and I thought the plugin came with it. I checked and Slackbuild says to the plugin is not installed by default. If I reinstall jdk, how do I install the plugin with the jdk package.

Thanks in advance for any help
 
Old 06-17-2013, 05:11 PM   #2
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,233

Rep: Reputation: 176Reputation: 176
Have you considered installing Alien BOB's OpenJDK package, along with the icetea-web plug-in?

http://alien.slackbook.org/blog/open...icedtea-2-4-0/
 
2 members found this post helpful.
Old 06-17-2013, 05:51 PM   #3
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.0
Posts: 116

Rep: Reputation: 12
The java plugins is just not enabled by default on the most recent version of the jdk.SlackBuild hosted on SBo. If you look in the actual jdk.SlackBuild, then you will see an option not mentioned in the README that allows the plugin to be installed. You can run the jdk.Slackbuild with the following optional parameter to get the plugin to work.
Try this, it worked for me:
Code:
# EXPLOIT_ME=YES ./jdk.SlackBuild
 
1 members found this post helpful.
Old 06-17-2013, 09:34 PM   #4
klee12
Member
 
Registered: May 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks for all your replies.

I think I'll try to fiddle with EXPLOIT_ME variable. But, Neyac, does'nt a # mean what follows is a comment. Also, while it's a long time since I fooled with a makefile, I don't understand the

/.jdk.Sackbuild after the Yes.

Can I just put in

EXPLOIT_ME="YES"

right before it is used?

Thanks in advance

klee12
 
Old 06-18-2013, 01:53 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,232

Rep: Reputation: Disabled
The command "EXPLOIT_ME=YES ./jdk.SlackBuild" is a single-line command to be executed as root. What it does is set the environment variable "EXPLOIT_ME" to "YES" just for the duration of this commandline, and then start the jdk.SlackBuild which will inherit this value for EXPLOIT_ME in its own environment.
This way you do not have to edit the jdk.SlackBuild to change the value for EXPLOIT_ME.

Eric
 
1 members found this post helpful.
Old 06-18-2013, 02:53 AM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,817

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
klee12: You can get a binary for Opera 12.15 stable from here: people.opera.com/ruario/snapshot/Opera/
 
Old 06-18-2013, 06:55 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,037

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
Optionally, the /extra directory on your distribution media (CD-ROM, DVD) contains a java directory with java.SlackBuiild.

You will need to download Java SE from http://www.oracle.com/technetwork/ja...ads/index.html. I would suggest that you download the JDK package (JDK includes both the Java development software and the JRE run-time environment, used by many web sites). If you get JDK you get the Java compiler and tools in case you ever need them. The java.SlackBuild is the "standard" Slackware SlackBuild which used traditionally to build JDK and JRE Slackware packages -- the JDK packages installs both JDK and JRE.

The reason for all this is that Oracle, now the owner of Sun Microsystems (developer of Java in the first place), will not license redistribution of Java; essentially, Slackware cannot distribute Java anymore but can provide you the tools to install Java on your own (and neither can anybody else just give you Java already installed).

Now, about the Java plug-in.

There have been significant security problems with Java over the past months and it is recommended that the Java plug-in be disabled in browsers (all browsers) unless you must enable it for a particular -- trusted! -- site. As it happens, that's easy to do with Firefox and Seamonkey: click Tools, click Add-ons, click Plugins, then click the Disable button next to the Java Plug-in (or, to enable, click that -- the button changes color depending upon the state).

This is not paranoia -- you really, honestly do not want that Java plug-in enabled except for a specific trusted site that you must have it enabled for (then shut it back off when you're done). The Java plug-in has nothing whatsoever to do with JavaScript or anything but it has been shown to be a security hole and it's better to just shut it off unless you need it (and you usually don't need it for much of anything).

Hope this helps some.
 
1 members found this post helpful.
Old 06-18-2013, 07:45 AM   #8
neymac
Member
 
Registered: May 2009
Distribution: Slackware64-14.0
Posts: 116

Rep: Reputation: 12
@klee12: "#" in a command line code means "command as root" (and "$" commands as user), inside a script file "#" means that comments follow. (you don't need type the #, it's only to say that you must run the script as root). The "./" means run the file (script in this case)on present folder (directory), and "EXPLOIT_ME=YES" before the command to run the jdk.slackbuid script, means that the variable "EXPLOIT_ME" will be changed from "NO" to "YES", allowing the java plugin to be build.

Last edited by neymac; 06-18-2013 at 07:54 AM.
 
Old 06-20-2013, 12:59 AM   #9
klee12
Member
 
Registered: May 2007
Posts: 48

Original Poster
Rep: Reputation: 15
T hanks all.

Unfortunately something came up and I have to leave tomorrow so I can't get to fixing 14.0 the way I want it I'll be back on Monday or Tuesday, and I'll work on it then. I'm pretty sure I'll be able to get it.

klee12
 
Old 06-27-2013, 06:19 PM   #10
klee12
Member
 
Registered: May 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Hello everyone

I had to drop everything because I had to do other things. I'm back and trying to get Slack 14.0 running the way I want it to. I'm having problems with the jdk and opera.

I placed the line in neymac's response in the Build script at the top and built the jdk package again. I know it worked because a Warning message came up and when finished, I used removepkg to remove the old version and then install the new version. I tried to access the java plug first from Chrome, then with Firefox. Nothing happened. I rebooted. Still nothing happened. I looked in Firefox Tools, addons, and plugins. The java plugin was not listed. What did I do wrong?

Next I tried to install opera hoping to get better luck. I downloaded opera-12.15-i686-1ro.txz from Ruario's page and use the slackbuild script from the Slackbuild site on the net. The Slackbuild script complained about not having rpm files around and also was for version 11.01. I think Ruario's page had the rpm files, but I decided I shouldn't tempt fate.

All help appreciated.

klee12
 
Old 06-27-2013, 06:39 PM   #11
qunying
Member
 
Registered: Jun 2002
Distribution: Slackware
Posts: 46

Rep: Reputation: 3
#tronayne's method is better suite for you. And you don't need to do any special things. I don't think install new browser will solve your problem as plugin itself it not installed properly. Download the latest jre from here and run the java.SlackBuild against it, you will have an slackware package to install.

The file you download "opera-12.15-i686-1ro.txz" has already in Slackware package format, you could just installpkg/upgradepkg it. The slackbuild script is for building the slackware package from an rpm file.
 
Old 07-08-2013, 05:08 PM   #12
klee12
Member
 
Registered: May 2007
Posts: 48

Original Poster
Rep: Reputation: 15
Hello everyone. I got the java plugin working but after a lot of trouble.

1. One problem was that there is a slackbuild in the in the distribution in /extra/java. I'm pretty sure that's not the same as the slackbuild on the on the net. Some of the problems might be because I was not using the right slackbuild on the right source. I tried the jdk and jre so there and there were chances for errors.

I carefully used the slackbuild from with the jdk with EXPLOIT_ME=YES. It still didn't work. I looked at the script and noticed the critical difference between EXPLOIT_ME=YES or EXPLOIT_ME= NO was a line making a link into the mozilla/plugins directory. From the build script I figured the line


ln -sf /usr/lib/java/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins

executed as root would do the trick and it did. I don't know why the Slackbuild didn't do that. Anyway Java works on my the Firefox and Chrome browsers.

I'm concerned about security. I'll make Firefox my primary browser and keep Java disabled. When I need it, I'll enable Java temporarily. I don't go the the sensitive site often and Java used to be resource hog. I don't see how I can disable java in Chrome but Chrome comes up with a strange message when I try to access that uses the java plug-in on my computer. I don't recall it giving that same message on other computers. I'm


I got Opera to work, but only as root. I looked at /usr/bin/opera but couldn't find anything wrong. I'm going to remove opera since 2 browsers are enough.

The source for mozplugger but it seems the source file is corrupt. It's not a biggie with me but everyone seems to rave about it so I thought it might be useful to have

I want to thank all of you who tried to help. You efforts are appreciated. It's amazing that the support here is better than support for the PC software that I've run across.

klee12
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
64-bit Opera, 64-bit Java. Where to get plugin? CJ Chitwood Linux - Software 5 08-01-2008 12:09 PM
mozplugger plugin & firefox - removing the initial white flash? lukebeales Linux - Software 1 03-14-2008 07:51 PM
Opera Java Plugin Install karuptdata Ubuntu 16 10-28-2005 04:04 AM
Installing Java plugin w/ Opera 7.5.3 judgedeath2 Linux - Newbie 3 07-29-2004 03:40 PM
Do I need both Mozplugger and mplayer plugin? cscott Linux - Software 2 06-21-2004 01:02 AM


All times are GMT -5. The time now is 04:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration