How Restore iphone 3g using libimobiledevice and idevicerestore?

view story

http://askubuntu.com – i tried restoring my iphone 3g with backtrack 5 r3 but libimobiledevice 1 can not install in backtrack so i can not restore iphoen usign backtrack so can anyone tell me that i can restore it without error using ubuntu 10.04 ?? (HowTos)