Are you in the console, right?
Try the following from a shell connected as root
$ xhost +
This enable everybody (host) to use the X Server, after install
$ xhost -
This disable the same.