From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 15:41:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91E2B16A417 for ; Thu, 10 Jan 2008 15:41:51 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.240]) by mx1.freebsd.org (Postfix) with ESMTP id 4D44A13C458 for ; Thu, 10 Jan 2008 15:41:51 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so773093hsh.11 for ; Thu, 10 Jan 2008 07:41:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=DdL35ejOJPNqz7/S49ZlZZiRv9g33adm+flRG1WO4Ec=; b=Dnql4I8H7IbCNLPhaOn+v2kaMWn0+FwAHxFiixSQN84PTBExMOw6SggLVSYS32qFHEL1R/AaCEvJlsFiY1HrLFtmvw1gZUm6N8fVHE8CuX2XBnad4o8GmGUCiqXTr8LPE0W3vjLuUDeobRGa0U8LRohOg6mB9Wj2yLHtRsjyikA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RL00Nlh47iu77Neryjn7LKbfKl66oSAEy0ASjzHRPtMqNoKBRzOdn4FOclpp3WAMZ+nkcJvuaTWaHYQTfgkuJwvZrdYk97xvqcDIo/k4r4GlS+Z4B5ds9mPaltJvJ/+5lAF+7QSWSUziMfF36OuLP8zolrCrYDjtqQlqKtd7sFA= Received: by 10.114.13.1 with SMTP id 1mr2397129wam.74.1199979709071; Thu, 10 Jan 2008 07:41:49 -0800 (PST) Received: by 10.114.240.16 with HTTP; Thu, 10 Jan 2008 07:41:49 -0800 (PST) Message-ID: <80f4f2b20801100741m1d5aec14p6801f68742d49843@mail.gmail.com> Date: Thu, 10 Jan 2008 10:41:49 -0500 From: "Jim Stapleton" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: RE: How to run GUI under root in FreeBSD? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 15:41:51 -0000 I would suggest using > I ran following before become root: > xhost localhost > > Under root: > echo $DISPLAY > :0.0 > > When I run ddd: > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > Error: Can't open display: :0.0 why not sudo ddd instead? That should work just as well if there isn't a lot of cli redirecting that needs raised privs (I'm afraid I'm not familiar with ddd enough to know if it does or not). It could be tedious, but you could always make this script: xddd.sh: ======================================== #!/bin/sh sudo ddd $* ========================================