LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-15-2013, 12:06 AM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,092

Rep: Reputation: 222Reputation: 222Reputation: 222
Smile Enabling Java for Firefox


So I downloaded and built JDK from slackbuilds, (64-bit) but I don't have it listed in my plugins for Firefox. Seems from the documentation that it is not enabled by default, but how do I enable it?

Using Firefox ESR 17.0.9
 
Old 10-15-2013, 12:55 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,498

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
as it's really dangerous, the parameter it's well hidden in the SlackBuild: see this block (from it)
Code:
if [ ${EXPLOIT_ME:-"no"} = "YES" ] ;then 
  mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
  cd $PKG/usr/lib${LIBDIRSUFFIX}/mozilla/plugins
  ln -sf /usr/lib${LIBDIRSUFFIX}/java/jre/lib/${LIB_ARCH}/libnpjp2.so libnpjp2.so
else
  echo "
        The February 2013 Critical Patch Update for Java SE addressed 50
        security vulnerabilities, 44 of which affected the use of Java
        as a plug-in for Web browers.

            !! THE MOZILLA PLUGIN IS NO LONGER ACTIVATED BY DEFAULT !! 
       "
  sleep 5
fi
so, if you really like to be pwned, pass the parameter EXPLOIT_ME=YES when launching it.
 
Old 10-15-2013, 01:15 AM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,092

Original Poster
Rep: Reputation: 222Reputation: 222Reputation: 222
Thanks for the heads up and help. It is work related though, need to config a camera, and only way to test it is with activex or java (ethernet based webcam). Ah well..


-edit

Well I passed the parameters ./slackbuid ./jdk.SlackBuild jdk-7u25-linux-x64.tar.gz EXPLOIT_ME=YES , installed pkg, rebooted Firefox, but nothing - my device asks me to have java installed.

Last edited by Jeebizz; 10-15-2013 at 01:21 AM.
 
Old 10-15-2013, 01:33 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,498

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
you have to go in the SlackBuild folder and launch this command
Code:
EXPLOIT_ME=YES ./jdk.SlackBuild
to test if the plugin is installed, go here
https://www.java.com/it/download/testjava.jsp

if can be useful, I usually test webcams with wxcam.

Last edited by ponce; 10-15-2013 at 01:40 AM.
 
Old 10-15-2013, 02:05 AM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.1 64-bit with multilib
Posts: 2,092

Original Poster
Rep: Reputation: 222Reputation: 222Reputation: 222
That did it.
 
  


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
[SOLVED] Loading/Enabling Java For Ubuntu V10 & Firefox 3.6.14 franktjs Linux - Newbie 1 03-06-2011 01:43 PM
Problem with Firefox for enabling Java Console on SLED 10 . ashish_neekhra Linux - Software 1 11-18-2009 10:54 AM
Problem with Firefox for enabling Java Console on SLED 10 . ashish_neekhra Suse/Novell 0 11-18-2009 07:49 AM
[SOLVED] Help enabling Java in Firefox 3.5 skaldicpoet9 Ubuntu 2 08-31-2009 02:56 PM


All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
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