OK, it would be easy when you finish the trip.
The orginal link:
http://wiki.cyanogenmod.com/wiki/HTC_Desire_(GSM):_Full_Update_Guide
0. PreRoot
1) adb is mandatory
2) Make sure device connected to Unbuntu and recongized by it.
3) Disable app2sd
adb shell
$ pm setInstallLocation 0
$ reboot
1. Root.
- Go to the unrevoked website.
- Select the HTC Desire.
- Download the option for operating system on the computer. (here select for Linux)
- Connect the HTC Desire & run the unrevoked software.
- The process takes a minute or two and in the end HTC Desire should boot into the ClockworkMod Recovery.
- Once complete, the HTC Desire will have SU access and ClockworkMod Recovery will be installed in place of stock recovery.
You needn't the image file such as recovery-RA-desire-v2.0.0.img and recovery-clockwork-2.5.1.2-bravo-modded-by-udK.img and so on, because unrevoked would root and flash last image build in Unrevoked.
I got error says "maybe you have new image", and fix the error by "pm setInstallLocation 0" said as before.
////////////////////////////////////////////////////////////
// the following hasn't any relation to you host pc, either window or Linux, en, just used them copy files to you android device
2. Radio,
Follow the wiki page said. radio 5.17.05.23 was used for my phone.
- Download the latest official version of the radio (5.11.05.27), but any 5.x radio should work.
- Place the radio update.zip file on the root of your SD card. (rename the radio file to update.zip)
- Boot into the ClockworkMod Recovery.
- Boot into the bootloader mode.
- Select Recovery; volume keys will allow you to navigate up & down & the power key will allow you to select an option.
- Once you enter ClockworkMod Recovery, use the side volume buttons to move around, and the trackball button to select.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the radio update.zip.
- Once the installation has finished, select Reboot system now. Now the HTC Desire's Baseband version should now be 5.11.05.27.
3. Flash Rom
- Download the latest version of CyanogenMod. (7.0.3 was I used)
- Place the CyanogenMod update.zip file on the root of the SD card. (rename your downloaded file to update.zip)
- Boot into the ClockworkMod Recovery.
- Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select.
- Select the option to Wipe data/factory reset.
- Then select the option to Wipe cache partition.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the CyanogenMod update.zip.
- Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The HTC Desire should now boot into CyanogenMod.
I encountered an error said: "error can't open /sdcard/update.zip (bad) ", fixed by download update-cm-7.0.3-Desire-signed.zip again, rename and copy to sdcard root.
One or two mintues later, gingerbread booted.
Please take a look at Rom Manager, Cool!