Open Source

Showterm.io – A Terminal/Shell Recording, Upload and Share Tool for Linux

Showterm.io &-8211; A Terminal/Shell Recording, Upload and Share Tool for Linux &-8211; this Article or News was published on this date:2019-05-28 19:31:46 kindly share it with friends if you find it helpful

For recording Desktop screen there are a bunch of software’s available on the web, but have you ever thought about recording your Terminal? Well, it’s very much possible thanks to this nifty little program called Showterm.

Install Showterm.io in LinuxInstall Showterm.io in Linux

Install Showterm.io in Linux

What is Showterm?

Showterm is an open source terminal record and upload application that lets you easy to record how-to in your terminal. It will record all your terminal activity in text-base and upload to showterm.io as a video and then generates a link for you to share with your team-mates or embed it in your website as an iframe. Here’s an example of Demo:

Installation of Showterm in Linux

You can install showterm tool using two different methods. The recommended way is to use ruby, if you’ve ruby correctly installed and configured on your system, then you can install it using gem command. If ruby doesn’t installed, you can install it using following commands.

On Debian/Ubuntu/Linux Mint

- sudo apt-get install ruby rubygems
- sudo gem install showterm
Sample Output
[sudo] password for sfnews: 
Fetching: showterm-0.5.0.gem (100%)
Building native extensions.  This could take a while...
Successfully installed showterm-0.5.0
1 gem installed
Installing ri documentation for showterm-0.5.0...
Installing RDoc documentation for showterm-0.5.0...

On RHEL/CentOS/Fedora

- yum install ruby rubygems
- gem install showterm
Sample Output
Building native extensions.  This could take a while...
Successfully installed showterm-0.5.0
1 gem installed
Installing ri documentation for showterm-0.5.0...
Installing RDoc documentation for showterm-0.5.0...

If your system does not have ruby configured correctly, you can install showterm in your bin directory with the following commands.

$ curl showterm.io/showterm > ~/bin/showterm
$ chmod +x ~/bin/showterm

How to Use Showterm

The syntax to start recording is “showterm [program to run]“. If you omit the program to run and just type in “showterm“.

- showterm

It’ll start recording your shell. Once you are done recording, you can stop it by typing in either exit or “Ctrl­D“.

- exit

Once you type exit it will record and upload your actions. When finished upload, it will generate a link at the end of each recording which you can share.

showterm recording finished.
Uploading...
http://showterm.io/9d34dc53ab91185448ef8

Here is a showterm recording that shows it’s usage:

I will use two showterm recording windows so as to demonstrate how to use it. This is the main showterm recording window inside which I will start another showterm window so as to demonstrate how to use it. In other words, I will use showterm itself to demonstrate how to use showterm! Isn’t that cool?

I start the first showterm recording window and then start another recording window inside the first window by typing command “showterm“.

Now whatever I do here will be recorded in both the first and second showterm window. Typing in exit once will take us out of the second showterm window and typing in exit again will take us out of the first showterm window.

You can also change the speed at which it is played or stop it completely by appending the following to the links:

  1. -slow : To make it go slower. It actually plays the recording at real time speed.
  2. -fast : To make it go faster.It actually plays the recording at double the original speed.
  3. -stop : To stop it.

For example, you can slow the showterm recording by appending -slow to this link as shown below.

http://showterm.io/d1311caa9df1aa7cdb828-slow

Embedding with iframes

If you want to embed showterms in your website, you can embed it using the iframe tag. For example, to embed link “http://showterm.io/d1311caa9df1aa7cdb828“, you can add the following iframe code to your website.

iframe src=”http://showterm.io/d1311caa9df1aa7cdb828” width=”640” height=”480”>/iframe>

Conclusion

There’s a whole range of applications for it! Whether you are teaching a class full of students or want to teach someone about how to install an application or show them how to run a particular program on terminal, showterm is the way to go!

Also, it’s an open source application so, if you want to contribute to it, here’s the link to its source:

  1. Showterm Homepage
  2. Showterm Client on GitHub
  3. Showterm Server on GitHub

Read Also: Record Programs and Games Using Simple Screen Recorder

Dtrx – An Intelligent Archive Extraction (tar, zip, cpio, rpm, deb, rar) Tool for Linux

Dtrx &-8211; An Intelligent Archive Extraction (tar, zip, cpio, rpm, deb, rar) Tool for Linux &-8211; this Article or News was published on this date:2019-05-28 19:31:03 kindly share it with friends if you find it helpful

All of us might have faced a situation at some point of time or the other while using Linux tar.gz, tar.bz2, tbz commands. So many archive types, so many commands to remember… Well, not any-more, thanks to dtrx tool.

Install Dtrx in LinuxInstall Dtrx in Linux

Dtrx Tool for Extract Tar files

  1. 18 Tar Commands to Create and Extract Archives in Linux
  2. How to Open, Extract and Create RAR Files in Linux

What is Dtrx?

Dtrx stands for “Do The Right Extraction“, it’s an open source and very effective command-line application for *nix systems that simplify your job of archive extraction easier.

The dtrx command is an replacement of “tar -zxvf” or “tar -xjf” commands and it provides a one single command to extract archives in a number of different formats including tar, zip, rpm, deb, gem, 7z, cpio, rar and many more. It can also used to decompress files compressed with bzip2, gzip etc.

By default, dtrx extract contents to a dedicated directory and also fixes permission issues (like permission denied) faced by user while extracting content to ensure that the owner can read and write all those files.

Dtrx Features

  1. Handles many archive types: It provides only one simple command to extract tar, zip, rar, gz, bz2, xz, rpm, deb, gem, self-extracting zip files and many other formats of exe files.
  2. Keeps everything organized: It will extract archives into their own dedicated directories.
  3. Sane permissions: It also make sure, user can read and write all those files after extraction, keeping permission intact.
  4. Recursive extraction: It can find archives inside the archive and extract those too.

How to Install Dtrx in Linux

The dtrx tool is by default included in Ubuntu repositories, all you’ve to do is simple do a apt-get to install in on your system.

On Debian/Ubuntu/Linux Mint

$ sudo apt-get install dtrx

On RHEL/CentOS/Fedora

On Red Hat based systems, dtrx is not available via default repositories, you need to download a dtrx script and install the program system-wide using below commands as root user.

- wget http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz
- tar -xvf dtrx-7.1.tar.gz 
- cd dtrx-7.1
- python setup.py install --prefix=/usr/local
Sample Output
running install
running build
running build_scripts
creating build
creating build/scripts-2.6
copying and adjusting scripts/dtrx -> build/scripts-2.6
changing mode of build/scripts-2.6/dtrx from 644 to 755
running install_scripts
copying build/scripts-2.6/dtrx -> /usr/local/bin
changing mode of /usr/local/bin/dtrx to 755
running install_egg_info
Creating /usr/local/lib/python2.6/site-packages/
Writing /usr/local/lib/python2.6/site-packages/dtrx-7.1-py2.6.egg-info

How to Use dtrx Command

The dtrx command is sort of like the one ring to rule them all in the Lord of The Rings. Instead of having to remember syntax for each archive, all you have to remember is dtrx command.

1. Extracting Single Archive

For example, I want to extract a archive file called “sfnews27-12-2013.gz“, I only execute dtrx command without using any flags.

[[email protected]]- dtrx sfnews27-12-2013.gz

Other than simplifying the extraction, it has a bunch of other options like extracting the file to a folder and recursively extracting all other archives inside a given archive.

2. Extracting Multiple Archives

Consider you’ve a file “dtrAll.zip“, consisting of dtr1.zip, dtr2.zip and dtr3.zip each consisting of dtr1,dtr2 and dtr3 respectively. Instead of having to manually first extract the dtrAll zip and then extracting each one of the dtr1, dtr2 and dtr3 you can directly extract it in respective folders by using dtrx and by selecting option “a“, it extracts all the zip files recursively.

[[email protected]]- dtrx dtrAll.zip
Sample Output
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) a

After, extraction, the contents of the extracted directory can be verified using ls command.

[[email protected]]- cd dtrAll
[[email protected]]- ls 

dtr1  dtr1.zip  dtr2  dtr2.zip  dtr3  dtr3.zip

3. Extracting Specific Archive

Let’s say you want to extract the first archive and not archives inside it. By selecting N, it only extracts the given archive and not other archives inside it.

[[email protected]]- dtrx dtrAll.zip
Sample Output
dtrx: WARNING: extracting /root/dtrAll.zip to dtrAll.1
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) N

The contents of extracted directory can be verified using ls command as shown.

[[email protected]]- cd dtrAll
[[email protected]]- ls

dtr1.zip dtr2.zip dtr3.zip

4. Extract Each Layer of Archive

To extract each layer of archive inside archive on a case by case basis i.e., if you want to extract 2nd layer of archives but not the 3rd layer, you can use the “o” option.

Consider you’ve a zip file “dtrNewAll.zip“, which has “dtrAll.zip” and “dtrNew” as it’s contents. Now if you want to extract the contents of “dtrNewAll” and “dtrAll” as well but not of dtr1.zip, dtr2.zip and dtr3.zip, you can use “o” and “n” options as shown below.

- dtrx dtrNewAll.zip
Sample Output
dtrNewAll.zip contains 1 other archive file(s), out of 2 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) o
dtrAll.zip contains 3 other archive file(s), out of 3 file(s) total.
You can:
 * _A_lways extract included archives during this session
 * extract included archives this _O_nce
 * choose _N_ot to extract included archives this once
 * ne_V_er extract included archives during this session
 * _L_ist included archives
What do you want to do?  (a/o/N/v/l) n

The contents of extracted directory can be verified using ls command as shown.

[[email protected]]- cd dtrNewAll
[[email protected]]- ls

dtrAll  dtrAll.zip  dtrNew
[[email protected]]- cd dtrAll
[[email protected]]- ls

dtr1.zip dtr2.zip dtr3.zip

We first select the “o” option which means that all archives inside dtrNewAll will be extracted. Later we select the “n” option for dtrAll.zip which means that the archives inside it dtr1.zip , dtr2.zip and dtr3.zip will not be extracted.

5. Extract meta-data from .deb, .rpm and .gem files

The “-m” option extract the meta-data from .deb, .rpm and .gem archives, instead of their normal contents. Here is an example of the command.

[[email protected]]- dtrx -m openfire_3.8.2_all.deb 
[[email protected]]- dtrx -m openfire-3.8.2-1.i386.rpm
[[email protected]]- ls

conffiles  control  md5sums  postinst  postrm  prerm

There are lot more dtrx options to explore, just run the “dtrx –help” to list the available options.

[[email protected]]- dtrx  --help

Usage: dtrx [options] archive [archive2 ...]

Intelligent archive extractor

Options:
  --version             	show program's version number and exit
  -h, --help            	show this help message and exit
  -l, -t, --list, --table      	list contents of archives on standard output
  -m, --metadata        	extract metadata from a .deb/.gem
  -r, --recursive       	extract archives contained in the ones listed
  -n, --noninteractive  	don't ask how to handle special cases
  -o, --overwrite       	overwrite any existing target output
  -f, --flat, --no-directory    extract everything to the current directory
  -v, --verbose         	be verbose/print debugging information
  -q, --quiet           	suppress warning/error messages

Reference Links

dtrx Homepage

I think you must give a try to dtrx, because it’s the only powerful command line tool that gives a single command to decompress any format of archive files. That’s it for now, and don’t forget to leave your note in comment section.