Record and share your terminal sessions with asciinema

Aug 10, 2021 by Thibault Debatty | 654 views


If you want to share a terminal session, you can record a video of your terminal window, and share it on something like YouTube or vimeo. Or you can can use asciinema! asciinema actually only records the text input and output of your terminal (stdin, stdout and stderr). This means that the recordings are extremely light (it only contains text and timing), while the text remains perfectly readable. You can also easily share and embed your recordings on your website using some javascript code.

Moreover, this embedded player has an additional benefit: it is possible to pause and copy-paste text directly from the player. You can give it a try on the session below:


The easiest way to install asciinema is using pip:

sudo pip3 install asciinema


To start a recording, simply type

asciinema rec

This will start a new shell from which the input and output will be recorded. You can end the recording with exit or ctrl + D.

Trick, you can also automatically remove idle time with the option -i:

asciinema rec -i 2

You can find all other options in the online documentation:


When the recording is finished, you will get to choose between saving the recording locally and uploading the recording to

If you choose to upload, you will receive a link that allows to watch and share your recording:

Getting started with Ansible
Ansible is an extremely powerful configuration management system. Ansible is able to perform a wide range of tasks on a large and heterogeneous ensemble of devices. Indeed, it relies on a system of modules (plugins) that allow to perform different tasks like software provisioning, system and application configuration management, application-deployment etc. Moreover, Ansible modules exist to manage a wide variety of devices like Linux and Windows computers, but also network equipment like switches and routers, kubernetes clusters and other cloud services like AWS, GCE and Azure. For this reasons, Ansible is sometimes coined as an infrastructure automation engine.
A light NAT router and DHCP server with Alpine Linux
Alpine Linux is a very light Linux distribution, that can run with less than 100MB of harddisk space. Here is how to configure Alpine Linux to run as a NAT router and DHCP server.
DNS over HTTPS and DNS over TLS with dnsdist
DNS is a real corner stone of privacy and security on the Internet! From the security point of view, DNS is used by your machine to link a domain name to an IP address. DNS is also used to find the email server of a recipient (using MX records). On a desktop computer, DNS is used by email clients to perform auto-configuration. Over the Internet, DNS records are used to prevent BGP hijacking (using RPKI). The list is long! From the privacy point of view, the DNS queries sent by your computer offer a clear view of the services you use.