about Java for OS X 2012-006

Aside

This release updates the Apple-provided system Java SE 6 to version 1.6.0_37 and is for OS X versions 10.7 or later.

This update uninstalls the Apple-provided Java applet plug-in from all web browsers. To use applets on a web page, click on the region labeled “Missing plug-in” to go download the latest version of the Java applet plug-in from Oracle.

This update also removes the Java Preferences application, which is no longer required to configure applet settings.

So run your Software Update.

everything you wanted to know about Flashback but were afraid to ask

Standard

flashback-mac-708x600Since to many of my familiars, friends and even colleagues I’m the “mac guy” everyday I’m getting more and more questions about the Flashback malware, the first in years that have seriously compromised that invulnerability aura that covered us Mac OS X users.

So here’s my state of the art post in this overflow of posts, news, tweets and such on the matter.

First of all don’t panic. There’s nothing to be seriously scared of. Apple has got a solution, that while being late is easy and reliable in solving the issue.

In my opinion it’s necessay to know more on the topic, so here’s two links. The first from Apple, short and concise as all the public statements on security by them. The second is a compendium of Ars Technica on the issue:

Now you probably want to know if you got the “infection” and did not know. This FlashbackChecher tool, after having being downloaded & installed, helps you to this. Eventually it asks you to remove the problem but the developer invites you to do so with Apple tools.

And here we come to the easiest solution out there. With three security updates in less than a week Apple has proposed to it’s user both a patch and a remover of this malware for their users’ computers. All we have to do is to start the Software Update tool and apply every one of them.

Mac OS X 10.5 users are now being leaved on their own on this, since Leopard is no more supported. Apple suggests to disable Java on Safari (and you can find how to do that in the Apple’s link provided above) and I think that FlashbackChecker can help you too. You’re welcome to leave me a note in comments if you have other solutions for Leopard.

enable Java plugin on Firefox with CentOS or RHEL (64bit)

Standard

centos logo During last weeks I’ve installed and configuread a 64bit RHEL server, paying attention to include the open source java-openJDK and the official Sun’s JRE.

This morning a colleague called me via skype telling me that his Firefox didn’t have a proper Java plugin installed. At first glance I didn’t knew what to do and the first results of a Google’ session were useless refferring to old incompatibility between a 64bit Firefox and 32bit java vitual machine, old releases of both softwares, wrong *.so files to include.

Google and google I found this post, pointing the focus on the libnpjp2.so file which, on my machine, is placed under the /usr/java/jre1.6.0_16/lib/amd64/libnpjp2.so path.

So I went to /usr/lib64/firefox-3.0.14/ folder {ignoring the old ones visible on the directory}, created a sub-directory called plugins (as root) and gave the command:

ln -s /usr/java/jre1.6.0_16/lib/amd64/libnpjp2.so libnpjp2.so

The I restarted Firefox and once loaded went to the Java Test Page to check my virtual machine installation and witnessed the correct, and aspected, result:

Your Java configuration is as follows:
Vendor: Sun Microsystems Inc.
Version: Java 6 Update 16
Operating System: Linux 2.6.18-164.2.1.el5
Architecture: amd64

Hope this will be useful to you too!

how to install Java SDK on CentOS

Standard

java logo Lately at work I’m being occupied preparing the “golden” node of a 14 machines pool of CentOS servers to be cloned and I’ve found myself in the situation of having to install Java on this Red Hat derived Linux distribution.

Unfortunately, even if Sun has released the whole Java ambaradan with a free software licence, this has happened too late to permit to the CentOS project (but also other distribution) the inclusion of the relative packages in their 5th release. This will change when the CentOS 6 will be released.

So, to correctly install Java (either the Runtime Environment or the Software Development Kit) is needed to follow the instructions given to us by the community on the How To Install Java on CentOS 4 and CentOS 5 page published on the official wiki.

You’ll just have to be a bit cautious and pay attention to these simple points:

  • remove any java package (in it’s old free/open implementation) previously (eventually) installed from the CentOS repos;
  • remove the eventual tomcat5 and all it’s related packages;
  • follow the How to Set Up an RPM Build Environment under CentOS procedure;
  • the package java-1.6.0-sun-1.6.0.10-1jpp.nosrc.rpm cited in the how-to needs the release 10 of the JDK, and now the main page of the Sun’s official page presents you the update11 … a little diggin’ in the Sun download section it’s needed to find the desired *.bin file.

When the procedure will finish you’ll have build on your system the necessary rpm packages that will be installed with a simple yum localinstall or rpm -Uvh command.

After that a yum install tomcat5 has put up Tomcat (and other 37 packages) with no dependency problem at all.

I hope this will be useful to some :-D