Computing.Net > Forums > Linux > xhost, display problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

xhost, display problem

Reply to Message Icon

Name: Beniam
Date: September 3, 2003 at 21:17:25 Pacific
OS: RedHat Linux 9
CPU/Ram: p3/500
Comment:

HI, I am a complete novice in using Linux

I wanted to use emacs after doing telnet to a remote server but i keep on getting this message:

xhost:unable to open display "localhost.localdomain:0.0"
Display is localhost.localdomain:0.0

what do i have to do to configure my system so that i can use emacs after telnet(ing) to a remote server.

Please help, need this urgent.

Beniam



Sponsored Link
Ads by Google

Response Number 1
Name: Max
Date: September 3, 2003 at 22:56:19 Pacific
Reply:

you should set the environment variable
"DISPLAY" to your localhost and then add
":0.0" to mean the first display of that host. then you can run an mwm directly
and every application. to actuate this
connection the host machine should be
allowing remote desktop connection,
you can disable the guard by issuing
the command "xhost +" before.

take care that the command is user-related.


0

Response Number 2
Name: C_Legend
Date: September 4, 2003 at 00:30:01 Pacific
Reply:

Yes, once you telnet in, enter this at the command prompt:

# export DISPLAY=10.10.10.1:0.0

Replace 10.10.10.1 with the IP address of the current PC (not the machine you telnetted into). If you are using a Linux machine as the desktop machine, then, as Max said, you need to enter "xhost +" to allow you access to that X server (which is the client; confusing, huh?)

Good luck.


0

Response Number 3
Name: 3Dave
Date: September 4, 2003 at 08:23:47 Pacific
Reply:

Alternatively, instead of telnet use SSH if
available, with the "-X" switch it will
forward all X applications etc.


0

Response Number 4
Name: beniamt
Date: September 4, 2003 at 19:20:27 Pacific
Reply:

Thanks guys for all your help

how do i however find the IP address of my machine?

when i use ssh -x it appends my username on my local machine to the host domain name and asks me for password. The password that i supply it will be wrong because my local user name is different from the one i have on the host domain i am trying to connect. How do i change my username in order to provide the correct password?


0

Response Number 5
Name: C_Legend
Date: September 4, 2003 at 21:46:05 Pacific
Reply:

In Linux, to find your IP address, enter "ifconfig" or "ifconfig eth0" for just the info on the first ethernet interface. In Windows, run "winipcfg". Good luck.


0

Related Posts

See More



Response Number 6
Name: 3Dave
Date: September 5, 2003 at 01:52:06 Pacific
Reply:

Use the -l switch to pass your username.
And note the difference in case, -x = X11
forwarding OFF and -X = ON

$ ssh -Xl username hostname

NB winipcfg only works on windoze 9x boxes.
For NT/2000/XP use "ipconfig" instead. If
you want to easily find your outwards
pointing IP address (as opposed to you
internal LAN one), just visit
www.whatismyip.com


0

Sponsored Link
Ads by Google
Reply to Message Icon

desktop permission Looking for Vmlinuz.versi...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: xhost, display problem

Display problems www.computing.net/answers/linux/display-problems/2708.html

KDE display problems www.computing.net/answers/linux/kde-display-problems/2725.html

Red Hat Linux Display Problem www.computing.net/answers/linux/red-hat-linux-display-problem/16213.html