Launch Byobu Automatically on Vagrant SSH
I can use SSH directly instead of Vagrant SSH command for interactive programs such as top
or running tmux
sessions. But I frequently just want to run Tmux or Byobu upon login. I can do:
|
|
But still too much trouble to go through all SSH configuration steps. So, I ended up with two-step process:
|
|
Now inside the guest machine, I immediately type:
|
|
To bring up new Tmux session or attach existing sessions.
Luckily, I just learned that I can collapse these two commands into a single one by enabling Byobu upon login. This is done by running the following command from the guest machine:
|
|
This will add a line to your $HOME/.profile
file which launches Byobu any time you login via SSH or a console:
|
|
If you need to run something other interactive process, we can disable the behavior from the guest machine:
|
|
Another day another quick time saving trick.