You may face the problem that your distribution won't recognize your phone and adb says "no permission". Then you have to setup some udev rules.
/~adb devices List of devices attached ???????????? no permissions HT93KKV01809 device
#look for new phones lsusb #edit the udev rules file sudo nano /etc/udev/rules.d/51-android.rules #now add for the G1 SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" #and for the Nexus One SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" #restart udev sudo /etc/init.d/udev restart #restart adb adb kill-server adb start-server #don't forget to unplug and replug your phone adb devices