Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED]: ssh + xterm: DISPLAY is not set.

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

[SOLVED]: ssh + xterm: DISPLAY is not set.

  • Quote

Post by ONEEYEMAN » Thu Jun 16, 2011 8:40 pm

Hi, ALL,
I have a new laptop with fresh am64 Gentoo install.
What I am trying to do is do an "ssh" to my office server. When I get a connection I am trying to run "xterm&".
Doing it I am receiving following errors:

Code: Select all

xterm Xt error: Can't open display:
xterm: DISPLAY is not set
I also have much older laptop with Gentoo install. Doing ssh + xterm does not result in any errors.

What might be the problems?
I checked "echo $DISPLAY" on the new laptop and I got the value.

What else might be the cause? I'm not trying to connect as root just as regular user.

Thank you.
What
Last edited by ONEEYEMAN on Fri Jun 17, 2011 7:37 am, edited 1 time in total.
Top
sirlark
Guru
Guru
User avatar
Posts: 344
Joined: Mon Oct 25, 2004 11:41 am
Location: Limerick, Ireland

  • Quote

Post by sirlark » Thu Jun 16, 2011 9:07 pm

First things first, check your settings. On your server, in /etc/ssh/ssh_config make sure ForwardX11 is set to 'yes'.

You can leave it set to 'no' but then you have to use the '-X' commandline option to override this setting.

I have my ForawardX11 set to 'no', and when I ssh into my server without the -X I get the same error.

Code: Select all

ssh -X myuser@myserver
The above works.
Adopt an unanswered post today
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Thu Jun 16, 2011 11:40 pm

sirlark,
This is what happened when I tried with "-X":

Code: Select all


IgorReinCloud igor # ssh -X -p 1313 igor@X.X.X.X
igor@X.X.X.X's password: 
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
Linux host 2.6.31-21-generic #59-Ubuntu SMP Wed Mar 24 07:28:27 UTC 2010 x86_64

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

Last login: Thu Jun 16 16:32:57 2011 from netblock-72-25-106-2.dslextreme.com
igor@host:~$ xterm&
[1] 12502
igor@host:~$ Invalid MIT-MAGIC-COOKIE-1 keyxterm Xt error: Can't open display: localhost:12.0

[1]+  Exit 1                  xterm
Thank you.
Top
wthrowe
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Wed Aug 19, 2009 6:28 pm

  • Quote

Post by wthrowe » Fri Jun 17, 2011 3:28 am

Don't know if it's still relevant (it seems to be, but maybe something's happened that I don't know about), but [bug]237778[/bug] from a couple years ago suggests that ssh -X is broken and won't be fixed, and that you have to use ssh -Y instead now.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Fri Jun 17, 2011 3:55 am

OK,
Will try -Y when I come home.

Thank you.
Top
ONEEYEMAN
Advocate
Advocate
Posts: 3709
Joined: Tue Mar 01, 2005 9:49 pm

  • Quote

Post by ONEEYEMAN » Fri Jun 17, 2011 7:36 am

Yes, -Y is what I was looking for.

Thank you.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic