![]() ![]() You will see the following output: asciinema: recording finishedĪsciinema: press to upload to, to save locallyīy pressing enter, your video will be uploaded to asciinema, and you can share it with everyone. Once you are done, to stop the recording, just type exit or press ctrl-d. ![]() With that, all of your commands and screen output will be recorded. Output: asciinema: recording asciicast to /tmp/tmpwpnp9v4y-ascii.castĪsciinema: press or type "exit" when you 're done Next, let's go ahead and learn how actually to record our terminal session! Recording your terminal sessionĪll that you need to do in order to record your terminal is to run the following command: asciinema rec ![]() Once you have asciinema installed, you can verify this by running the following command: asciinema -version Learn more about the DevDojo sponsorship program and see your logo here to get your brand in front of thousands of developers.įor any other Linux distributions, make sure to check the instructions here. View Website Learn how to code your own blockchain and create your own crypto-currency with the CoinCamp interactive and fun online training platform. I will cover the installation steps for a few common operating systems: If you wish, you can use my affiliate code to get free $100 DigitalOcean credit to spin up your servers! Installation In this post, you will learn how to use Asciinema to record your terminal sessions the right way! PrerequisitesĪs Asciinema is available for Linux, macOS, and *BSD, all that you need to have is a terminal.įor this demo, I would be using a server deployed on DigitalOcean. Just play the video and copy directly form it: The best thing is that it allows you to copy and paste any output of the terminal at any time directly from the video. Luckily Asciinema have developed a much better way of doing this!Īsciinema allows you to record your terminal in a lightweight, purely text-based approach. Still, then the video size would be too large to share over email, or if you send it over Slack, it might take ages to upload, then sometimes the quality also drops, and it is basically unusable. Also, if you press Ctrl + C you can save the recording to a local tmp folder.Many times, I've been in a situation where I want to share a recording of my screen with a colleague. Once you are done recording, press Enter and asciinema will give you a link to your video so you can view it right away in browser. Now that you have asciinema installed, all you need to do is enter: asciinema rec asciinema Record CommandĪnd you will be recording. If you have an Arch based system, use the following commands to install asciinema: sudo pacman -S asciinemaįor all other systems, you can find install instructions here. If you have Ubuntu, use the following commands to install asciinema: sudo apt install asciinema Subscribe to It's FOSS YouTube Channel Install and use asciinema to record Linux terminal session To give you an example of what asciinema can do, here is a video by asciinema that explains how to use it: The best part is that instead of attempting to transcribe the commands from the video you created, viewers can simply pause the video, highlight the command and copy and past it into their own terminal. This way, you share the URL with your friend and the friend can access it at any time. The session is automatically loaded to asciinema website and you are provided a URL to share the recorded session. What is Asciinema?Īsciinema is a small open source program you can install on your system to capture what you do in the terminal. If you somehow managed to send the video file, the other user will have to manually type the commands and it is prone to errors that could eventually turn catastrophic. ![]() The problem is that you use a traditional tool like SimpleScreenRecorder to record Linux session, you will have to find a way to send the big video file to another computer. The easiest way to teach them would be to send them a video capture of your screen while you perform the task in the terminal. The downside is that they turn to you to be their tech support once they do. Many of you Linux fans work hard to convince your friends and family to switch to Linux. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |