From owner-freebsd-questions@FreeBSD.ORG Fri Apr 7 03:27:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 53FFE16A401 for ; Fri, 7 Apr 2006 03:27:12 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA6F343D46 for ; Fri, 7 Apr 2006 03:27:11 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip01.eastlink.ca ([24.222.10.5]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IXC00KA81KW1X00@mta01.eastlink.ca> for freebsd-questions@freebsd.org; Fri, 07 Apr 2006 00:26:56 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip01.eastlink.ca with ESMTP; Fri, 07 Apr 2006 00:27:11 -0300 Date: Fri, 07 Apr 2006 00:26:06 -0300 From: Duane Whitty In-reply-to: <200604061808.19808.oliver.iberien@charter.net> To: Oliver Iberien Message-id: <4435DBCE.1050805@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <200604061808.19808.oliver.iberien@charter.net> User-Agent: Thunderbird 1.5 (X11/20060309) Cc: freebsd-questions@freebsd.org Subject: Re: Running an X application as root? (getting printer set in openoffice) 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: Fri, 07 Apr 2006 03:27:12 -0000 Oliver Iberien wrote: > In order to set the printer setting for openoffice.org-2.0.2 I have to, as far > as I know, run the program /usr/local/openoffice.org-2.0.2/program/spadmin as > root. (The default settings are for lp and I am using cups.) It's a series of > dialogs in windows and so I've tried to set the display. I get a "no protocol > specified" error. > > bsd# setenv DISPLAY ":0.0" > bsd# /usr/local/openoffice.org-2.0.2/program/spadmin > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > I18N: Operating system doesn't support locale "en_US" > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > /usr/local/openoffice.org-2.0.2/program/spadmin.bin X11 error: Can't open > display: :0.0 > Set DISPLAY environment variable, use -display option > or check permissions of your X-Server > (See "man X" resp. "man xhost" for details) > > I looked at the xhost page and tried: > > bsd# xhost +root > Xlib: connection to ":0.0" refused by server > Xlib: No protocol specified > > The same thing happened with xhost +. What am I missing? > > Oliver > > PS Using sudo does not work as for some reason when I try to run spadmin with > sudo, spadmin can't find libraries it needs that are in its own folder. > su-ing gets the same result as running as root, and deleting > ~/.openoffice.org-2.0.2 and running spadmin as a normal user changes > nothing -- apparently nothing printer-related is in there. > _______________________________________________ > When you built OOo did you use the -DWITH_CUPS option? -- Duane Whitty