How to setup Arduino to 8mhz properly?

Run the ATmega328 from an external 8Mhz resonator or crystal.