Tripod + Bulb Mode + remote cable release and also a black card (if reqd).
Use a sturdy tripod to minimize vibrations, and use a remote release with 2 sec timer and mirror-lockup to minimize vibrations from the mirror slap. Setup the system so that artificial light sources (eg streetlamps) are not near the camera, otherwise you may get lens flare.
Prefocus at the area of interest and switch to manual focus so that AF is not initiated when the shutter release button is pressed. (or disable AF at shutter half-press)
Use bulb mode with low ISO and stop down i.e. use small apertures (say f/8 or smaller depending on the duration of the fireworks).
When in bulb mode, you can use a black card to temporarily cover the lens and then expose again if you wish to capture a series of fireworks in the same frame..
Shoot RAW as far as possible for some latitude during post-processing.
On some cameras, post-exposure noise reduction with dark frame subtraction cannot be turned off...this essentially doubles the time during which the camera is unusable (i.e. original exposure + DFS for the same time) so take this into consideration when timing the shots, or you may miss some good ones.
Hope this helps.