Install Parallels, run Ubuntu and then ssh to it from the OSX terminal. No more headaches. Everything just works. The sooner you make this move, the better. I wish I had done it years ago.
I'm pretty happy developing on the mac itself. I guess it depends what you do.