From owner-freebsd-questions@FreeBSD.ORG Thu Feb 3 22:54:10 2005 Return-Path: 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 284E416A4CE for ; Thu, 3 Feb 2005 22:54:10 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88C5543D2F for ; Thu, 3 Feb 2005 22:53:58 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id j13MrnGf007105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Feb 2005 14:53:49 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id j13Mriw1007103; Thu, 3 Feb 2005 14:53:44 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Thu, 3 Feb 2005 14:53:44 -0800 From: "Loren M. Lang" To: Gert Cuykens Message-ID: <20050203225344.GW8619@alzatex.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C cc: freebsd-questions@freebsd.org Subject: Re: xhost +localhost X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 22:54:10 -0000 On Wed, Feb 02, 2005 at 06:58:33PM +0100, Gert Cuykens wrote: > i want a screensaver but the ....... xscreensaver daemon wont start > complaining about acces controle. I did xhost +localhost but it still > wont start :( Adding localhost will allow all programs running on localhost to connect to the server though TCP to the X server, but local programs usually use something called unix domain sockets to access services locally as it's faster than going through TCP sockets. Unix domain sockets are special files on the harddrive. For display :0, the file is /tmp/.X11-unix/X0. If you set DISPLAY to localhost:0 instead of :0, then whatever programs try to access X will connect to localhost on port 6000 + 0, instead of the X0 file in /tmp/.X11-unix. If you can change the DISPLAY environment variable for xscreensaver then xhost +localhost will work. The better solution would be to make use the .Xauthority file is setup correctly instead of using xhost +localhost. This usually happens automatically, unless your trying to do something very non-standard. Try setting the variable XAUTHORITY to /home/username/.Xauthority. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C