From owner-freebsd-questions Mon Jan 27 6:10: 0 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C14937B401 for ; Mon, 27 Jan 2003 06:09:59 -0800 (PST) Received: from www.clubplus.net (ns1.clubplus.net [216.191.22.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6551E43F43 for ; Mon, 27 Jan 2003 06:09:57 -0800 (PST) (envelope-from david@skytrackercanada.com) Received: from skytrackercanada.com (cust29.209.188.66.dsl.accessv.com [209.188.66.29]) by www.clubplus.net (8.11.4/8.11.1) with ESMTP id h0R6Uac04975 for ; Mon, 27 Jan 2003 01:30:36 -0500 X-RAV-AntiVirus: This e-mail has been scanned for viruses on host: www.clubplus.net Received: (from david@localhost) by skytrackercanada.com (8.12.6/8.12.6) id h0R6QILY031442 for questions@FreeBSD.ORG; Mon, 27 Jan 2003 01:26:18 -0500 (EST) (envelope-from david) Date: Mon, 27 Jan 2003 01:26:17 -0500 From: David Banning To: questions@freebsd.org Subject: Re: xhost command problem Message-ID: <20030127012617.A31431@skytrackercanada.com> References: <20030125130545.A19012@skytrackercanada.com> <20030125191651.GC2440@sub21-156.member.dsl-only.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030125191651.GC2440@sub21-156.member.dsl-only.net>; from nkinkade@dsl-only.net on Sat, Jan 25, 2003 at 11:16:52AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jan 25, 2003 at 11:16:52AM -0800, Nathan Kinkade wrote: > On Sat, Jan 25, 2003 at 01:05:45PM -0500, David Banning wrote: > > > > I am trying to run an xterm remotely (over the web). > > > > I understand the IP address must be entered using the xhost command. > > > > My problem is that the xhost command wants X running on the main terminal, > > but main terminal is using an ascii screen only. > > The xhost command gives an error stating that the command > > must be run from X on the main terminal. > > > > Is there another way I can maybe bypass the xhost command and > > register the IP address in the same place that xhost does? > > What is the exact error you are getting? If you are working from a > console, make sure that your DISPLAY environment variable is set, and > that you export it. > > Assuming X is running on display 0 try (and that you are using bash): > # export DISPLAY=:0 > # xhost +the.ip.address.or.hostname The exact error is; _X11TransSocketUNIXConnect: Can't connect: errno = 2 which is the same error you get if you try and fire up X and the DISPLAY variable is wrong or X is configured wrong. My DISPLAY=:0.0 I also tried DISPLAY=:0 It is trying to fire up X I guess, but as I mentioned, I don't have graphics running on my main box. The main box -is- hosting X for windows desktops on the local network which use x-win32, so it -should- be feasable to do what I want over the internet if it is aleady working over the local network. It seems to be just a permission thing that I have to overcome. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message