Just wanted to say "Thanks!" to Riverman - this worked great for me. The only thing I'd add is that I wasn't sure if I needed to load the root-g2x before I flashed CyanogenMod. I went ahead and did it. Now I'm rooted, running CyanogenMod, and it even fixed a problem the stock ROM was having seeing my SD card!
I found this to be a handy video to accompany your directions, too: