From owner-freebsd-questions@FreeBSD.ORG Fri Nov 30 12:50:13 2007 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 489D816A418 for ; Fri, 30 Nov 2007 12:50:13 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id CAF6713C447 for ; Fri, 30 Nov 2007 12:50:12 +0000 (UTC) (envelope-from michael.grunewald@laposte.net) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id CD0383F61B5; Fri, 30 Nov 2007 13:50:10 +0100 (CET) Received: from Llea.celt.neu (ron34-3-82-236-236-194.fbx.proxad.net [82.236.236.194]) by smtp5-g19.free.fr (Postfix) with ESMTP id 7618D3F61CF; Fri, 30 Nov 2007 13:50:10 +0100 (CET) Received: from Llea.celt.neu (localhost [127.0.0.1]) by Llea.celt.neu (8.14.1/8.13.8) with ESMTP id lAUCtuBC001361; Fri, 30 Nov 2007 13:55:56 +0100 (CET) (envelope-from michael.grunewald@laposte.net) Received: (from michael@localhost) by Llea.celt.neu (8.14.1/8.13.8/Submit) id lAUCttA3001360; Fri, 30 Nov 2007 13:55:55 +0100 (CET) (envelope-from michael.grunewald@laposte.net) X-Authentication-Warning: Llea.celt.neu: michael set sender to michael.grunewald@laposte.net using -f To: "Aryeh M. Friedman" References: <474FD863.2060004@gmail.com> From: michael.grunewald@laposte.net (=?iso-8859-15?Q?Micha=EBl_Gr=FCnewald?=) Date: Fri, 30 Nov 2007 13:55:55 +0100 In-Reply-To: <474FD863.2060004@gmail.com> (Aryeh M. Friedman's message of "Fri\, 30 Nov 2007 04\:31\:15 -0500") Message-ID: <86k5nzgaec.fsf@Llea.celt.neu> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: looking for suggestions: multiple users on the same desktop 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, 30 Nov 2007 12:50:13 -0000 "Aryeh M. Friedman" writes: > I have several "sub" accounts (for specialized purposes not really a > part of an other account) which I do my work basically I have: > > aryeh -- my personal account > web -- maintain my web site > dev -- development/testing of software > dep -- seperation of development and production code > > I almost always login into aryeh (xfce via xdm). Both web and dev > require the use of variuous X applications but I don't want to logout > and login back in and/or have to invoke the app from the cmd line > (i.e. xhost +; setenv DISPLAY :0; app cmd line)... I am looking for a > way to make it so I can launch apps from a desktop panel and/or icon > on the desktop and make it ask what user to run it under (or somehow > or another make it aware that not everything is to be ruin as > "aryeh")... ideas? An easy approach is to use Xnest to open a nested X session as user dev or whatever. You can find examples in ``OnLamp'' columns, if I remember well. Another way is to wrap is to use SSH's X connexion transfert, you can wrap your applications in scripts like this: `ssh -X dev@localhost $PROGRAM' A more complex approach is to design a way to `pass' DISPLAY information and XAUTH(1) information to your alternative accounts. You have to do it yourself (I guess) and still must wrap application into suitable scripts. Hope this helps. --=20 Cheers, Micha=EBl