How do we take astrophotos?

What kind of equipment is needed to take these pictures