Access new window with same ssh session or terminal session sharing
Here it is another interesting article about the OpenSource tool for Terminal Session Sharing in multiple screens. In this article, i am going to explain you about the Byobu tool which allows you to share the Terminal session in multiple screens. Check out the below steps for installation and configuration about Byobu on Linux Operating System.
Byobu is a light, powerful, text-based window manager based on GNU Screen. Byobu’s default configuration options will let you share your screen directly after install. Once you have installed byobu,
you can create a session instantly by typing byobu. Using byobu, you can quickly create and move between different windows over a single SSH connection or TTY terminal. This means that it makes it easy for you to open multiple windows and run multiple commands within a single terminal connection.
Byobu is very useful for sharing your live terminal to any other; it is also very helpful to teaching & learning on use live session.
In this notes, we will be cover how to configure byobu, how to use byobu, and some most common features.
# yum install epel-release -y
# yum install byobu –y
Now that byobu is installed, we can configure some options.
Starting byobu on login
Note- Byobu is disabled by default after installation.
There are two main ways you can enable byobu:
You can manually start it with the byobu command every time you want to use it, You can set it to start automatically when you log in to your account.
First, we use the manually start the byobu
Run Byobu Command Both Terminal
Now you can run any command in terminal-1, then automatically show the terminal-2 session.
The second start automatically
To add byobu to your login profile, run the following command. This means that every time you log in to your account, it will be launched.
The Byobu window manager will be launched automatically at each text login.
To disable this behavior later, just run:
Press <enter> to continue...
Now byobu is enabled in your profile…
If your mind is changed and you want to disable byobu on login, then run below command
Byobu has many additional features that can be accessed via keyboard shortcuts.
1- Create a new terminal session inside Byobu: f2
2- Switch between terminal sessions inside Byobu: f4
3- Detach from Byobu session and log out: f6
4- Split the Byobu screen vertically: control + f2
5- Split the Byobu screen horizontally: shift + f2
6- Launch the Byobu configuration menu: f9