How do you prevent byobu from attaching to first screen listed?

Asked by radioflyer on 2011-01-08

I run rtorrent in a screen and have byobu setup to start with an ssh session. Whenever I start an ssh session (or run byobu for that fact) it simply attaches to the first screen that's listed by "screen -ls" which just happens to be my rtorrent screen and never displays the byobu screen. If I create another screen (i.e. "screen -S test") and try ssh again it'll attach to that one rather than the rtorrent screen.

There are two things I'd like to be able to do:
1) Tell byobu to attach to a specific screen name/pid
2) Prevent byobu from telling ssh-agent to attach to first available screen

How can this be done, if possible?

Question information

Language:
English Edit question
Status:
Solved
For:
byobu Edit question
Assignee:
No assignee Edit question
Solved by:
Dustin Kirkland 
Solved:
2011-01-08
Last query:
2011-01-08
Last reply:
2011-01-08
Best Dustin Kirkland  (kirkland) said : #1

What version of byobu are you running? byobu -v will tell you.

In modern byobu versions, it should prompt you with a list of sessions
(if there are more than one), and you'll select from one of those.

You can update to the latest version of byobu easily from the PPA,
ppa:byobu/ppa.

Dustin

radioflyer (aakriz+launchpad) said : #2

Sure enough, I had 2.74, just upgraded to 3.21 after adding the apt source. It did the trick, thanks!

radioflyer (aakriz+launchpad) said : #3

Thanks Dustin Kirkland, that solved my question.