Thursday, August 20, 2009

Digital Signature For Outlook

Recently, I am playing with Digital Signature set up for Outlook 2003. To set that up, you need to create a Digital Certificate. I found a free Personal Email Certificate provide Thawte ( Thawte Server CA is a Trusted Root Certification Authorities in IE.

To Set up Outlook Digital Signature, follow these steps

Setting Up A Thawte Account:
1. Go to the website:
2. Click on the red “join” button
3. Read the Terms and Conditions and then click “next”
4. Fill out the requested information on this page
Leave the character set as default
5. Click “Next”
6. Fill in your USA National Identification Number
Select the Type of number you entered
Enter your email address. This should be NOT the
7. Click “Next”
8. Use the defaults for Language and Charset
9. Click “Next”
10. Enter a password twice
11. Click “Next”
12. Enter a Contact Number
13. Choose 5 Questions and answer them
14. Click “Next”
15. Confirm your Information
16. Click “Next”
17. Wait for the Confirmation Email
18. Click on the website link in the confirmation email
19. Enter the Probe and Ping Information from the Email
20. Click “Next”
21. Your Account should now be active
22. Click “Next”

Request A Personal E-mail Certificate:
1. Enter your account information. (This will be your email and password for
accessing your account at Thawte.)
2. Click on “Request a Certificate” on the left menu
3. Click on “Request” under the title bar X.509 Format Certificates
4. Select “Microsoft Internet Explorer, Outlook and Outlook Express”
5. Click “Request”
6. Don’t modify the Employment Information
7. Click “Next”
8. Select your address
9. Click “Next”
10. Click “Next”
11. Click “Accept”
12. Don’t modify the CSP. It should say “Microsoft Enhanced Cryptographic
Provider v1.0”
13. Click “Next”
14. Click “Yes” to allow the site to create a key
15. Click “OK to create the new key
16. Click “Finish” and your certificate will be generated.

Install Your Personal E-mail Certificate in Outlook 2003:
1. Go to this URL: This
will list your generated certificates
2. Click on “MSIE” on the first certificate.
3. Click on “Fetch”
4. Click on “Install Your Cert”
5. Click on “Yes” to allow the cert to be installed
6. Click “Yes” again
7. Your Certificate is now installed.
8. Click OK

Using Your E-mail Certificate In Outlook 2003:
1. In Outlook 2003 go to Tools | Options | Security
2. Check “Add Digital Signature to Outgoing Messages” (Note: Use this
option if you want all messages to be digitally signed. Otherwise leave it
unchecked, and press the “Digitally Sign Message” icon only in those
individual messages you wish to sign.)
3. Check “Send Clear Text Signed messages when sending signed
4. Click the “Settings” button next to the Default Settings Dropdown
5. Click “New”
6. Enter a Name
7. Click “Choose” across from Signing Certificate
8. Select your Cert
9. Click “OK”
10. Click “OK”
11. Make sure the Setting you just made is in the Default Settings Box
12. Click “OK”

Thursday, August 13, 2009

Ubuntu Postgres 8.3.6 Missing Library

Recently, I encounter missing library when I install Postgres 8.3.6 on Ubuntu 2.6.28-13-generic build.

I do the following as a quick fix

1. missing -> ln -s /usr/lib/ /usr/lib/
2. missing -> ln -s /usr/lib/ /usr/lib/
3. missing -> ln -s /lib/ /lib/
4. missing -> ln -s /lib/ /lib/

after creating the above soft link, my postgres starts and work perfectly.

Ubuntu apt-get and apt-file

apt-get and apt-file is 2 little useful tool when finding and installing/update Ubuntu package.

The apt-get program uses this database to find out how to install packages requested by the user and to find out which additional packages are needed in order for a selected package to work properly.


While apt-file is a program to find missing package.

A sample to install and use apt-file

1. Install apt-file with apt-get -- sudo apt-get install apt-file
2. Update the apt-file database -- sudo apt-file update
3. Search missing package with apt-file -- apt-file search

Ubuntu Start/Stop Apache2 server

If you find that port 80 is used, it is highly possible that Ubuntu has startup a Apache server. Use the following command to start/stop/restart it

/etc/init.d/apache2 start | stop | restart

Wednesday, August 12, 2009

Ubuntu VNC Setup

Setting Up VNC for Ubuntu is rather simple.

Do the following

1. Install X11VNC server with sudo aptitude install x11vnc vnc-java. You need root access to use aptitude to install x11vnc package

2. After installing, type x11vnc -storepasswd to set up password for client access.

3. Make sure you disable or configure your firewall to allow 5800 and 5900 for remote access

4. Then, at command prompt, type x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 to run the server.

5. Now, use your vnc viewer or use your browser http://ip:5800 to access your remote machine.

Ubuntu Firewall

Ubuntu comes with a default firewall and its command is ufw

To enable/disable it -> type ufw enable/disable at command prompt

Here is a helper page for Ubuntu firewall

LDAP - Deleting an LDAP entry

To delete an ldif entry, one way is to put an changetype attribute and a value 'delete' in the ldif file For example dn: cn=so...