You log into the developer portal, download the software, and then option click the restore button in iTunes. This allows you to point to the 3.0 b5 install package you just downloaded.
You also need a certificate and have the UDID registered to activate the phone.