[lug] Newbie X-window questions
carl wagner
carl.wagner at level3.com
Wed May 9 18:39:19 MDT 2001
If you ssh to a box you DONT want to set the display. If you do you will
likely break it so that you can't display X things. Make sure your display
variable is set before you ssh. Then ssh and look at your display. It should
be of the form:
hers:10.0
as ssh is creating a tunnel for X. (notice that it is 10 and not 0).
If this is not working try
ssh hers -X
To enable ssh forwarding.
Carl.
Glenn Murray wrote:
>
> This X terminology is just about opaque. I want for example, to open
> a window on mine in which the stuff happening is on her computer.
> E.g., if I type "mine$ netscape&" I'll get netscape with her
> bookmarks, etc.
>
> mine/$ ssh hers xterm
> bash: xterm: command not found
> mine/$ xhost +hers
> hers being added to access control list
> mine/$ ssh hers
> me at hers:me/$ export DISPLAY=adrenaline:0
> me at hers:me/$ xterm &
> [1] 1936
> me at hers:me/$ netscape &
>
> But nothing happens? Could this be a packet filtering problem?
>
> Glenn Murray
> www.mines.edu/~glenn/public_html/Welcome.html
>
> On Wed, 9 May 2001, Hugh Brown wrote:
>
> > If you are sitting at mine why do you want a window to open up on hers?
> > You can't do that (that I know of) by the way. Maybe you mean this.
> > sitting at mine, want to get an xterm on hers to open on mine
> >
> > Method 1.
> > mine$ ssh hers xterm
> >
> > Method 2.
> > mine$ xhost +hers
> > mine$ ssh hers
> > hers$ export DISPLAY=mine:0 #assumes sh/bash/ksh syntax
> > hers$ xterm&
> >
> > Hugh
> >
> > >
> > > More fundamentally, though, I'd like at this point to get even one
> > > window open using "host-based authentication". To avoid the
> > > "local/remote" confusion, say I have a Linux box "mine" which I am
> > > sitting at, and there is a Linux box "hers" running on the local net,
> > > on which I have an account. I can ssh to hers, and then
> > >
> > > hers$ xhost +mine
> > > xhost: unable to open display ""
> > >
> > > Does X need to be running on hers already? Can I start it?
> > >
> > > Don't I have to export some DISPLAY variable?
> > >
> > > What do I type at mine$ to get a window on hers?
> > >
> > > Again, Thanks!
> > > Glenn Murray
> > > www.mines.edu/~glenn/public_html/Welcome.html
> > _______________________________________________
> > Web Page: http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> >
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list