Results 1 to 8 of 8
after firing up xwindows on a win2k laptop and doing a xhost + . Then i telnet to my redhat linux es box but am unable to run graphical applications.
...
- 02-09-2006 #1Just Joined!
- Join Date
- Feb 2006
- Posts
- 4
xwindows to linux box
after firing up xwindows on a win2k laptop and doing a xhost + . Then i telnet to my redhat linux es box but am unable to run graphical applications.
The DISPLAY setting has been set.
The error i get is
Here is the error I get when I try to run emacs:
emacs: Cannot connect to X server 10.1.4.104:0.
Check the DISPLAY environment variable or use `-d'.
Also use the `xhost' program to verify that it is set to permit
connections from your machine.
anyone have any ideas??
- 02-09-2006 #2
Sorry to sidestep your question, but you are aware that emacs runs just fine non-graphically, correct?
Registered Linux user #270181
TechieMoe's Tech Rants
- 02-09-2006 #3Just Joined!
- Join Date
- Feb 2006
- Posts
- 4
Then i guess its non graphical applications as well. All the same the error is the same.
thechap
- 02-09-2006 #4
Is your RHEL server set up to accept non-authenticated telnet sessions? Have you tried using SSH instead?
Registered Linux user #270181
TechieMoe's Tech Rants
- 02-09-2006 #5Just Joined!
- Join Date
- Feb 2006
- Posts
- 4
no the server does not accept non authenticated telnet sessions . I am able to connect via telnet after putting in a username and password.
- 02-09-2006 #6
I would be using ssh in this scenario, as TM suggests. "ssh -X hostname".
That aside, what seems to be happening is that you're asking to open an X app on the linux system, which I assume you don't want. DISPLAY=:0 ?
I'm also unclear about the comment "Then i guess its non graphical applications as well". Starting emacs in the shell only, not with X, shouldn't be giving you warnings about X. If it is, then you're not calling it with :
emacs -nw
It's useful to verify that this works.
DT
- 02-09-2006 #7This is the most convenient way to do this, normally. 'ssh -X ...' forwards all your X traffic along the secure connection.
Originally Posted by DThor
If you're trying to do this from telnet, you need to be sure there is a route back to your machine from the machine you're logging into, and set your DISPLAY variable accordingly.
something like this:
and emacs should display on the local machine.Code:[user@fred user]$xhost +barney [user@fred user]$telnet barney username: user password: [user@barney user]$export DISPLAY=fred:0.0 [user@barney user]$emacs
Linux user #126863 - see http://linuxcounter.net/
- 02-10-2006 #8Just Joined!
- Join Date
- Feb 2006
- Posts
- 4
ok i will try this when i get home tonight


Reply With Quote
