![]() Whether you use it to show off your terminal skills to your friends or whether you use it to educate colleagues and students, Asciinema is an invaluable, social, and accessible tool.}}}}. Because it retains the ability to copy and paste code from the recording, provides the ability to pause and play on-demand, and is completely accurate in what it portrays, it's not just as good as a screen recording. Asciinema as documentationĪsciinema is a great way to demonstrate even the most basic of concepts. To preserve your masterpiece, you can open an account on Asciinema and then sit back and wait for the Academy to call. You don't need an account to share your movie, but all unclaimed movies get deleted after seven days. ![]() cast file is usually only a few kilobytes, or at the most a few megabytes, so the upload is nearly instantaneous. If you're used to YouTube upload times, you'll be pleasantly surprised by how quickly Asciinema movies transfer. Free online course: RHEL Technical Overview.No Asciinema movie has yet reached a blockbuster status, but you can upload yours to and share it with the world nevertheless. It shows users how to do a task, and it allows them to copy and paste to ensure accuracy. You can pause Asciinema movies, select the text you see on the screen and paste it into an active terminal to run the command. This is just for show.Īnd yet it's more than just a show. This isn't a shell script in action, so even though you may have created a file hello.txt in your movie, there won't be a new hello.txt after playback. Of course, the actual commands getting played don't actually execute. Your text-based movie plays-demonstrating for your users exactly how a complex task gets done. This takes over your terminal session and makes it into the nearest equivalent of the Silver Screen as it's likely ever to be (aside from that time you watched Star Wars in ASCII over telnet). You can playback your Asciinema using the play subcommand: $ asciinema play mymovie.cast Should you find yourself making lots of edits or belaboring long pauses during the recording, you can install and use the asciinema-edit utility, which can trim out blocks of "footage" by timestamps of your definition, or by eliminating idle time. If you've made a mistake, you can cut the mistake by removing the lines recreating the error. In this example, the resulting file, mymovie.cast is a collection of timestamps and actions that serve as a script (in the sense of a movie script) for the playback mechanism. When you're finished demonstrating how the terminal works, press Ctrl+D or type exit to stop the recording. If you see it in your terminal during recording, it makes the cut. This includes input, output, errors, awkward pauses, mistakes, or successes. Some friendly output alerts you that you're recording, and it tells you how to stop: Press Ctrl+D or just type exit.Įverything you do in your terminal while Asciinema is active gets recorded. To start recording with Asciinema, you use the rec subcommand: $ asciinema rec mymovie.castĪsciinema: recording asciicast to mymovie.castĪsciinema: press or type "exit" when you're done $ sudo bmake install clean Making movies out of text On BSD and any other platform using Pkgsrc: $ cd /usr/pkgsrc/misc/py-asciinema ![]() On macOS, you can install using Homebrew: $ sudo brew install asciinema On Debian, Linux Mint, or similar: $ sudo apt install asciinema On Fedora, CentOS, Mageia, or similar: $ sudo dnf install asciinema On Linux, you can install Asciinema using your package manager. You can upload your movie to and share them just as you would any other video on the internet, and you can even embed your movie into a webpage. It saves your "movie" recording to a text file and then replays it on demand. Similar to the script and scriptreplay commands, Asciinema records exactly what your terminal displays. What you might try instead is sending a user a screen recording, but one that they can copy commands from and paste into their own terminal.Īsciinema is an open source terminal session recorder. While it's often easier to just seize control of a user's computer, that's not really the best way to educate. If you've ever been on a support call, you've probably spent several minutes spelling out even the shortest commands and explaining in detail where the spaces and returns fall. ![]() Support calls are important and often satisfying in the end, but the act of clear communication can be arduous for everyone involved. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |