Nevermind, figured it out. Just had to ctrl-alt-F1 my way out then use
sudo /etc/init.d/gdm stop
to exit the x server. Then I could run it and then run the above again with stop replaced with start to get back in. And for anyone else who's trying to do the same thing, you need to have libc headers package before you can do this, but if you don't it will tell you you need them anyway.
Thanks for your help!