LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-14-2013, 11:06 PM   #1
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
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-14-2013, 11:55 PM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,095

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
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, 12:15 AM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
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 12:21 AM.
 
Old 10-15-2013, 12:33 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,095

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
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 12:40 AM.
 
Old 10-15-2013, 01:05 AM   #5
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Original Poster
Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
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 12:43 PM
Problem with Firefox for enabling Java Console on SLED 10 . ashish_neekhra Linux - Software 1 11-18-2009 09:54 AM
Problem with Firefox for enabling Java Console on SLED 10 . ashish_neekhra SUSE / openSUSE 0 11-18-2009 06:49 AM
[SOLVED] Help enabling Java in Firefox 3.5 skaldicpoet9 Ubuntu 2 08-31-2009 01:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration