If you are using a PuTTY SSH client then it seems highly likely that you are coming from Windows and not
from an X-windows session. I'm not at all familiar with NX/FreeNX
but it seems you need to install and use a Windows NX client
, configuring so the server expects that, rather than an X-windows session.