Link to home
Start Free TrialLog in
Avatar of newbie08
newbie08Flag for India

asked on

xterm xt cannot open display

I have logged in to linux using putty. I am unable to run xclock or xterm and it gives "cannot open display localhost:0.0" as error.

I have tried to login using xterm but the console is not getting opened.
Avatar of 1oo4
1oo4
Flag of Gibraltar image

You have to run this command (xterm) in Graphical Mode (KDE, GNMOE) Try connectig using VNC or console. Alternatively you can set up a X windows server on you computer so the graphics can be displayed on your computer. I am using xming for X Windows server http://sourceforge.net/projects/xming/
An easier way to run this will be to login from other linux box using xterm. On remote machine type
export DISPLAY=<yourIP address>:0.0
On your box type:
xhost +
Then try running xterm on remote box.
Avatar of newbie08

ASKER

I have logged in to linux using putty and have tried exporting the display variable to  <windows ip>:0.0
If i run xhost + or xclock. .. am  still getting the same error.
On windows you have to install Xming and run Start -> Programs -> Xming -> XLaunch
Here is a link for Xming  XWindows displayhttp://sourceforge.net/projects/xming/
If you are connecting from linux box you can just type xhost+ instaed of installing Xming as XWindows is a standard thing on linux.
Hi,
did you export your display
set "your_ip"
then
xclock &
ok sorry you did
ok  change the number for display
export "ipnumber":0.10
Is there any other option other than installing Xming.. as the site is blocked here and am unable to install xming... I have xmanager installed in my system... but connecting through xmanager to linux give XDMCP connection failed.
When trying to connect to linux using xterm through GNOME am getting this error:
** (gnome-session:9815): WARNING **: Missing argument for --display

please help
ASKER CERTIFIED SOLUTION
Avatar of skymo
skymo
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mifurman1947
mifurman1947

With Xmanager you can start Xstart and run it with ssh ,telnet etc. See picture. You don't xterm.
If you want run xterm after this from any computer,  do next :
export DISPLAY="your IP:0"
or setenv DISPLAY "your IP:0".
Xstart.bmp
enabling X11 in putty has solved the problem.