From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DMARC_NONE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from kumiko.freeside.com (kumiko.freeside.com [199.33.241.1]) by chiba.3jane.net (Postfix) with ESMTP id E9846ABAF0 for ; Sat, 19 Oct 2002 13:43:18 -0500 (CDT) Received: from txsmtp01.texas.rr.com (smtp1.texas.rr.com [24.93.36.229]) by kumiko.freeside.com (8.11.6/8.11.6) with ESMTP id g9J3sUi67649 for ; Fri, 18 Oct 2002 22:54:30 -0500 (CDT) (envelope-from mbkennedy@austin.rr.com) Received: from gentoo.shacknet.nu (cs6625132-244.austin.rr.com [66.25.132.244]) by txsmtp01.texas.rr.com (8.12.5/8.12.2) with ESMTP id g9J3ovAI019219; Fri, 18 Oct 2002 23:50:57 -0400 (EDT) To: William Kenworthy Cc: John Nilsson , gentoo-dev List Subject: Re: [gentoo-dev] GnomeUI-WARNING References: <1034970614.12974.5.camel@newkid.fam59.net> <1034984740.8784.15.camel@rattus.localdomain> From: Matthew Kennedy Date: 18 Oct 2002 22:52:28 -0500 In-Reply-To: <1034984740.8784.15.camel@rattus.localdomain> Message-ID: <87k7kfhypv.fsf@gentoo.shacknet.nu> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: 79838a6c-fd16-4a72-b183-2fbf48bf645a X-Archives-Hash: 589f809489c514364ca6581380407d47 William Kenworthy writes: > xhost +localhost > su - > export DISPLAY=localhost:0.0 > > Using "su -", requires a display set. Where does one put the xhost and > export in a generic sence? I have a single user machine and often use a > number of x displays - how could I set up to do the above automaticly, > no matter which X dispaly I am on? I'm not a real expert on vim, but perhaps it has a feature where you can edit a file as root from a vim session running as a normal without explicitly su-ing anywhere. Kinda like Emacs's Tramp stuff; /[sm/root@localhost]/etc/make.conf This is much more convenient than switching users/using a local ssh connection etc. or playing with xhost authentication. -- Matthew Kennedy Gentoo Linux Developer