byobu + @reboot screen sessions

Asked by Gavin Chappell

I'm currently using byobu on launch on my home Atom system. I want to set up a separate screen session using crontab @reboot for running irssi, but while this works fine and connects me to IRC on reboot, when I try login to the system's CLI, byobu just reconnects me to the screen/IRC session.

Would it be easy/more sensible to make byobu only work with its own named sessions (byobu, byobu_1, byobu_2 etc) so that I can have separate "long-lived" sessions established automatically on a reboot, as opposed to byobu which will only launch the first time I login to the CLI after a reboot. This could also avoid the prompt asking me which screen session I want to connect to when I SSH in with both screen/IRC and byobu running.

Alternatively, can I run byobu on @reboot so that byobu is launched straightaway and make irssi a subwindow of byobu? I'd prefer to keep the separate screen session however as I like to have the CLI and IRC open in separate windows and this wouldn't be possible with IRC running in byobu...

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Todd A. Jacobs (codegnome) said :
#1

You can run unique byobu sessions using the BYOBU_WINDOWS environment variable. For example, to run a dedicated IRC application, you could configure a screenrc file such as ~/.byobu/windows.irc and then run your custom byobu session with:

    BYOBU_WINDOWS=irc byobu

You can then attach/detach from this named session the same way you do with any GNU Screen session, such as "screen -r irc" in this case.

Can you help with this problem?

Provide an answer of your own, or ask Gavin Chappell for more information if necessary.

To post a message you must log in.