This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problem with running X apps


Add the follow "scriptlet" to the end of /usr/X11R6/bin/startxwin.sh:

disp=`echo $DISPLAY | awk -F: '{print $2}'`
ip=`ipconfig | grep Address | awk -F: '{print $2}' | sed "s# ##g"`
xhost remotehostname
rsh -l remoteusername remotehostname \
xterm -title "remoteusername@remotehostname" -display $ip:$disp &

Thereafter, when starting XWin with this script, you will get 2 xterms at startup, one on localhostname and one on remotehostname.

Note that for rsh to be successful, you need to have a file called ".rhosts" in your home directory on remotehostname. You will want to add an entry that looks like "localhostname localusername" on a line by itself.

You can figure out the value to use for localhostname by running "hostname" at the Cygwin bash prompt.

You can figure out the value to use for localusername by running "whoami" at the Cygwin bash prompt.

Type "man rsh" at the Cygwin bash prompt to learn more about the rsh command.

From: "Kerry Sanders" <ksanders@mindspring.com>
To: "'Thomas Chadwick'" <j_tetazoo@hotmail.com>,<cygwin-xfree@cygwin.com>
Subject: RE: Problem with running X apps
Date: Tue, 6 Aug 2002 02:38:10 -0500

That is what I was going for, but being new to Linux, I am trying to
figure out what to use other than ssh at this point.  Would it be
rlogin?

For the record, I am running a WinXP box over a 100 BaseT home network
connecting to a Redhat 7.3 linux box.



-----Original Message-----
Since I'm behind a corporate firewall, I'm not particularly concerned
about
who is looking at my X traffic, or what they might see, so I don't
bother
with ssh.

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]