From owner-freebsd-questions@FreeBSD.ORG Thu Jan 10 13:00:38 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 B6C1016A417 for ; Thu, 10 Jan 2008 13:00:38 +0000 (UTC) (envelope-from freebsd08@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 5B84113C458 for ; Thu, 10 Jan 2008 13:00:38 +0000 (UTC) (envelope-from freebsd08@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.82]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id m0AD0aF7053330 for ; Thu, 10 Jan 2008 07:00:36 -0600 (CST) (envelope-from freebsd08@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Thu, 10 Jan 2008 07:00:35 -0600 User-Agent: KMail/1.9.7 References: <953371.88436.qm@web57006.mail.re3.yahoo.com> In-Reply-To: <953371.88436.qm@web57006.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801100700.35961.freebsd08@dfwlp.com> X-Spam-Status: No, score=-4.0 required=3.6 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on pollux.dfwlp.com 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 13:00:38 -0000 On Thursday 10 January 2008 06:52:38 am Unga wrote: > Hi all > > I want to run ddd debugger under root. > > 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 > > What else I should do in FreeBSD? I'm running > 7.0-PRERELEASE on i386 with KDE 3.5.8. > > Appreciate very much a reply. > > Best Regards > Unga im not sure if its the best or correct way, but i was able to run an app (not ddd, i dont have that on my system) as root by doing this: (as my user) xhost + (then su - up to root) xcalc -display :0 nothing else to it. also, you might take a look at the man for xhost to see how to narrow down the access, because the '+' only gives you a nice little "you are now wide open for connections" message. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org freebsd08 _@_ dfwlp.com