LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-03-2007, 02:05 PM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
DISPLAY vs. rsh for remote X applications


my computer has hostname mycomputer.
the server has hostname hostcomputer.

On hostcomputer:
What are the differences between setting hostcomputer's DISPLAY variable to mycomputer:0.0,
versus perfoming a remote shell login to mycomputer,
and then starting an X application.

Currently, I am simply setting DISPLAY=mycomputer:0.0, and my X server is routinely crashing upoin launching graphically intense X apps. I am wondering if this might be fixed by first rsh'ing to mycomputer? The host probably has a worse graphics card/driver combo.

Thanks

- Jameson
 
Old 07-04-2007, 11:06 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
On which computer do you work at and on which computer do you want the programs to run?
If you want to use "mycomputer" as an X terminal and run the apps on the server, you can configure it so that your entire session runs on the server, but you are working on "mycomputer". The display will need to be set to mycomputer:0.0 whether or not you rsh into the server, or start the program from the server. It is what the application (the client) uses to display output to the server (X terminal, mycomputer).

Another way to do it is to ssh into the server. "ssh -X hostcomputer". On the server the display is localhost:10.0. The ssh server acts like a proxy x server. On the other end of the tunnel the localhost:0.0 is used.
Code:
ssh -X delllap
Password:
Last login: Wed Jul  4 14:52:13 2007 from hpamd64.jesnet
[jschiwal@delllap ~]$ echo $DISPLAY
localhost:10.0
If you use rsh to log into a shell, from mycomputer to hostcomputer, (sorry, by I hate these names. Whoever thought up this "My ..." crap?) you still need to set DISPLAY=mycomputer:0.0.

If you are at hostcomputer, rsh into mycomputer, and then launch an app. The app is running on mycomputer and not on the server. It is as if you didn't walk over to the server, but started the application at mycomputer instead.

Last edited by jschiwal; 07-04-2007 at 11:07 PM.
 
  


Reply



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
Connection refuse when remote logging using Rsh canis_fedelis Linux - Networking 2 04-22-2008 02:09 PM
rsh reseting incoming display depth gandalph_wolf Linux - Networking 0 02-08-2007 03:08 PM
SuSe 10 on a remote system via rsh is very slow vonSawitzky Linux - Networking 0 01-27-2006 05:21 AM
RSH (remote shell) maseby Linux - Newbie 1 01-22-2005 07:54 PM
Switching Applications to remote display vipermuffin Linux - General 1 05-13-2004 04:26 AM

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

All times are GMT -5. The time now is 08:01 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