screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen Start Script


From: Michael Parson
Subject: Re: Screen Start Script
Date: Sun, 9 Jul 2006 16:02:58 -0500
User-agent: Mutt/1.4.2.1i

On Sun, Jul 09, 2006 at 01:10:34PM -0700, Danny wrote:
> 
> I have yet to find an example online that actually shows how to start
> screen windows in a straight forward way.  Actually, I have not been
> able to find any sort of straight forward way.  But I thought I would
> post my solution to my problem and ask for advice on better ways to do
> this.

<snip>

Basically, you want screen and ssh-agent to work together nicely?

Once your agent is running, however you start it (I prefer to have
ssh-agent be the parent process of my window manager, but practices
vary).

$ eval `ssh-agent`    # give your shell the VARS it needs
$ ssh-add             # add the keys to the agent
$ screen

Have all your other screen-related setup in your ~/.screenrc, else
specify it with -c screen-commands.rc, but .screenrc is read by default.

Now, even if you detach from that session and attach from elsewhere,
screen will still have the agent info it needs.

When your session 'locks up' have you tried sending an ':xon' to unlock
it?  I try and create my screens with '-fn' to turn off xon/xoff flow
control, since I rarely need it these days.  But if a screen gets
created w/o it, an (even accidental) ^S will lock up that screen.
"^A:xon" will unlock it.

Sometimes I have to detach and re-attach to get it back.  Rarely do I
have to all-out kill screen and start over fresh.

-- 
Michael Parson
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]