Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Any idea why the desktop launcher "gnome-terminal -x byobu" doesn't read my ~/.byobu/windows.ssh_sessions?

Here's my ~/.byobu/windows.ssh_sessions file I use with byobu successfully:

screen -t Ubu-MySQL ssh master@192.168.1.3
screen -t Ubu-alfresco ssh master@192.168.1.4
screen -t Ubu-Master ssh master@192.168.1.5
screen -t Ubu-zimbra ssh master@192.168.1.6
screen -t Ubu-SugarCRM ssh master@192.168.1.7
screen -t Ubu-eFront ssh master@192.168.1.8

and here's the variable entry from my .bashrc:

export BYOBU_WINDOWS=/home/jj/.byobu/windows.ssh_sessions byobu

I tried it in .profile also, no love.

Thanks for your time.

share|improve this question
    
Hrm.. Fixed. I ran byobu-launcher and setup some new windows. Then made a .sh script with byobu-launcher in it. chmod 700 (and a she-bang! of course)scr –  Habitual Dec 12 '10 at 3:43
    
"gnome-terminal -x /home/jj/bin/Ubu-Screens.sh" is the launcher property –  Habitual Dec 12 '10 at 3:50
add comment

2 Answers 2

up vote 2 down vote accepted

I believe that you're supposed to start byobu by running byobu-launcher, which handles all the setup details and config files.

Edit: You are setting an environment variable in .bashrc, which means it will only be set in bash. Running byobu directly from gnome-terminal means that bash is not involved. Putting the environment variable in .profile should make it session-wide, but you would have to log out and back in for it to take effect.

share|improve this answer
    
Thanks for the clue, but neither "gnome-terminal -x byobu-launcher" or just "byobu-launcher" from the desktop icon is reading the windows.ssh_sessions file. I even tried "gnome-terminal -x byobu-launcher -c ~/.byobu/windows.ssh_sessions". No love. Thanks. –  Habitual Dec 12 '10 at 3:23
    
Thanks Ryan, +1 for the clue. Exact instructions are at ubuntuforums.org/showthread.php?p=10228516#post10228516 –  Habitual Dec 12 '10 at 4:13
add comment

You're almost there, with the answer nearly in your own question!

All you need is:

export BYOBU_WINDOWS=ssh_sessions byobu
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.