Done wrong, it's a travesty.
Good thing is, it's pretty tough to really screw it up.
Start with a few onions. Skin 'em, cut in half, and then slice along the parallels. Toss 'em on the bottom of the crockpot. You want enough to make a thin layer.
Mince a couple cloves of garlic and toss that in too.
Add a cup or so of cider vinegar, or cider, and a tablespoon or two of brown sugar.

Get you a nice big hunk of pig. This one is about eleven pounds, and too big for the crockpot, so I cut it in half. Boneless butt is a good choice and is generally inexpensive.

Slap that bad boy into the crockpot, fat layer up if it has one.

Slather the top with the spice rub of your choice. (I'm a big fan of Dinosaur BBQ's "Cajun Foreplay".)

Put the cover on, and turn the crockpot on LOW. If you can do the ten-hour cook, by all means, do it!

When it's done, use a couple fork to pull it apart. Pick out the chunks of fat that come up. Pour on your sauce of choice. Be generous! Cover it up and let it simmer on low for another half hour.
Serve however you see fit. I love a pulled pork sandwich with a healthy spoonful of cole slaw on top!