Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-15-2013, 12:06 AM
|
#1
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,270
|
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
|
|
|
10-15-2013, 12:55 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,415
|
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. 
|
|
|
10-15-2013, 01:15 AM
|
#3
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,270
Original Poster
|
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.
|
|
|
10-15-2013, 01:33 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,415
|
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.
|
|
|
10-15-2013, 02:05 AM
|
#5
|
Senior Member
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,270
Original Poster
|
That did it.
|
|
|
All times are GMT -5. The time now is 02:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|