Friday, March 31, 2006

Be Careful with Cleaning Windows Files

I have installed MS Office XP in my laptop. Because of lack of HD capacity, I searched for some files which are larger than 10MB. There is a 56MB file "1e16a6.msp" in C:\Windows\installer, and I got rid of it. However, when I am going to reconfig or uninstall MS office XP, there is a warning sign, and the uninstall process stopped. I was confused with that.

How can I uninstall this product from my computer? After I have checked the uninstall log file, I found there are some hints in the log. The reason is that the uninstall program relies on the file "1e16a6.msp" in C:\Windows\installer or some temporary files in the temp directory. Then I had to find a "1e16a6.msp" in the package files of MS Office. Microsoft knowledge base tells us there is a way using "windows install" v3.1 to extract a file from the package. After extracting the file to the C:\Windows\installer, the uninstall program works again.

Windows does not have a clear package manager, so we don't know where the files will be installed. Cleaning disk is complex job; once you make a mistake, it maybe crash the program and even damage the system.

Linux distributions have good package managers such as rpm and deb, so the users can easily know which file is provided by what package, and what's the function by the package . With these efficient tools, deploying the systems is just a breeze.

Thursday, March 23, 2006

Two Bugs in StarDict within Ubuntu 5.10

Ubuntu 5.10 consists of StarDict-2.4.3, the very useful dictionary. I found there are two bugs in that version:

1. When you first double click (or select) on a word, a floating window pops up; however, nothing appears when you double click the same word again.

2. After you have installed tree dictionary, you can find that the tree dictionary doesn't work. The reason is that there is a mistake in the StarDict package. The package includes a wrong directory "/usr/share/stardict/treedic" instead of "/usr/share/stardict/treedict".

Monday, March 06, 2006

Ignore the Swap Size Requirement of Oracle-10gXE

There was an error "Swap is less than the minimal requirement of 974MB" when I installed oracle-10gXE in my laptop (512MB RAM, Fedora Core 4); then the installation stopped. Because of a laptop I only assigned a 512MB swap area. How can I install oracle-10gXE in my laptop without changing the swap? Analyzing the installation script, I found it uses "free -m | grep Swap" to get the swap area size. How about cheating it? ;) Let's try below:
# free -m > /tmp/swap.txt
modify the swap size in swap.txt to 1000.
# vi free

#! /bin/sh
if [ $1 = "-m" ]; then
cat /tmp/swap.txt
fi

# chmod +x free
# mv /usr/bin/free /usr/bin/free.save
# cp free /usr/bin/free

Then installed oracle-10g again, it passed. After configuring it worked on my laptop.

Please don't forget to restore the /usr/bin/free after the installation finished.