How to install asciinema on Manjaro

Asciinema is a command-line tool used to record and share terminal sessions. It is readily available on Manjaro, a Linux distribution based on Arch Linux. In this tutorial, we will walk you through the installation process of asciinema on Manjaro.

Prerequisites

Before proceeding with the installation, you should make sure your system is up-to-date.

sudo pacman -Syu

Installation

We can install asciinema and its dependencies using the command below:

sudo pacman -S asciinema

In case the package is not found, you can add the community repository by running:

sudo pacman-mirrors --fasttrack && sudo pacman -Syyu && sudo pacman -S community/asciinema

Verify installation

To verify that asciinema has been correctly installed, run the following command:

asciinema --help

You should get an output with a list of available commands.

Usage

To record a terminal session, simply run the command followed by the filename you would like to save the session to.

asciinema rec my-session.cast

To exit the session recording, use the exit command.

To play a recorded session, simply run:

asciinema play my-session.cast

Conclusion

In this tutorial, we have successfully installed asciinema on Manjaro and tested its usage. Asciinema is an excellent tool for recording and sharing terminal sessions.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!