5/30/12

Re-scanning the SCSI bus on Linux

How to re-scan the SCSI bus on Linux:

echo "- - -" > /sys/class/scsi_host/host0/scan

5/9/12

Importing private keys into a Java keystore using keytool

For ages the keytool application shipped as part of Java could provide all the functionality to generate a private key and certificate sign request from a Java keystore, but the most basic function, importing a preexisting private key and certificate generated externally, remained overlooked.

This is fixed in Java 6, at long last.

The solution is to convert your existing certificate and key into a PKCS12 file, and then use the keytool functionality to merge one keystore with another one. Java 6 can treat a PKCS12 file as a keystore, so putting this together, you get this:

keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore my-keystore.jks -srckeystore cert-and-key.p12 -srcstoretype PKCS12 -srcstorepass cert-and-key-password -alias 1

The alias of 1 is required to choose the certificate in the source PKCS12 file, keytool isn't clever enough to figure out which certificate you want in a store containing one certificate.

At last, it works.

Thanks to Graham Leggett for his post located here:
http://cunning.sharp.fm/2008/06/importing_private_keys_into_a.html

3/6/12

Fix Live Update Backupexec 2010

This fixes the issue of Symantec's Live update not recognizing that there are any products to be updated and throwing the following error message:

LU1805: LiveUpdate was unable to find any products to Update


Fix: Go to your Symantec's Backup Exec Program folder location and run the following executable:



BEUpdateOps.exe

You now should get a notification saying that Backup Exec was successfully registered with Live update and be able to run it to get any available updates.


Many thanks to the solution poster found here:
http://www.sudonym.com/233/unable-to-run-live-update-in-backup-exec-2010

2/14/12

Set stty erase for Korn Shell

Set your backspace key as the stty erase key for Korn Shell in Linux by adding the following to your $HOME/.profile:

if [ -t 0 ]
then
  stty erase ^h
fi

Or add it to /etc/profile if you want to set the backspace key for all logins.

1/31/12

Solution to "VBE6EXT.OLB could not be loaded." Error

I got a VBE6EXT.OLB could not be loaded error when I wanted to install this really great tool-set for Excel that I've been using for years form http://www.asap-utilities.com on my new machine which has MS Office 2010 installed.

I found the solution posted on the Solidworks forum after some Google digging:

Make sure the following items exist in your registry:
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}]
 
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3]
"PrimaryInteropAssemblyName"="Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
@="Microsoft Visual Basic for Applications Extensibility 5.3"
 
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0]
 
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"
 
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\FLAGS]
@="0"
 
[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR]
@="[{0002E157-0000-0000-C000-000000000046}]"

Note: You could download & import the above registry keys into your registry as a .reg file from the original post below.
Source: https://forum.solidworks.com/thread/40593

Solution to "VBE6EXT.OLB could not be loaded." Error

I got a VBE6EXT.OLB could not be loaded error when I wanted to install this really great tool-set for Excel that I've been using for years form http://www.asap-utilities.com on my new machine which has MS Office 2010 installed.

So I found this solution posted on Solidworks forum after some Google digging:

Make sure the following items exist in your registry:

[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}]


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3]
"PrimaryInteropAssemblyName"="Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
@="Microsoft Visual Basic for Applications Extensibility 5.3"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0]


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\FLAGS]
@="0"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR]
@="[{0002E157-0000-0000-C000-000000000046}]"

Note: You could download & import the above registry keys into your registry as a .reg file from the original post below.

Source: https://forum.solidworks.com/thread/40593


Solution to "VBE6EXT.OLB could not be loaded." Error

I got a VBE6EXT.OLB could not be loaded error when I wanted to install this really great tool-set for Excel that I've been using for years form http://www.asap-utilities.com on my new machine which has MS Office 2010 installed.

So I found this solution posted on Solidworks forum after some Google digging:

Make sure the following items exist in your registry:

[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}]


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3]
"PrimaryInteropAssemblyName"="Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"
@="Microsoft Visual Basic for Applications Extensibility 5.3"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0]


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\0\win32]
@="C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\FLAGS]
@="0"


[HKEY_CLASSES_ROOT\TypeLib\{0002E157-0000-0000-C000-000000000046}\5.3\HELPDIR]
@="[{0002E157-0000-0000-C000-000000000046}]"

Note: You could download & import the above registry keys into your registry as a .reg file from the original post below.

Source: https://forum.solidworks.com/thread/40593

Quick HTTP to HTTPS - Apache2

There are several methods for redirecting your Apache-based website visitors who might type your servers URL using the plain (non-secure) HT...