Did you know that you can have split screen on your terminal/console/command line? In this article i will show you how to split screen your terminal/console on lubuntu.
There are two ways if you want to have split screen on terminal/console, the first is using tmux which i already wrote an article about it, and the second is using terminator which i will explain here.
So basically, we need to install program either tmux or terminator in order to have split screen on the terminal/console, but for this tutorial we are going to use terminator.
How to install terminator
How to install terminator
To install terminator on lubuntu, simply open your terminal/console/command line (press CTRL + ALT + T) and then run this command:
sudo apt-get install terminator
kernelpanic@kernelpanic:~$ sudo apt-get install terminator
[sudo] password for kernelpanic:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic linux-headers-4.2.0-23
linux-headers-4.2.0-23-generic linux-image-4.2.0-16-generic
linux-image-4.2.0-23-generic linux-image-extra-4.2.0-16-generic
linux-image-extra-4.2.0-23-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0
libbonoboui2-common libgail18 libgnome2-0 libgnome2-bin libgnome2-common
libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
libidl0 liborbit-2-0 liborbit2 python-gconf python-gnome2 python-gobject
python-gobject-2 python-gtk2 python-keybinder python-notify python-pyorbit
python-vte
Suggested packages:
libbonobo2-bin desktop-base python-gnome2-doc python-gobject-2-dbg
python-gtk2-doc python-pyorbit-dbg
The following NEW packages will be installed:
libart-2.0-2 libbonobo2-0 libbonobo2-common libbonoboui2-0
libbonoboui2-common libgail18 libgnome2-0 libgnome2-bin libgnome2-common
libgnomecanvas2-0 libgnomecanvas2-common libgnomeui-0 libgnomeui-common
libidl0 liborbit-2-0 liborbit2 python-gconf python-gnome2 python-gobject
python-gobject-2 python-gtk2 python-keybinder python-notify python-pyorbit
python-vte terminator
0 upgraded, 26 newly installed, 0 to remove and 16 not upgraded.
Need to get 2.407 kB of archives.
After this operation, 15,5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu/ wily/main libart-2.0-2 amd64 2.3.21-2 [56,9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ wily/main libbonobo2-common all 2.32.1-3 [34,7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ wily/main liborbit-2-0 amd64 1:2.14.19-1 [141 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ wily/main libbonobo2-0 amd64 2.32.1-3 [211 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnome2-common all 2.32.1-4ubuntu1 [33,3 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnome2-bin amd64 2.32.1-4ubuntu1 [15,0 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnome2-0 amd64 2.32.1-4ubuntu1 [43,2 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ wily/main libgail18 amd64 2.24.28-1ubuntu1 [14,2 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnomecanvas2-common all 2.30.3-2 [9.080 B]
Get:10 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnomecanvas2-0 amd64 2.30.3-2 [82,7 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ wily/main libbonoboui2-common all 2.24.5-3ubuntu1 [11,9 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ wily/main libbonoboui2-0 amd64 2.24.5-3ubuntu1 [154 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnomeui-common all 2.24.5-3 [16,5 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ wily/main libgnomeui-0 amd64 2.24.5-3 [203 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ wily/main libidl0 amd64 0.8.14-1 [66,5 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ wily/main liborbit2 amd64 1:2.14.19-1 [14,9 kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ wily/main python-gobject-2 amd64 2.28.6-12build1 [177 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ wily/main python-gconf amd64 2.28.1+dfsg-1.1 [22,3 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ wily/main python-gtk2 amd64 2.24.0-4ubuntu1 [620 kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ wily/main python-pyorbit amd64 2.24.0-7ubuntu1 [57,7 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu/ wily/main python-gnome2 amd64 2.28.1+dfsg-1.1 [139 kB]
Get:22 http://us.archive.ubuntu.com/ubuntu/ wily/main python-gobject all 3.16.2-1build1 [2.596 B]
Get:23 http://us.archive.ubuntu.com/ubuntu/ wily/universe python-keybinder amd64 0.3.0-3build1 [6.856 B]
Get:24 http://us.archive.ubuntu.com/ubuntu/ wily/universe python-notify amd64 0.1.1-4 [15,6 kB]
Get:25 http://us.archive.ubuntu.com/ubuntu/ wily/universe python-vte amd64 1:0.28.2-5ubuntu2 [17,0 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu/ wily/universe terminator all 0.97-4 [240 kB]
Fetched 2.407 kB in 51s (46,8 kB/s)
Selecting previously unselected package libart-2.0-2:amd64.
(Reading database ... 228289 files and directories currently installed.)
Preparing to unpack .../libart-2.0-2_2.3.21-2_amd64.deb ...
Unpacking libart-2.0-2:amd64 (2.3.21-2) ...
Selecting previously unselected package libbonobo2-common.
Preparing to unpack .../libbonobo2-common_2.32.1-3_all.deb ...
Unpacking libbonobo2-common (2.32.1-3) ...
Selecting previously unselected package liborbit-2-0:amd64.
Preparing to unpack .../liborbit-2-0_1%3a2.14.19-1_amd64.deb ...
Unpacking liborbit-2-0:amd64 (1:2.14.19-1) ...
Selecting previously unselected package libbonobo2-0:amd64.
Preparing to unpack .../libbonobo2-0_2.32.1-3_amd64.deb ...
Unpacking libbonobo2-0:amd64 (2.32.1-3) ...
Selecting previously unselected package libgnome2-common.
Preparing to unpack .../libgnome2-common_2.32.1-4ubuntu1_all.deb ...
Unpacking libgnome2-common (2.32.1-4ubuntu1) ...
Selecting previously unselected package libgnome2-bin.
Preparing to unpack .../libgnome2-bin_2.32.1-4ubuntu1_amd64.deb ...
Unpacking libgnome2-bin (2.32.1-4ubuntu1) ...
Selecting previously unselected package libgnome2-0:amd64.
Preparing to unpack .../libgnome2-0_2.32.1-4ubuntu1_amd64.deb ...
Unpacking libgnome2-0:amd64 (2.32.1-4ubuntu1) ...
Selecting previously unselected package libgail18:amd64.
Preparing to unpack .../libgail18_2.24.28-1ubuntu1_amd64.deb ...
Unpacking libgail18:amd64 (2.24.28-1ubuntu1) ...
Selecting previously unselected package libgnomecanvas2-common.
Preparing to unpack .../libgnomecanvas2-common_2.30.3-2_all.deb ...
Unpacking libgnomecanvas2-common (2.30.3-2) ...
Selecting previously unselected package libgnomecanvas2-0:amd64.
Preparing to unpack .../libgnomecanvas2-0_2.30.3-2_amd64.deb ...
Unpacking libgnomecanvas2-0:amd64 (2.30.3-2) ...
Selecting previously unselected package libbonoboui2-common.
Preparing to unpack .../libbonoboui2-common_2.24.5-3ubuntu1_all.deb ...
Unpacking libbonoboui2-common (2.24.5-3ubuntu1) ...
Selecting previously unselected package libbonoboui2-0:amd64.
Preparing to unpack .../libbonoboui2-0_2.24.5-3ubuntu1_amd64.deb ...
Unpacking libbonoboui2-0:amd64 (2.24.5-3ubuntu1) ...
Selecting previously unselected package libgnomeui-common.
Preparing to unpack .../libgnomeui-common_2.24.5-3_all.deb ...
Unpacking libgnomeui-common (2.24.5-3) ...
Selecting previously unselected package libgnomeui-0:amd64.
Preparing to unpack .../libgnomeui-0_2.24.5-3_amd64.deb ...
Unpacking libgnomeui-0:amd64 (2.24.5-3) ...
Selecting previously unselected package libidl0:amd64.
Preparing to unpack .../libidl0_0.8.14-1_amd64.deb ...
Unpacking libidl0:amd64 (0.8.14-1) ...
Selecting previously unselected package liborbit2:amd64.
Preparing to unpack .../liborbit2_1%3a2.14.19-1_amd64.deb ...
Unpacking liborbit2:amd64 (1:2.14.19-1) ...
Selecting previously unselected package python-gobject-2.
Preparing to unpack .../python-gobject-2_2.28.6-12build1_amd64.deb ...
Unpacking python-gobject-2 (2.28.6-12build1) ...
Selecting previously unselected package python-gconf.
Preparing to unpack .../python-gconf_2.28.1+dfsg-1.1_amd64.deb ...
Unpacking python-gconf (2.28.1+dfsg-1.1) ...
Selecting previously unselected package python-gtk2.
Preparing to unpack .../python-gtk2_2.24.0-4ubuntu1_amd64.deb ...
Unpacking python-gtk2 (2.24.0-4ubuntu1) ...
Selecting previously unselected package python-pyorbit.
Preparing to unpack .../python-pyorbit_2.24.0-7ubuntu1_amd64.deb ...
Unpacking python-pyorbit (2.24.0-7ubuntu1) ...
Selecting previously unselected package python-gnome2.
Preparing to unpack .../python-gnome2_2.28.1+dfsg-1.1_amd64.deb ...
Unpacking python-gnome2 (2.28.1+dfsg-1.1) ...
Selecting previously unselected package python-gobject.
Preparing to unpack .../python-gobject_3.16.2-1build1_all.deb ...
Unpacking python-gobject (3.16.2-1build1) ...
Selecting previously unselected package python-keybinder.
Preparing to unpack .../python-keybinder_0.3.0-3build1_amd64.deb ...
Unpacking python-keybinder (0.3.0-3build1) ...
Selecting previously unselected package python-notify.
Preparing to unpack .../python-notify_0.1.1-4_amd64.deb ...
Unpacking python-notify (0.1.1-4) ...
Selecting previously unselected package python-vte.
Preparing to unpack .../python-vte_1%3a0.28.2-5ubuntu2_amd64.deb ...
Unpacking python-vte (1:0.28.2-5ubuntu2) ...
Selecting previously unselected package terminator.
Preparing to unpack .../terminator_0.97-4_all.deb ...
Unpacking terminator (0.97-4) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for gconf2 (3.2.6-3ubuntu5) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up libart-2.0-2:amd64 (2.3.21-2) ...
Setting up libbonobo2-common (2.32.1-3) ...
Setting up liborbit-2-0:amd64 (1:2.14.19-1) ...
Setting up libbonobo2-0:amd64 (2.32.1-3) ...
Setting up libgnome2-common (2.32.1-4ubuntu1) ...
Setting up libgail18:amd64 (2.24.28-1ubuntu1) ...
Setting up libgnomecanvas2-common (2.30.3-2) ...
Setting up libgnomecanvas2-0:amd64 (2.30.3-2) ...
Setting up libbonoboui2-common (2.24.5-3ubuntu1) ...
Setting up libgnomeui-common (2.24.5-3) ...
Setting up libidl0:amd64 (0.8.14-1) ...
Setting up liborbit2:amd64 (1:2.14.19-1) ...
Setting up python-gobject-2 (2.28.6-12build1) ...
Setting up python-gconf (2.28.1+dfsg-1.1) ...
Setting up python-gtk2 (2.24.0-4ubuntu1) ...
Setting up python-pyorbit (2.24.0-7ubuntu1) ...
Setting up python-gobject (3.16.2-1build1) ...
Setting up python-keybinder (0.3.0-3build1) ...
Setting up python-notify (0.1.1-4) ...
Setting up python-vte (1:0.28.2-5ubuntu2) ...
Setting up terminator (0.97-4) ...
update-alternatives: using /usr/bin/terminator to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Setting up libgnome2-bin (2.32.1-4ubuntu1) ...
Setting up libgnome2-0:amd64 (2.32.1-4ubuntu1) ...
Setting up libbonoboui2-0:amd64 (2.24.5-3ubuntu1) ...
Setting up libgnomeui-0:amd64 (2.24.5-3) ...
Setting up python-gnome2 (2.28.1+dfsg-1.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Once installed, you can start using it by typing 'terminator' on the command line/console/terminal
terminator
You can see that now the terminal/console have red label on top area, that means terminator is currently running.
To do the split screen, you can right click your mouse and then select 'Split Horizontally' or 'Split Vertically'.
Let's try 'Split Vertically', here's what it look like:
There you have it, split screen on terminal/console, you can do another split screen inside each screen, you can do multiple split screen basically.
But note that, terminator is actually a GUI program, so when you go full text mode, it won't work, terminator can only run under X environment.
If you want split screen while you are on full command line/ full text mode with no GUI, the best solution is to use tmux.
Tmux is little harder to work with, because you will need to remember all the keyboard shortcut, but once you know how to use it, you will find tmux is very powerful.
How to uninstall terminator
If you don't like terminator and you want to get rid of it, you can uninstall terminator by running this command:
sudo apt-get purge terminator
kernelpanic@kernelpanic:~$ sudo apt-get purge terminator
[sudo] password for kernelpanic:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic linux-headers-4.2.0-23 linux-headers-4.2.0-23-generic linux-image-4.2.0-16-generic
linux-image-4.2.0-23-generic linux-image-extra-4.2.0-16-generic linux-image-extra-4.2.0-23-generic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
terminator*
0 upgraded, 0 newly installed, 1 to remove and 16 not upgraded.
After this operation, 2.098 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 228780 files and directories currently installed.)
Removing terminator (0.97-4) ...
update-alternatives: using /usr/bin/lxterminal to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
~ enjoy ~
No comments:
Post a Comment