LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-14-2009, 08:02 AM   #1
centguy
Member
 
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

appears.

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

so in Y terminal, I did

export DISPLAY=190.169.1.64:0.0

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

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

What am I missing here ?? Thanks !
 
Old 01-14-2009, 01:31 PM   #2
Shimuuar
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

Code:
 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
centguy
Member
 
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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