Part 1- Set up your PC

You can skip Part #2 if you are using an emulator.

Part 2- To Set up a Nintendo DS console

This is a wonderful link to get started. You don't need to read/understand everything.

Here are some homebrew tutorials. But they seem to be out of date.