Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Tag Archives: rhel5

RHEL5 repo build on Fedora 12

I created a RHEL-5 repo on my Fedora-12 box.
But my RHEL-5 box cannot load the repo due to “Error performing checksum”.
After some Googling, the common solution is to use either sha or md5 as checksum.

createrepo -s sha
createrepo -s md5

However, that solution is not complete, especially if you have tested-run yum with the ill-checksumed repo.

Solution to that is simple, just run yum clean all to clean the cache.

[RHEL5] Tip about setting wpa_supplicant under xen.

I’ve read some forum articles and blogs which suggest to remove mac address of wireless device to get wpa_supplicant working.

However, this is only true when the wireless device is the only network card you activate.
If you have more than one network cards, e.g. wire and wireless network card, then you need to keep the mac addresses, otherwise kernel might get confuse and assign an unexpected name (such as wlan0) to the wireless. Consequently, wpa_supplicant cannot find the correct device to activate.

[RHEL5] Set up wpa-supplicant with xen

I was looking for a solution to tame wpa_supplicant inside of xen. After some intensive Googling, finally I found a Red Hat Virturalization Guide that shows how to set xen network on a laptop.

So, if your are a RHEL coustomer, please install Virtualization-(your locale) to get the document. 🙂

[sane] Mitsubishi Diamond View DV650U

I have a Mitsubishi Diamond View DV 650U scanner which I did not use much, so I am considering selling it. In order to test whether it is still functional and capability of working with linux, I use my RHEL5 to test that, and it works!

Install instruction:

  1. yum install sane-backends sane-backends-libs xsane
  2. Scanner firmware is also needed, You can find it at driver CD, namely, u176v042.bin. You can also download from
  3. copy the firmware file as /usr/share/sane/snapsane/your-firmwarefile.bin (Yes, I am too lazy to modify the /etc/sane.d/snapsane.conf).
  4. Plug out the scanner’s power and USB.
  5. Plug back scanner’s power and USB.
  6. See whether your scanner is detected with sane-find-scanner, It should be recognized as ACER flatbed scanner.
  7. See whether the scanner is detected with scanimage -L.
    if not, go back to 4.

  8. Test with xsane, it should work at this point. If not:
  9. redo step 4 to 7.
  10. export SANE_DEBUG_SNAPSCAN=10
  11. scanimage -d snapscan:libusb:xxx:yyy -x 50 -y 50 –format=tiff > ./test1.tiff
    (xxx and yyy are 3-digit integers and from step 7).

  12. See the debug message and retry.

Hope it is sufficient.

[RHEL5] qt4-x11 is included in qt4

I have installed skype, which require qt4-x11 libraries in my RHEL5 box. I was looking for qt4-x11 for RHEL5, but it turned out that qt4-x11 is included in qt4 in RHEL5.

Get rid of “WARNING: Ignoring duplicate config node: filter (seeking filter)”

About a month ago, I upgrade my kernel, then this warning message start to appear.
According to this post, I should update the /etc/lvm/lvm.conf and consolidate all the filtering rule into one line, and run vgscan to update the cache. I did all above, but the message still persisted.

Today, I came out the idea that the problem might be resting in my initrd, so I update the initrd using mkinitrd, and it works. The detail step is explained in following paragraph, but beware that:

  • Of course you need to be root.
  • Keep the back up initrd image, in case something bad happened.
  • Need to know how to rescue the system in case something bad really happen.

Here are the steps:

  1. Become root
  2. cd /boot
  3. mv initrd-[yourKernelVersion].img initrd-[yourKernelVersion].img.bak
  4. mkinitrd initrd-[yourKernelVersion].img [yourKernelVersion]
  5. [Optional] add a grub entry whose initrd points to your backup file, just in case.
  6. reboot

And voila, it works.

RHEL/CENTOS skype Chinese font display problem. (Skype 簡繁體中文顯示問題)

My skype can only show English and traditional Chinese, but not simplified Chinese.
I had not had motivation to solve this problem, because most of time,
Skype was used only as video conversation.

Nevertheless, today I decided to tackle it, and found some interesting results.
For those impatient, just run qtconfig4, then set the default font as
“Serif”, or “AR PL ShanHeiSun Uni/AR PL ZenKai”, if you can endure the bad English display.

How about other fonts? Well, first of all, font substitution does not work, at least Skype does not look at it. It seems only “Serif” has correct substitution rule. I did not dig further into fontconfig, but it works anyway.

我的 Skype 只能顯示繁體,而簡體字變成框框。
今天試了一下,發現只要在 qtconfig4 那裡把預設字型設為 「Serif」

至於為什麼會這樣?我也不知道。:-P我的 Skype 只能顯示繁體,而簡體字變成框框。
今天試了一下,發現只要在 qtconfig4 那裡把預設字型設為 「Serif」


[RHEL5] Sync between Evolution2 and Sony Ericsson K510i

Recently I read a good Howto about synchronizing sony-ericsson k610i with ximian evolution on ubuntu, and tried it with my SE 510i in RHEL5 with great success.

Though that post is about Ubuntu, most of the steps still applied in RHEL5.
BTW, you need to have bluetooth on both your mobile and computer to make it work.

My steps:

  1. Installation:

    Install bluez, multisync, libiopensync, libopensync-plugin-irmc, and libopensync-plugin-evolution2. However, neither RHEL nor EPEL have those sync packages, so grab the FC6 version, they work.

  2. Evolution plugins Configuration:

    The steps are essentially same with the post from here.

    msynctool --configure pim_sync 1

    which call your editior to create something like:


    No need to modified it if you use evolution default.

  3. Configuration for mobile:
    1. Find MAC address of the mobile by

      hcitool scan

    2. Find the Channel number for OBEX IrMC Sync Server of the mobile by

      sdptool browse yourPhonesMacHere

      Note that it is the “Service Name: OBEX IrMC Sync Server” section to be looked at.

    3. Configure member group for the mobile by

      msynctool --configure pim_sync 2

      which call your editior to create something like:


      Replace yourphonemachere and yourirmcchannelhere with your own values.


  4. Usage
    1. Sync with:

      msynctool --sync pim_sync


    2. Sync without note and contact:

      msynctool --sync pim_sync --filter-objtype note --filter-objtype contac


That’s it, folks!

.rpmmacros in RHEL5

I used to pack rpm in RHEL5 with rpm-build, but the names of generated rpms are very weird: package-version-0el5.rpm, where the normal name should be package-version-0.el5.rpm

I kept trying various version of rpm-build, but none prevail. Finally, I learnt one of the rpmbuild options --showrc, which really helps.
On my F-9 machine, rpmbuild --showrc | grep fc9 shows:

-14: dist	.fc9
-14: fc9	1

while my RHEL5 shows:

-14: dist	el5
-14: el5	1

Immediately I realized I should add the following line to ~/.rpmmacros:

%dist .el5

This ended the weird thing, ha ha ha.