Forums

Skip to content

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

Xwindows

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
9 posts • Page 1 of 1
Author
Message
melanarchy
n00b
n00b
Posts: 11
Joined: Tue Dec 03, 2002 7:41 pm
Location: New York
Contact:
Contact melanarchy
Website

Xwindows

  • Quote

Post by melanarchy » Tue Dec 03, 2002 7:44 pm

how do I make it so that Xwindows applications from other computers will work on my gentoo desktop? In windows I first run Xwindows, ssh to the remote machine, and then set my DISPLAY env var to the IP of my machine. When I run an Xwindows application it then pops up on my local screen. How do I get this same behaviour using Xwindows?

Thanks,
Mel
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Tue Dec 03, 2002 7:50 pm

That way doesn't work?
Quis separabit? Quo animo?
Top
Lemma
Guru
Guru
User avatar
Posts: 416
Joined: Fri Apr 19, 2002 7:02 pm
Location: Uppsala, Sweden

  • Quote

Post by Lemma » Sat Jan 11, 2003 1:17 pm

Nop, not for me (I think it should)...

Code: Select all

ssh -X -l name remote_ip
export DISPLAY=local_ip:0

Xlib: connection to "local_ip" refused by server
Xlib: No protocol specified

GTK-WARNING **: cannot open display local_ip:0
? ? ?
Always make it as simple as possible, but no simpler
/Einstein
Top
Lemma
Guru
Guru
User avatar
Posts: 416
Joined: Fri Apr 19, 2002 7:02 pm
Location: Uppsala, Sweden

  • Quote

Post by Lemma » Sat Jan 11, 2003 1:22 pm

Ok, problem solved ;-). All I had to do was to run xhost +remote_ip and viola - working!
Always make it as simple as possible, but no simpler
/Einstein
Top
nbensa
l33t
l33t
User avatar
Posts: 799
Joined: Wed Jul 10, 2002 11:09 am
Location: Buenos Aires, Argentina

  • Quote

Post by nbensa » Sat Jan 11, 2003 1:57 pm

on your local host

Code: Select all

xauth list
Then ssh to your remote host and

Code: Select all

xauth add /cookie/ ; export DISPLAY=/your display/
For example:

Code: Select all

nbensa@venkman nbensa $ xauth list
venkman.bensa.ar:0  MIT-MAGIC-COOKIE-1  335b1e6659335b0b3a663936605c5b59
venkman.bensa.ar/unix:0  MIT-MAGIC-COOKIE-1  335b1e6659335b0b3a663936605c5b59
nbensa@venkman nbensa $ ssh zeddmore
nbensa@zeddmore's password:
Last login: Fri Jan 10 22:51:20 2003 from venkman.bensa.ar
nbensa@zeddmore nbensa $ xauth add venkman.bensa.ar:0  MIT-MAGIC-COOKIE-1  335b1e6659335b0b3a663936605c5b59
nbensa@zeddmore nbensa $ export DISPLAY=venkman.bensa.ar:0
HTH,
Norberto
Top
rajl
Apprentice
Apprentice
Posts: 287
Joined: Wed Sep 25, 2002 12:39 am

  • Quote

Post by rajl » Mon Jan 13, 2003 1:06 am

I just use the command:

ssh -x username@remotehost.com

and I can use all the x applicaitions I want on the remote host and have them display on my machine (provided I have the program installed on my local machine). Is there some reason I don't know about as to why you use what appears to be a more complicated way?
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Top
nbensa
l33t
l33t
User avatar
Posts: 799
Joined: Wed Jul 10, 2002 11:09 am
Location: Buenos Aires, Argentina

  • Quote

Post by nbensa » Mon Jan 13, 2003 3:12 am

yep, sure, there's a BIG reason for that much more complicated way...


... I forgot about X forwarding :-)
Top
rajl
Apprentice
Apprentice
Posts: 287
Joined: Wed Sep 25, 2002 12:39 am

  • Quote

Post by rajl » Mon Jan 13, 2003 5:42 am

and that BIG reason would be? i'm a relative newbie to linux, so please forgive me
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Top
nbensa
l33t
l33t
User avatar
Posts: 799
Joined: Wed Jul 10, 2002 11:09 am
Location: Buenos Aires, Argentina

  • Quote

Post by nbensa » Mon Jan 13, 2003 12:03 pm

The reason is: I forgot we were talking about SSH!!! I forgot X forwarding.

I think I need to clarify this: I used to use 'telnet' a lot and 'ssh' is like a new toy for me. I'm using Linux since two years ago, and I'm still learning a lot of things.

I'm sorry for the confusion.

Regards,
Norberto
Top
Post Reply

9 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