Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-14-2009, 08:02 AM   #1
Registered: Feb 2008
Posts: 635
Blog Entries: 1

Rep: Reputation: 48
xterm Xt error: Can't open display:

I have two users on the same machine. When I log in as user X, I can run xterm from a genome terminal. Now, from a genome terminal of X, I
do "ssh Y@f10" where f10 is the machine name, when I key the passwd for Y, I could login as Y.
Now, when I run "xterm" under Y's "terminal":

xterm Xt error: Can't open display:
xterm: DISPLAY is not set


Now, from the terminal of X, I figure out the IP address of machine f10,
say it is,

so in Y terminal, I did

export DISPLAY=

now, type "xterm" again, I get
xterm Xt error: Can't open display: :

From X's terminal, I used " xhost + f10"
or "xhost +"
but that did not help.

What am I missing here ?? Thanks !
Old 01-14-2009, 01:31 PM   #2
LQ Newbie
Registered: Jan 2009
Posts: 5

Rep: Reputation: 1
You should enable X forwarding. Note that should be enabled in ssh daemon settings.

$ ssh -X Y@f10 # This should work

 Excerpts from man ssh
     -X      Enables X11 forwarding.  This can also be specified on a per-host basis
             in a configuration file.

             X11 forwarding should be enabled with caution.  Users with the ability
             to bypass file permissions on the remote host (for the userís X autho‐
             rization database) can access the local X11 display through the for‐
             warded connection.  An attacker may then be able to perform activities
             such as keystroke monitoring.

             For this reason, X11 forwarding is subjected to X11 SECURITY extension
             restrictions by default.  Please refer to the ssh -Y option and the
             ForwardX11Trusted directive in ssh_config(5) for more information.
Old 01-14-2009, 10:40 PM   #3
Registered: Feb 2008
Posts: 635

Original Poster
Blog Entries: 1

Rep: Reputation: 48
Thanks ! I tried that it works. At least now I have an idea of X forwarding.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm error display not set fordwrench Slackware 13 12-04-2012 07:28 AM
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 06:54 PM
xterm xt: cant open display - Error - Request solution Sreeram B S Linux - Newbie 3 05-05-2007 03:27 PM
Error: can't open display gopalkasat Linux - Networking 8 12-13-2004 01:59 PM
Xterm Error Not Able To Display ujnam Linux - Software 2 11-01-2004 06:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration