{"id":12165,"date":"2021-11-18T06:12:28","date_gmt":"2021-11-18T06:12:28","guid":{"rendered":"https:\/\/linuxways.net\/?p=12165"},"modified":"2024-03-25T02:10:30","modified_gmt":"2024-03-25T02:10:30","slug":"terminalizer-tool-to-record-terminal-sessions-create-animated-gif-on-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/terminalizer-tool-to-record-terminal-sessions-create-animated-gif-on-linux\/","title":{"rendered":"Terminalizer &#8211; Tool to record terminal sessions, create animated gif on Linux"},"content":{"rendered":"<p>Terminalizer is one of the highly customizable CLI tool. It is an open source and cross platform tool. It is widely used because of its customization feature that records the terminal session task and used to make animated GIF images too. It has many other features such as changing background fonts, title, color, editing frames, adding watermarks and many more.<\/p>\n<p>In this article, we are going to install Terminalizer on Ubuntu 20.04 LTS. Steps involved for the installation are discussed below.<\/p>\n<h2><a id=\"post-12165-_wboplmbjx44m\"><\/a>Installation of Node.js and npm<\/h2>\n<p>To install terminalizer, first install Node.js by following the below command:<\/p>\n<p>Lets update the system first with command:<\/p>\n<pre>\r\n$ sudo apt update\r\n<\/pre>\n<p>Then install the node.js from the ubuntu repositories with the below command:<\/p>\n<pre>\r\n$ sudo apt install nodejs -y\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"308\" class=\"wp-image-12168\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-333.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-333.png 715w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-333-300x129.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/strong><\/p>\n<p>To verify the installation of Node.js, run the command as below:<\/p>\n<pre>\r\n$ nodejs --version\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"61\" class=\"wp-image-12169\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-334.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-334.png 649w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-334-300x28.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/p>\n<p>Now, install npm that is the package manager for Node.js<\/p>\n<pre>\r\n$ sudo apt install npm\r\n<\/pre>\n<p>To verify the installation of node.js, run the command as below:<\/p>\n<pre>\r\n$ npm --version\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"68\" class=\"wp-image-12172\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-336.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-336.png 641w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-336-300x32.png 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/p>\n<h2><a id=\"post-12165-_6qx09qwein7l\"><\/a>Installation of terminalizer<\/h2>\n<p>To install the terminalizer, run the following command:<\/p>\n<pre>\r\n$ sudo npm install -g terminalizer\r\n<\/pre>\n<p>In the higher version of Node.js, there might be a failure of installation. In such a case, let&#8217;s install the developer tools to compile the C++ add-ons.<\/p>\n<pre>\r\n$ sudo apt install build-essential\r\n<\/pre>\n<p>To verify the installation of development tools, run the following command:<\/p>\n<pre>\r\n$ gcc -v\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"415\" class=\"wp-image-12173\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-338.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-338.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-338-300x174.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<pre>\r\n$ make -v\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"129\" class=\"wp-image-12174\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-340.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-340.png 713w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-340-300x54.png 300w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/p>\n<h3><\/h3>\n<h2><a id=\"post-12165-_daplanvj175o\"><\/a>Using the terminalizer<\/h2>\n<p>To use terminalizer, First run the test file in the current directory with the following command:<\/p>\n<pre>\r\n$ terminalizer record test\r\n<\/pre>\n<p><strong>Output<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"539\" height=\"58\" class=\"wp-image-12176\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-341.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-341.png 539w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-341-300x32.png 300w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/p>\n<p>After executing the command, you will see the output as shown in the above screenshot. You can run some commands then press ctrl+D to save the recording as a YAML file. Here, it is recorded as test.yml.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"293\" height=\"37\" class=\"wp-image-12179\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-342.png\" \/><\/p>\n<p>Now, you can play the recording by running the below command that shows all the history of the command running on that session.<\/p>\n<pre>\r\n$ terminalizer play test\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"414\" class=\"wp-image-12180\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image.gif\" \/><\/strong><\/p>\n<h2><a id=\"post-12165-_9dx8dsm135f8\"><\/a>Creating animated Gif<\/h2>\n<p>You can create a animated Gif of the terminal session with the following command:<\/p>\n<p>Here, we are trying to create a animated Gif for our terminal session with file name test.yml<\/p>\n<pre>\r\n$ sudo terminalizer render test\r\n<\/pre>\n<p><strong>Output<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"414\" class=\"wp-image-12182\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-1.gif\" \/><\/p>\n<p>Animated Gif image that is created with the above command can be found on this location.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"717\" height=\"85\" class=\"wp-image-12183\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-345.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-345.png 717w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-345-300x36.png 300w\" sizes=\"auto, (max-width: 717px) 100vw, 717px\" \/><\/p>\n<p>You will get the animated gif with the program default settings for our terminal session of the test file.<\/p>\n<h2><a id=\"post-12165-_n51wwmnufpbr\"><\/a>Conclusion<\/h2>\n<p>In this article, we learn to install and use the terminalizer which helps to record the terminal session and create an animated Gif. Thank you!<\/p>","protected":false},"excerpt":{"rendered":"<p>Terminalizer is one of the highly customizable CLI tool. It is an open source and cross platform tool. It is widely used because of its customization feature that&hellip;<\/p>","protected":false},"author":110,"featured_media":12177,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5,2],"tags":[],"class_list":["post-12165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-mint","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=12165"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/12165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12177"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=12165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=12165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=12165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}