Find the answer to your Linux question:
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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??

  2. #2
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    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

  3. #3
    Just 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

  4. #4
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    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

  5. #5
    Just 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.

  6. #6
    Linux User DThor's Avatar
    Join Date
    Jan 2006
    Location
    Ca..na...daaa....
    Posts
    319
    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

  7. #7
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,882
    Quote Originally Posted by DThor
    I would be using ssh in this scenario, as TM suggests. "ssh -X hostname".
    This is the most convenient way to do this, normally. 'ssh -X ...' forwards all your X traffic along the secure connection.

    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:

    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
    and emacs should display on the local machine.
    Linux user #126863 - see http://linuxcounter.net/

  8. #8
    Just Joined!
    Join Date
    Feb 2006
    Posts
    4
    ok i will try this when i get home tonight

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •