remote X display

Jonathon McKitrick jcm at
Sun Apr 4 07:15:26 PDT 2004

On Thu, Jan 22, 2004 at 04:12:17PM +0100, Cordula's Web wrote:
: > I have been looking all over for a concise howto for remote X on FreeBSD.  I
: > see some that involve changing config files in the xdm directory, others use
: > xhost, and another uses xfig, which doesn't exist under FreeBSD AFAICT.
: Use ssh's -X flag:
: somehost> ssh -X user at remotemachine
: remotemachine> echo $DISPLAY
: remotemachine> xclock &
: Don't forget to enable X forwarding in /etc/ssh/sshd_config:
: X11Forwarding yes

I had this working before, but I'm having problems.  My main box is missing
a monitor (on repair).  Would that make a difference? Will X apps run on the
main box without a monitor and forward X to the remote client?

Right now, I get this:
neptune:~> echo $DISPLAY


: > All I want to do is use a laptop in a local network to be an X client
: > connected to a more powerful desktop machine.  I'm not worried about
: > security.
: > 
: > Is xhosts and the DISPLAY variable all I need?  Or do I need to go through
: > all of the xdm configuration hoops?
: ssh X11 forwarding is much more secure than DISPLAY/xhosts/xdm etc...,
: because:
:   1. Your X11 server doesn't have to listen to port 6000
:      (You don't have to add '-listen_tcp' to startx command)
:   2. The communication between server and client is encrypted
: Of course, YMMV.
: > NOTE: Please CC me, as I am not currently subscribed.  Thanks.
: > 
: > jm
: > -- 
: > My other computer is your windows box.
: -- 
: Cordula's Web.

My other computer is your Windows box.

More information about the freebsd-questions mailing list