Date: Sun, 10 Nov 2002 17:46:51 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: xhost: unable to open display "" Message-ID: <20021110174651.GA84752@happy-idiot-talk.infracaninophi> In-Reply-To: <20021110140932.I2803-100000@xs1.xs4all.nl> References: <YZLyV3BiWlz9EwGT@caomhin.demon.co.uk> <20021110140932.I2803-100000@xs1.xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 10, 2002 at 04:04:01PM +0100, Henk wrote: > I use ssh to connect to My.FreeBSD.Machine from My.Main.Machine running > FreeBSD and xdm. xwin is running properly on My.Main.Machine. > > When trying to run mozilla on My.FreeBSD.Machine I get the error: > Gtk-WARNING **: cannot open display: "" > When running xhost I get the following error: > xhost: unable to open display "" > > I do not export $DISPLAY=My.FreeBSD.Machine:0.0 > It's supposed automatically set to My.FreeBSD.Machine:X+1.0 when I log in > with ssh. On the server (sshd) side, you need "X11Forwarding yes" in /etc/ssh/sshd_config (which is the default, so you can just leave the X11Forarding line commented out). You'll also need xauth available --- it's part of the XFree86-clients port, which is slightly unfortunate as practically everything else you need comes out of the XFree86-libraries port. On the client side, either in /etc/ssh/ssh_config or in ~/.ssh/config you need "ForwardX11 yes" in a host section matching the server. Or you can just use the '-X' flag to ssh(1) or slogin(1) on the command line. The DISPLAY variable you'll see automatically set up on the server will be something like localhost:10.0 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021110174651.GA84752>