Uh.. well.. I haven't tried myself. I was Safety Engineer once while a friend tried, and things did not go quite as planned. We didn't exactly have a proper oven or home roasting apparatus, either. After poking around on the web for a few minutes, it seemed like people were reasonably successful at roasting them in a skillet.
So we tried that.. the skins that were on the beans burned and smelled bad (and smoked a bit), and a lot of the beans got too burned on the outside but weren't quite done on the inside, as was apparent after grinding. The coffee was not good, at all.
It was coffee abuse in the 3rd degree.
But we were really stoned and had nothing better to do, and had a little bit of green coffee beans from a friend of a friend's parents. I'd never seen them unroasted before. They look kinda wierd. They make popping noises vaguely like popcorn, but not quite as loud. Its kind of alarming if you're stoned and not expecting it.
I suspect they may have been grown where the guy lived (ozark mtns in AR)... good climate for pot... not good for coffee.
I'd like to try again with someone who knows what they are doing, or watch someone do it so I have some idea of temp & timing.