Re: X Window over SSH

From: Darren Moffat (Darren.Moffat@eng.sun.com)
Date: 08/10/01


Message-Id: <200108101945.f7AJjTB112037@jurassic.eng.sun.com>
Date: Fri, 10 Aug 2001 12:44:10 -0700 (PDT)
From: Darren Moffat <Darren.Moffat@eng.sun.com>
Subject: Re: X Window over SSH
To: gsaoutine@hotmail.com, rajeev@rajeevnet.com


>setenv DISPLAy yourhost:0.0 (for firt display at port 6000)
>setenv DISPLAy yourhost:0.1 (for 2nd display, at port 6001)

Not quite.

:d.s

d is the display
s is the screen

It is possible in X to have multiple screens attached to the same display.

:0.0 is the first display and first screen it is on port 6000
:0.1 is the first display and second screen it is on port 6000

:1.0 is the second display and first screen it is on port 60001

See the DISPLAY NAMES section of X(1)

Normally in Solaris if you have multiple framebuffers then they are
all setup as the same display but different screens (or if you are using
Xinerama then the same logical screen).

>Generally you know xhost command can be used on server side to control access
to your X
>server, but in general user run something like xhost + and leaving their X
server open to all.

You should use something stronger than xhost. See the GRANTING ACCESS
section of Xserver(1) and Xsecurity(7).

--
Darren J Moffat