3 command-line tools for feigning productivity

Sometimes, you need to get busy. Other times, you just need to look like a busy hacker from the movies. There's an open source tool for that.
421 readers like this.
Terminal view

Jamie Cox. Modified by Opensource.com. CC BY 2.0.

If you ever spent time growing up watching spy thrillers, action flicks, or crime movies, you developed a clear picture in your mind of what a hacker's computer screen looked like. Rows upon rows of rapidly moving code, streams of grouped hexadecimal numbers flying past like raining code in The Matrix.

Perhaps there's a world map with flashing points of light and a few rapidly updating charts thrown in there for good measure. And probably a 3D rotating geometric shape, because why not? If possible, this is all shown on a ridiculous number of monitors in an ergonomically uncomfortable configuration. I think Swordfish sported seven.

 

Of course, those of us who pursued technical careers quickly realized that this was all utter nonsense. While many of us have dual monitors (or more), a dashboard of blinky, flashing data is usually pretty antithetical to focusing on work. Writing code, managing projects, and administering systems is not the same thing as day trading. Most of the situations we encounter require a great deal of thinking about the problem we're trying to solve, a good bit of communicating with stakeholders, some researching and organizing information, and very, very little rapid-fire typing.

 

That doesn't mean that we sometimes don't feel like we want to be inside of one of those movies. Or maybe, we're just trying to look like we're "being productive."

Side note: Of course I mean this article in jest. If you're actually being evaluated on how busy you look, whether that's at your desk or in meetings, you've got a huge cultural problem at your workplace that needs to be addressed. A culture of manufactured busyness is a toxic culture and one that's almost certainly helping neither the company nor its employees.

That said, let's have some fun and fill our screens with some panels of good old-fashioned meaningless data and code snippets. (Well, the data might have some meaning, but not without context.) While there are plenty of fancy GUIs for this (consider checking out Hacker Typer or GEEKtyper.com for a web-based version), why not just use your standard Linux terminal? For a more old-school look, consider using Cool Retro Term, which is indeed what it sounds like: A cool retro terminal. I'll use Cool Retro Term for the screenshots below because it does indeed look 100% cooler.

Genact

The first tool we'll look at is Genact. Genact simply plays back a sequence of your choosing, slowly and indefinitely, letting your code “compile” while you go out for a coffee break. The sequence it plays is up to you, but included by default are a cryptocurrency mining simulator, Composer PHP dependency manager, kernel compiler, downloader, memory dump, and more. My favorite, though, is the setting which displays SimCity loading messages. So as long as no one checks too closely, you can spend all afternoon waiting on your computer to finish reticulating splines.

Genact has releases available for Linux, OS X, and Windows, and the Rust source code is available on GitHub under an MIT license.

 

Genact

opensource.com

Hollywood

Hollywood takes a more straightforward approach. It essentially creates a random number and configuration of split screens in your terminal and launches busy looking applications like htop, directory trees, source code files, and others, and switch them out every few seconds. It's put together as a shell script, so it's fairly straightforward to modify as you wish.

The source code for Hollywood can be found on GitHub under an Apache 2.0 license.

 

Hollywood

opensource.com

Blessed-contrib

My personal favorite isn't actually an application designed for this purpose. Instead, it's the demo file for a Node.js-based terminal dashboard building library called Blessed-contrib. Unlike the other two, I actually have used Blessed-contrib's library for doing something that resembles actual work, as opposed to pretend-work, as it is a quite helpful library and set of widgets for displaying information at the command line. But it's also easy to fill with dummy data to fulfill your dream of simulating the computer from WarGames.

The source code for Blessed-contrib can be found on GitHub under an MIT license.

 

Blessed-contrib

opensource.com


Of course, while these tools make it easy, there are plenty of ways to fill up your screen with nonsense. One of the most common tools you'll see in movies is Nmap, an open source security scanner. In fact, it is so overused as the tool to demonstrate on-screen hacking in Hollywood that the makers have created a page listing some of the movies it has appeared in, from The Matrix Reloaded to The Bourne Ultimatum, The Girl with the Dragon Tattoo, and even Die Hard 4.

You can create your own combination, of course, using a terminal multiplexer like screen or tmux to fire up whatever selection of data-spitting applications you wish.

What's your go-to screen for looking busy?

Jason Baker
Former Red Hatter. Now a consultant and aspiring entrepreneur. Map nerd, maker, and enthusiastic installer of open source desktop and self-hosted software.

9 Comments

To which part of an open company does this apply?

Speaking as a marketing person, I can see tools like this being useful as "B-roll" for videos, etc. Particularly if it's the background. Real computer use is not always as visually appealing.

Hey Guys,

Good article there, i don't see why i need to use fake screens while i can display real data, the very basic tool i have on every server is nmon & top, in a terminator divided layout, for more data i use https://github.com/firehol/netdata/wiki which is really awesome looking & can be customized, i mean it's good to see real data and embrace the feeling ;)

Cheers.

These are great!

I confess, what converted me to linux was the flashing, scrolling text at boot time. And Win95 hiding MS-Dos boot process. Superior technology, bleh. Who needs that?

These are awesome. Especially blessed-contrib

Only ever used Cmatrix to provide a distracting desktop. Will try Blessed-contrib. Thanks

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.