Archive for January, 2010

Install 64 bit java plugin in linux.

I used this method for installing the latest java plugin on a CentOS 5.4 system.

Download latest java (jre-6u18-linux-x64.bin) from
I installed all my java versions in /usr/java. This is where I save the bin file downloaded.
cd /usr/java
chmod 744 jre-6u18-linux-x64.bin
To install java:

To install the plugin into your latest version of firefox:
cd /usr/lib64/firefox-3.0.16.
mkdir plugins #I had to create this directory.
ln -s /usr/java/jre1.6.0_18/lib/amd64/

Restart firefox.

Manually import RedHat public keys.

To install the public release key:

rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

This allows you to install from the local source. For me, I had copied all the packages from the RHEL5 CDs to a directory to use “yum localinstall.” Importing the key as outlined above enabled me to install the packages without getting the following error:

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186

Accessing linux virtual terminal in VMWare.

If you have linux running in VMware Workstation and want to access one of the virtual terminals, you need to hit CTRL-ALT-SPACE and then let go of the SPACE (while continuing to hold the CTRL-ATL) and hit the virtual terminal you want to access (one of the function keys (F1-F12).

Using xinetd directives to manage two instances of the same service on different interfaces.

I used the following configuration to use different xinetd directives for a service depending on which interface the connection was initiated on. In the following example, my LAN interface has IP address, and my Internet interface has IP address I used procedures very similar to these to configure to use two different sets of directives for an SMTP server on a system running RHEL5.

The first thing I did was create a new entry in the /etc/services file. I will use telnet as an example.

vi /etc/services

telnetnew 23/tcp

Create new service configuation file:

vi /etc/xinetd.d/telnetnew

service telnetnew
disable = no
flags = REUSE
wait = no
user = root
server = /usr/sbin/in.telnetd
socket_type = stream
protocol = tcp
log_on_failure += USERID
log_on_success += USERID
only_from =
instances = 100
bind =

Modify the existing /etc/xinetd.d/telnet configuration file with new directives:

vi /etc/xinetd.d/telnet

no_access =
instances = 1
bind =

Create the new service and enable it:

chkconfig –add telnetnew
chkconfig telnetnew on

Reload xinetd to implement the new configuration and the start the new service.

service xinetd reload

This configuration will enable only one telnet connection from the Internet and 100 from the LAN segment. I used this type of configuration for an SMTP server to reduced the number of connections from the Internet.

How to hard reset a Blackberry Curve 8320.

Security Options
General Settings
Press the menu button.
Select Wipe Handheld.
You will prompted to enter “blackberry” to confirm.

How to unlock a Blackberry Curve 8320

Once you have obtained an unlock code from your carrier or other means, do the following:

Advanced Options
Sim Card
Enter MEPD
Note: You will see nothing change on the screen.
Enter MEP2
Note: You will see nothing on the screen, until you hit the Enter key.
Enter the code you obtained.

At the top of the screen, you should see “SIM Card Security Disabled.”

Snow Leopard remove toolbar icon.

To remove an icon from toolbar (top of the screen) hold down the “command” button and drag the icon to the Trash.

Return top