>>2991378focus at infinity (not necessarily where the hard stop is)
the wider the lens the longer you can make the exposure without star trails. can't remember the reciprocal.
wide open as possible,
shoot away from cities
shoot when no full moon
use remote release
alternatively, you can stack photos but I don't have the know how