Ubuntu 12.04 how to install and use Byobu

  

In Linux systems, usually use the screen tool to handle the terminal, the screen command is used by many Linux system experts, and the screen enhanced version of byobu? How to use byobu to play terminal? The following small series will install and use byobu for Ubuntu 12.04 to give you a detailed introduction.

Imagine a scenario where you link to a server via Secure Shell (ssh) and work in a remote shell. You need to open another shell window so you can make two shell windows run at the same time. Maybe when you type the command line in the second window, you need the output of the first window. What will you do then? Most people choose to open another SSH link, which is actually a waste and not necessary. The Byobu command allows you to run multiple terminals under one terminal.

Ubuntu 12.04 installation method

The best way to master byobu is to experiment on your own. The command to install byobu under Ubuntu is

sudo apt-get install screen byobu

The installation method using source code is as follows, first download from the official website https://launchpad.net/byobu/+download Package, then manually install:

cd /usr/local/src/

sudo wget https://launchpadlibrarian.net/130760729/byobu_5.33.orig.tar.gz

sudo tar zxvf byobu_5.33.orig.tar.gz

ll

cd byobu_5.33/

. /configure

make && make install

How to use

byobu is actually using screen's powerful configuration features to make a lot of useful configuration items. One of its biggest features is key-binding, which binds new windows, window switches, renames, etc. to F2~F9 keys. In addition, the F12 key can lock the terminal and unlock the password after entering the login password. Another feature is that the bottom of the screen displays a series of information (status) with information such as cpu, memory, time, and so on.

Open a console, type byobu, and type Enter. Your screen will be replaced by a new console and the information panel at the bottom of the screen. As shown below:

Let's get started with this new terminal. Enter the command top and type Enter to get it running. Press the F2 key, then you see a brand new terminal, without any prompt information, you can enter a new command. As shown below:

uptime command input. So what happens to the terminal that runs the top? Of course it is still running. You can press the F3 key to enter the window where the top command is run. You can press the F4 key to return to the window where the uptime is run. When you browse one of the terminals, the other terminals are not affected but run normally, so that multitasking can be achieved.
Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved