How do I get a petit taxi to use the meter?

The short answer

Say compteur before the car moves.

If the driver refuses, agree a price or try the next one — there's always another. Taxis are colour-coded by city: Marrakech ochre, Casablanca red, Rabat blue, Fes red, Tangier light blue.