From owner-freebsd-questions Mon Jul 10 10: 3:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id 5D88B37B665 for ; Mon, 10 Jul 2000 10:03:11 -0700 (PDT) (envelope-from mark@ukug.uk.freebsd.org) Received: from parish.my.domain ([62.253.89.70]) by mta02-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000710180230.JNYT3760.mta02-svc.ntlworld.com@parish.my.domain>; Mon, 10 Jul 2000 18:02:30 +0000 Received: (from mark@localhost) by parish.my.domain (8.9.3/8.9.3) id SAA01545; Mon, 10 Jul 2000 18:03:04 +0100 (BST) (envelope-from mark) Date: Mon, 10 Jul 2000 18:03:03 +0100 From: Mark Ovens To: Doug Barton Cc: Paul Herman , cjclark@alum.mit.edu, questions@freebsd.org Subject: Re: Question about the use of ssh-agent(1) Message-ID: <20000710180303.B237@parish> References: <3969169E.10DB028@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3969169E.10DB028@gorean.org>; from DougB@gorean.org on Sun, Jul 09, 2000 at 05:19:42PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jul 09, 2000 at 05:19:42PM -0700, Doug Barton wrote: > Paul Herman wrote: > > > > On Sun, 9 Jul 2000, Crist J. Clark wrote: > > > > > xterm xterm -n "$USER@$HOST" & > > > > > > And I do not want to use the alias. > > > > > > This is actually one of those things I have always meant to ask > > > about. Is there a better way to do that? Setting 'XTerm.title: > > > $USER@$HOST' in .Xresources would not have the desired effect for > > > several reasons. > > > > in .bashrc / .bash_login depending on your xterms, something like: > > > > xtitle () { echo -n -e "\033]0;$*\007"; } > > if [ "x$TERM" = xxterm ] > > then xtitle $USER@$HOST > > fi > > I'm a little confused about exactly what the original poster > is trying to accomplish. Neither was I (the original poster) when I asked (that was why I asked). I didn't fully understand from the manpages whether starting a single instance of ssh-agent would cover all logins (i.e. if I start it on ttyv0 would it be usable if I then logged in on ttyv1 and/or started X). The replies I got made it obvious that the best solution is, as you yourself do, start X as a child of ssh-agent and forget about ttyv*. > If you are trying to use ssh-agent in X, > your best bet is to start your window manager as the child of > ssh-agent. For example, the last line of my .xinitrc file is: > > exec ssh-agent gnome-session > > (Yes, I've gone over to the dark side.) That way all windows that are > started by your window manager will inherit ssh-agent. > > As for the bash prompt issue, take a look at > http://freebsd.simplenet.com/Bash-prompts.txt > > Enjoy, > > Doug > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- If I buy a copy of WinDelete, and it doesn't delete Windows, am I entitled to my money back? ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message