a gyro always points to a certain direction, but how is it made to point only towards north?

2 answers

http://en.wikipedia.org/wiki/Gyrocompass
Note in paricular this third paragraph under "Operation":

"Another, more practical, method is to use weights to force the axis of the compass to remain horizontal with respect to the Earth's surface, but otherwise allow it to rotate freely within that plane. In this case, gravity will apply a torque forcing the compass's axis toward true north. Because the weights will confine the compass's axis to be horizontal with respect to the Earth's surface, the axis can never align with the Earth's axis (except on the Equator) and must realign itself as the Earth rotates. But with respect to the Earth's surface, the compass will appear to be stationary and pointing along the Earth's surface toward the true North Pole."