RE: Remote X from another BSD Box

2003-03-21 Thread Aaron Burke
 On Wednesday, 19 March 2003 at 22:06:45 -0500, Brian McCann wrote:
  Hi all.  I'd imagine this would be fairly simple since I got it to work
  from Xmanager for Windows...but I'm having difficulties.  I have 2
  boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
  blown install of X with KDE and all kinds of stuff, the OpenBSD just has
  a basic X installed with xdm.  I'd like to be able to use the OpenBSD
  box as a display for the FreeBSD box.  I thought I'd just be able to ssh
  into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
  no dice.  Can someone help me out?

 The most obvious way of doing this is to start an xterm on the FreeBSD
 server:

   xterm -display freebsd:0.0 
There is also an other way via xdm. But for this to work you need to
uncomment the last line in /usr/X11R6/lib/X11/xdm/xdm-config.

You will also want to make sure your kernel contians the line
options XSERVER   (no quotes).


 For this to work, you should:

 1.  On the FreeBSD box, modify /usr/X11R6/bin/startx.  Change the line

   listen_tcp=-nolisten tcp

 to

   listen_tcp=
Not sure that this is needed, I have never changed it. However
I share x-windows using XDM.


 2.  Also on the FreeBSD box, run xhost:

 xhost openbsd
Guessing that xhost is kind of like the configurations of an
X server.


 This applies to any other X application as well, of course.
If you enable xdm (X Display Manager) X-Windows will become
an X-Server for every computer on your network. Other people
know of some ways to limit this functionallity by modify
which hosts your machine will listen on.

And With XDM running on a server you connect to it via:
From a UNIX box: X -query other.freebsd.box
Or: X -broadcast  Asks for any display server that
is running a display manager. A list is generated on your client.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Remote X from another BSD Box

2003-03-21 Thread Greg 'groggy' Lehey
On Friday, 21 March 2003 at  4:02:53 -0800, Aaron Burke wrote:
 On Wednesday, 19 March 2003 at 22:06:45 -0500, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to work
 from Xmanager for Windows...but I'm having difficulties.  I have 2
 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
 blown install of X with KDE and all kinds of stuff, the OpenBSD just has
 a basic X installed with xdm.  I'd like to be able to use the OpenBSD
 box as a display for the FreeBSD box.  I thought I'd just be able to ssh
 into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
 no dice.  Can someone help me out?

 The most obvious way of doing this is to start an xterm on the FreeBSD
 server:

   xterm -display freebsd:0.0 

 There is also an other way via xdm. But for this to work you need to
 uncomment the last line in /usr/X11R6/lib/X11/xdm/xdm-config.

This is dangerous advice.  It's possible for this file to change, and
the last line to become something different.  In the default file on
my system (4.1.0), it's not commented out.  You should describe
exactly what configuration change to make.

 You will also want to make sure your kernel contians the line
 options XSERVER   (no quotes).

You don't need either of these to run xdm.

 For this to work, you should:

 1.  On the FreeBSD box, modify /usr/X11R6/bin/startx.  Change the line

   listen_tcp=-nolisten tcp

 to

   listen_tcp=

 Not sure that this is needed, I have never changed it. However
 I share x-windows using XDM.

If you start X from startx, and you want to connect from another
machine, this is absolutely necessary.  The default changed a couple
of years ago, and it caused a lot of pain.

 2.  Also on the FreeBSD box, run xhost:

 xhost openbsd

 Guessing that xhost is kind of like the configurations of an
 X server.

Don't guess, check.  There's a man page:

NAME
   xhost - server access control program for X

It's nothing like configuring an X server.

 This applies to any other X application as well, of course.

 If you enable xdm (X Display Manager) X-Windows will become
 an X-Server for every computer on your network.

Well, no, it remains a display manager.  And who can access it depends
on how you set up your access control in
/usr/X11R6/lib/X11/xdm/Xaccess.  By default, only the local system can
access the display manager.  That's as it should be.

 Other people know of some ways to limit this functionallity by
 modify which hosts your machine will listen on.

You edit /usr/X11R6/lib/X11/xdm/Xaccess.

Running xdm still seems to be the less popular way to run X.  I
personally haven't seen any need for it.

Greg
--
See complete headers for address and phone numbers


pgp0.pgp
Description: PGP signature


Re: Remote X from another BSD Box

2003-03-21 Thread Siegbert Baude
Hi,
sorry I missed the beginning of this thread, so I jump in between.

Hi all.  I'd imagine this would be fairly simple since I got it to work
from Xmanager for Windows...but I'm having difficulties.  I have 2
boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
blown install of X with KDE and all kinds of stuff, the OpenBSD just
has a basic X installed with xdm.  I'd like to be able to use the
OpenBSD box as a display for the FreeBSD box.  I thought I'd just be
able to ssh into the FreeBSD box and run xmms, xcalc, xterm, whatever
I wanted...but no dice.  Can someone help me out?
You probably want to look at the -x and -X options of ssh and make sure the 
sshd on your FreeBSD box is configured to allow X tunneling.

Ciao
Siegbert


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


RE: Remote X from another BSD Box

2003-03-20 Thread P. U. Kruppa
On Wed, 19 Mar 2003, Brian McCann wrote:

 Thanks guys, -X worked great!  KDE on my Sun box now. :)  Now all I need
 is a non-optical Sun mouse, and to try NetBSD so I can use SMP. :)

 --Brian
Just to throw in some 0.01 ยค :
If you can spare some time, have a look at /usr/ports/vnc .
You can not only access X-Servers on different UN*X platforms,
but also Windows machines via any JAVA capable Browser.

Regards and sorry for interfering,

Uli.



 -Original Message-
 From: Tim Peters [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 10:40 PM
 To: Brian McCann
 Cc: [EMAIL PROTECTED]
 Subject: Re: Remote X from another BSD Box


 On Wed, Mar 19, 2003 at 10:06:45PM -0500, Brian McCann wrote:
  Hi all.  I'd imagine this would be fairly simple since I got it to
  work from Xmanager for Windows...but I'm having difficulties.  I have
  2 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a
  full blown install of X with KDE and all kinds of stuff, the OpenBSD
  just has a basic X installed with xdm.  I'd like to be able to use the

  OpenBSD box as a display for the FreeBSD box.  I thought I'd just be
  able to ssh into the FreeBSD box and run xmms, xcalc, xterm, whatever
  I wanted...but no dice.  Can someone help me out?

 Connect with something like:

 openbsd.box% ssh -X [EMAIL PROTECTED]

 Then just start your favourite X applications, and they will display on
 the OpenBSD machine like you want.  If that doesn't work, add '-v' to
 the ssh options to see what goes wrong.

 HTH,

 -tim


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


+---+
|Peter Ulrich Kruppa|
|  -  Wuppertal -   |
|  Germany  |
+---+

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Remote X from another BSD Box

2003-03-20 Thread Greg 'groggy' Lehey
On Wednesday, 19 March 2003 at 22:06:45 -0500, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to work
 from Xmanager for Windows...but I'm having difficulties.  I have 2
 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
 blown install of X with KDE and all kinds of stuff, the OpenBSD just has
 a basic X installed with xdm.  I'd like to be able to use the OpenBSD
 box as a display for the FreeBSD box.  I thought I'd just be able to ssh
 into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
 no dice.  Can someone help me out?

The most obvious way of doing this is to start an xterm on the FreeBSD
server:

  xterm -display freebsd:0.0 

For this to work, you should:

1.  On the FreeBSD box, modify /usr/X11R6/bin/startx.  Change the line

  listen_tcp=-nolisten tcp

to

  listen_tcp=

2.  Also on the FreeBSD box, run xhost:

xhost openbsd

This applies to any other X application as well, of course.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers


pgp0.pgp
Description: PGP signature


Remote X from another BSD Box

2003-03-19 Thread Brian McCann
Hi all.  I'd imagine this would be fairly simple since I got it to work
from Xmanager for Windows...but I'm having difficulties.  I have 2
boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
blown install of X with KDE and all kinds of stuff, the OpenBSD just has
a basic X installed with xdm.  I'd like to be able to use the OpenBSD
box as a display for the FreeBSD box.  I thought I'd just be able to ssh
into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
no dice.  Can someone help me out?

Thanks,
--Brian


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Remote X from another BSD Box

2003-03-19 Thread Tim Kellers
Are you setting your DISPLAY variable?  for example:

bash export $DISPLAY=(the IP address of the Open BSD box):0.0

or for the (t)csh

setenv DISPLAY (the IP address of the Open BSD box):0.0

where the :0.0 part is the number of the X display on your OpenBSD box

Tim Kellers
CPE/NJIT



On Wednesday 19 March 2003 10:06 pm, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to work
 from Xmanager for Windows...but I'm having difficulties.  I have 2
 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
 blown install of X with KDE and all kinds of stuff, the OpenBSD just has
 a basic X installed with xdm.  I'd like to be able to use the OpenBSD
 box as a display for the FreeBSD box.  I thought I'd just be able to ssh
 into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
 no dice.  Can someone help me out?

 Thanks,
 --Brian


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


RE: Remote X from another BSD Box

2003-03-19 Thread Brian McCann
Ok...I think I have a partial lack of understanding of how the display
numbers work.  I tried 0.0, and it said the connection was refused,
followed by no protocol specified.  I also tried 0.2 on a longshot.
BTW, I'm running these commands from an xterm windowif that
helps/matters.

--Brian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Kellers
Sent: Wednesday, March 19, 2003 10:15 PM
To: Brian McCann; [EMAIL PROTECTED]
Subject: Re: Remote X from another BSD Box


Are you setting your DISPLAY variable?  for example:

bash export $DISPLAY=(the IP address of the Open BSD box):0.0

or for the (t)csh

setenv DISPLAY (the IP address of the Open BSD box):0.0

where the :0.0 part is the number of the X display on your OpenBSD box

Tim Kellers
CPE/NJIT



On Wednesday 19 March 2003 10:06 pm, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to 
 work from Xmanager for Windows...but I'm having difficulties.  I have 
 2 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a 
 full blown install of X with KDE and all kinds of stuff, the OpenBSD 
 just has a basic X installed with xdm.  I'd like to be able to use the

 OpenBSD box as a display for the FreeBSD box.  I thought I'd just be 
 able to ssh into the FreeBSD box and run xmms, xcalc, xterm, whatever 
 I wanted...but no dice.  Can someone help me out?

 Thanks,
 --Brian


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Remote X from another BSD Box

2003-03-19 Thread Tim Kellers
Sorry to reply to my own post, but I realized I made a couple of assumptions.

First, the below mentions commands have to be issued on the FreeBSD box after 
you ssh to it from the Open BSD box, and

second, you may be required to issue the 

xhost [the ip address of the FreeBSD box]

on the Openbsd box before sshing to the FreeBSD box, to allow the Xserver on 
the OpenBSD box to allow X connections from the remote FreeBSD box.

I'm not certain that OpenBSD requires the xhost option the same way that 
FreeBSD does, but given that OpenBSD has a more spartan security model than 
FreeBSD's  own conservative implementation, an xhost command (or the OpenBSD 
equivalent) is likely to be needed.

Tim Kellers
CPE/NJIT


On Wednesday 19 March 2003 10:15 pm, Tim Kellers wrote:
 Are you setting your DISPLAY variable?  for example:

 bash export $DISPLAY=(the IP address of the Open BSD box):0.0

 or for the (t)csh

 setenv DISPLAY (the IP address of the Open BSD box):0.0

 where the :0.0 part is the number of the X display on your OpenBSD box

 Tim Kellers
 CPE/NJIT

 On Wednesday 19 March 2003 10:06 pm, Brian McCann wrote:
  Hi all.  I'd imagine this would be fairly simple since I got it to work
  from Xmanager for Windows...but I'm having difficulties.  I have 2
  boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
  blown install of X with KDE and all kinds of stuff, the OpenBSD just has
  a basic X installed with xdm.  I'd like to be able to use the OpenBSD
  box as a display for the FreeBSD box.  I thought I'd just be able to ssh
  into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
  no dice.  Can someone help me out?
 
  Thanks,
  --Brian
 
 
  To Unsubscribe: send mail to [EMAIL PROTECTED]
  with unsubscribe freebsd-questions in the body of the message

 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Remote X from another BSD Box

2003-03-19 Thread Tim Peters
On Wed, Mar 19, 2003 at 10:06:45PM -0500, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to work
 from Xmanager for Windows...but I'm having difficulties.  I have 2
 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a full
 blown install of X with KDE and all kinds of stuff, the OpenBSD just has
 a basic X installed with xdm.  I'd like to be able to use the OpenBSD
 box as a display for the FreeBSD box.  I thought I'd just be able to ssh
 into the FreeBSD box and run xmms, xcalc, xterm, whatever I wanted...but
 no dice.  Can someone help me out?

Connect with something like:

openbsd.box% ssh -X [EMAIL PROTECTED]

Then just start your favourite X applications, and they will display
on the OpenBSD machine like you want.  If that doesn't work, add
'-v' to the ssh options to see what goes wrong.

HTH,

-tim

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


RE: Remote X from another BSD Box

2003-03-19 Thread Brian McCann
Thanks guys, -X worked great!  KDE on my Sun box now. :)  Now all I need
is a non-optical Sun mouse, and to try NetBSD so I can use SMP. :)

--Brian

-Original Message-
From: Tim Peters [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 19, 2003 10:40 PM
To: Brian McCann
Cc: [EMAIL PROTECTED]
Subject: Re: Remote X from another BSD Box


On Wed, Mar 19, 2003 at 10:06:45PM -0500, Brian McCann wrote:
 Hi all.  I'd imagine this would be fairly simple since I got it to 
 work from Xmanager for Windows...but I'm having difficulties.  I have 
 2 boxes, both BSD (one FreeBSD, one OpenBSD).  The FreeBSD box has a 
 full blown install of X with KDE and all kinds of stuff, the OpenBSD 
 just has a basic X installed with xdm.  I'd like to be able to use the

 OpenBSD box as a display for the FreeBSD box.  I thought I'd just be 
 able to ssh into the FreeBSD box and run xmms, xcalc, xterm, whatever 
 I wanted...but no dice.  Can someone help me out?

Connect with something like:

openbsd.box% ssh -X [EMAIL PROTECTED]

Then just start your favourite X applications, and they will display on
the OpenBSD machine like you want.  If that doesn't work, add '-v' to
the ssh options to see what goes wrong.

HTH,

-tim


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message