--- Quote Start ---
How to set the display variable with a valid X display for a GUI?
Which X display you are using. I just installed and could not add/remove a X display. I did not work.
--- Quote End ---
Eh? If you are running Centos 6.2 from the GNOME desktop, then you should not have to set any X display. If you have sshed into the Centos 6.2 machine, then use ssh -X <machine>. If you have not installed X at all, then you've likely messed up your Centos install. I'd guess you might want to start again, or perhaps 'yum install gnome' and pickup all the dependencies. Personally, I'd start from scratch to make sure you have a decent Centos 6.2 install. I install a workstation install.
Cheers,
Dave