title: Error: cannot open display: localhost:0.0 - trying to open Firefox from CentOS 6.2 64bit and display on Win7
body: <p>I am on a Windows7 machine and I'm trying to get firefox to open on the centOS machine, but be displayed on my current screen. 
  When typing <code>firefox</code> in terminal, I am getting the following error:</p>
  
  <pre><code>Error: cannot open display: localhost:0.0
  </code></pre>
  
  <p>To setup the display I used the command </p>
  
  <pre><code>$ export DISPLAY=localhost:0.0
  </code></pre>
  
  <p>Some site suggested using the following, but it didn't work either:</p>
  
  <pre><code>$ export DISPLAY=:0.0
  </code></pre>
  
  <p>I am using PuTTY and I have the <code>Enable X11 forwarding</code> check box checked and XMing is running on Windows. Additionally, the sshd_config on centOS file seems to be setup properly as well:</p>
  
  <pre><code>$ cat /etc/ssh/sshd_config |grep -i x11
  #X11Forwarding no
  X11Forwarding yes
  #X11DisplayOffset 10
  X11UseLocalhost yes
  </code></pre>
  
  <p>I've looked over numerous pages and searched StackOverflow as well, but none have managed to help me in any way. 
  Thank you in advance. </p>