Re: remote x-window

2006-02-06 Thread Beech Rintoul
On Sunday 05 February 2006 19:31, Greg 'groggy' Lehey wrote:
 On Friday,  3 February 2006 at  8:58:08 +, Michael Fleming wrote:
  On Thu, Feb 02, 2006 at 09:48:56PM -0900, Beech Rintoul wrote:
  I have sort of a newbie question. How do I connect to a remote
  machine with x-windows and get a desktop? Could someone point me in
  the right direction as I've never had a need to to do it before. I
  do have ssh to the machine.
 
  You'll have to export $DISPLAY=x.x.x.x:0.0 so that the display on the
  remote machine is displayed on the local.

 Specifically, the DISPLAY environment variable states the name of the
 remote host, the server number and the screen number.  Normally you
 only have one server, which is then 0.  It's quite common to have more
 than one screen: I'm writing this on echunga.lemis.com:0.0, but there
 are two further screens called echunga.lemis.com:0.1 and
 echunga.lemis.com:0.2.  See http://www.lemis.com/grog/hardware.html
 for an example.

  You'll also have to forward X11 packets, check your ssh_conf so that
  forward X11 yes.

 This is for tunnelling over ssh.  I wouldn't recommend that in a local
 context.

  I use cygwin on my work laptop ( XP ) and a openvpn connection to my
  BSD machine then fire up the display on the XP machine.

 It's possible that you'd need it here, but between BSD machines it's
 just overhead.

 One thing that you don't mention is whether the server will listen on
 TCP.  This used to be the default, but it isn't any more.  If you're
 using startx, you'll have to remove the 'nolisten-tcp' option.  See
 http://www.lemis.com/grog/desktop.html.

 If you're using KDE or GNOME, you'll probably have to do something
 similar.  I don't know the details, though.

 Greg

Thank you much for your response, you have clarified a couple of points I 
wasn't sure about. In the short run I went with running a vnc server on the 
box which is supported by KDE. However, I need to learn all of this as I have 
need for it from time to time. Looks like I have a bit homework to do.

Thanks again,

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgpcUGLK7Jp6U.pgp
Description: PGP signature


Re: remote x-window

2006-02-05 Thread Greg 'groggy' Lehey
On Friday,  3 February 2006 at  8:58:08 +, Michael Fleming wrote:
 On Thu, Feb 02, 2006 at 09:48:56PM -0900, Beech Rintoul wrote:
 I have sort of a newbie question. How do I connect to a remote
 machine with x-windows and get a desktop? Could someone point me in
 the right direction as I've never had a need to to do it before. I
 do have ssh to the machine.

 You'll have to export $DISPLAY=x.x.x.x:0.0 so that the display on the
 remote machine is displayed on the local.

Specifically, the DISPLAY environment variable states the name of the
remote host, the server number and the screen number.  Normally you
only have one server, which is then 0.  It's quite common to have more
than one screen: I'm writing this on echunga.lemis.com:0.0, but there
are two further screens called echunga.lemis.com:0.1 and
echunga.lemis.com:0.2.  See http://www.lemis.com/grog/hardware.html
for an example.

 You'll also have to forward X11 packets, check your ssh_conf so that
 forward X11 yes.

This is for tunnelling over ssh.  I wouldn't recommend that in a local
context.

 I use cygwin on my work laptop ( XP ) and a openvpn connection to my
 BSD machine then fire up the display on the XP machine.

It's possible that you'd need it here, but between BSD machines it's
just overhead.

One thing that you don't mention is whether the server will listen on
TCP.  This used to be the default, but it isn't any more.  If you're
using startx, you'll have to remove the 'nolisten-tcp' option.  See
http://www.lemis.com/grog/desktop.html.

If you're using KDE or GNOME, you'll probably have to do something
similar.  I don't know the details, though.

Greg
--
See complete headers for address and phone numbers.


pgpYKbWB8fWbS.pgp
Description: PGP signature


Re: remote x-window

2006-02-03 Thread Michael Fleming
On Thu, Feb 02, 2006 at 09:48:56PM -0900, Beech Rintoul wrote:
 I have sort of a newbie question. How do I connect to a remote machine with 
 x-windows and get a desktop? Could someone point me in the right direction as 
 I've never had a need to to do it before. I do have ssh to the machine.
 
 Beech
 -- 
 
You'll have to export $DISPLAY=x.x.x.x:0.0 so that the display on the
remote machine is displayed on the local. You'll also have to forward
X11 packets, check your ssh_conf so that forward X11 yes.
I use cygwin on my work laptop ( XP ) and a openvpn connection to my BSD
machine then fire up the display on the XP machine.
I did use just ssh and allowed only ssh from the outside to the BSD
machine, but found that someone was trying to brute force the username
and password so set up the openvpn. I feel a lot more comfortable with
that, even though it's just my own private network.
There's plenty of info on google to point you in the right direction.

Mike
 
 
 
 
 
 
 
 
 



-- 
Michael Fleming*
[EMAIL PROTECTED]
  Free-BSD
GnuPG Key Id 933B27E7 http://pgp.mit.edu/


pgpCTaOKEJrsJ.pgp
Description: PGP signature


Re: remote x-window

2006-02-03 Thread Garrett Cooper


On Feb 2, 2006, at 10:48 PM, Beech Rintoul wrote:

I have sort of a newbie question. How do I connect to a remote  
machine with
x-windows and get a desktop? Could someone point me in the right  
direction as
I've never had a need to to do it before. I do have ssh to the  
machine.


Beech
--

-- 
-

Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
-- 
-


For strictly a X11 forwarded solution, do something like the following:

[EMAIL PROTECTED] $ ssh -CY [EMAIL PROTECTED]
[EMAIL PROTECTED] $ twm # or xfwm4 or something else like that.

	For a VNC solution, I suggest using x11vnc. By using SSH forwarding  
and compression you can easily attach to a preexisting desktop session.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: remote x-window

2006-02-03 Thread Beech Rintoul
On Friday 03 February 2006 00:23, Garrett Cooper wrote:
 On Feb 2, 2006, at 10:48 PM, Beech Rintoul wrote:
  I have sort of a newbie question. How do I connect to a remote
  machine with
  x-windows and get a desktop? Could someone point me in the right
  direction as
  I've never had a need to to do it before. I do have ssh to the
  machine.
 
  Beech


   For strictly a X11 forwarded solution, do something like the following:

 [EMAIL PROTECTED] $ ssh -CY [EMAIL PROTECTED]
 [EMAIL PROTECTED] $ twm # or xfwm4 or something else like that.

   For a VNC solution, I suggest using x11vnc. By using SSH forwarding
 and compression you can easily attach to a preexisting desktop session.
 -Garrett

Thanks for the pointers.  I googled for vnc and it doesn't look very hard to 
configure. Plus, KDE supports it. Think I'll go with that.

Beech

-- 

---
Beech Rintoul - Sys. Administrator - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | Alaska Paradise Travel
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---













pgp4lZJIf0PM8.pgp
Description: PGP signature


Re: remote x-window

2006-02-03 Thread Frank Staals

Michael Fleming wrote:


On Thu, Feb 02, 2006 at 09:48:56PM -0900, Beech Rintoul wrote:
 

I have sort of a newbie question. How do I connect to a remote machine with 
x-windows and get a desktop? Could someone point me in the right direction as 
I've never had a need to to do it before. I do have ssh to the machine.


Beech
--

   


You'll have to export $DISPLAY=x.x.x.x:0.0 so that the display on the
remote machine is displayed on the local. You'll also have to forward
X11 packets, check your ssh_conf so that forward X11 yes.
I use cygwin on my work laptop ( XP ) and a openvpn connection to my BSD
machine then fire up the display on the XP machine.
I did use just ssh and allowed only ssh from the outside to the BSD
machine, but found that someone was trying to brute force the username
and password so set up the openvpn. I feel a lot more comfortable with
that, even though it's just my own private network.
There's plenty of info on google to point you in the right direction.
 

I also noticed a lot of brute force username and password attempts, an 
easier solution is to just change the default SSH-port ( 
/etc/ssh/sshd_conf ) as I did



Mike
 



   





 




--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]