How to change fuse settings on an ATmega328P-PU?

Hi!

I found a ATmega328P-PU at the Atmel AVR programming lecture and i wonder how i can change the fuses so the ATmega fits Arduino? I have a AVRISP MKii programmer. Do i need Atmel Studio or does Arduino IDE works to change fuse settings?

Here is a starting point:
http://www.gammon.com.au/forum/?id=11653. Will show the fuse set.
Could be modified to set fuse as needed:
http://www.gammon.com.au/forum/?id=11637
Burning the bootloader sets the fuses:
Gammon Forum : Electronics : Microprocessors : Atmega bootloader programmer

Yes, just load the bootloader using the IDE, it will set the fuses per the settings in boards.txt.