Back in 1979, a video game was being developed for the Atari 2600 — Adventure.
The programmer working on Adventure slipped a secret feature into the game which, when the user moved an “invisible square” to a particular wall, allowed entry into a “secret room”. That room contained a simple phrase: “Created by WarrenRobinett”.
Atari had a policy against putting author credits in their games, so this intrepid programmer put his John Hancock on the game by being, well, sneaky. Atari only found out about the “secret room” after Warren Robinett had left the company. Instead of getting upset about it, Atari decided to give these sorts of “secret features” a name — “Easter Eggs” because… you know… you hunt for them — and declared that they would be putting more of these “Easter Eggs” in future games.
This wasn’t the first such “hidden feature” built into a piece of software (that distinction goes to an operating system for the PDP-10 from 1966, but this was the first time it was given a name. And it was the first time it really grabbed the attention of most computer users and gamers.
Linux (and Linux related software) has not been left out. Some truly amusing Easter Eggs have been created for our beloved operating system over the years. Here are some of my personal favorites — with how to achieve them.
You’ll notice, rather quickly, that most of these are experienced via a terminal. That’s on purpose. Because terminals are cool. [I should also take this moment to say that if you try to run an application I list, and you do not have it installed, it will not work. You should install it first. Because… computers.]
Arch : Pac-Man in pacman
We’re going to start with one just for the ArchLinux fans out there. You can add a Pac–Man-esque character to your progress bars in “pacman” (the Arch package manager). Why this isn’t enabled by default is beyond me.
To do this you’ll want to edit “/etc/pacman.conf” in your favorite text editor. Under the “# Misc options” section, remove the “#” in front of “Color” and add the line “ILoveCandy”. Because Pac-Man loves candy.
That’s it! Next time you fire up a terminal and run pacman, you’ll help the little yellow guy get some lunch (or at least some candy).
GNU Emacs : Tetris and such
I have a confession to make: I don’t like emacs. Not even a little bit.
Some things fill my heart with gladness. Some things take away all my sadness. Some things ease my troubles. That’s notwhatemacsdoes.
But it does play Tetris. And that’s not nothing. Here’s how:
Step 1) Launch emacs. (When in doubt, type “emacs”.)
Step 2) Hit Escape then X on your keyboard.
Step 3) Type “tetris” and hit Enter.
Bored of Tetris? Try “pong”, “snake” and a whole host of other little games (and novelties). Take a look in “/usr/share/emacs/*/lisp/play” for the full list.
Animals Saying Things
The Linux world has a long and glorious history of animals saying things in a terminal. Here are the ones that are the most important to know by heart.
On a Debian-based distro? Try typing “apt-get moo”.
Simple, sure. But it’s a talking cow. So we like it. Then try “aptitude moo”. It will inform you that “There are no Easter Eggs in this program”.
If there’s one thing you should know about aptitude, it’s that it’s a dirty, filthy liar. If aptitude were wearing pants, the fire could be seen from space. Add a “-v” option to that same command. Keep adding more v’s until you force aptitude to come clean.
I think we can all agree, that this is probably the most important feature in aptitude. But what if you want to put your own words into the mouth of a cow? That’s where “cowsay” comes in.
And, don’t let the name “cowsay” fool you. You can put words into so much more than just a cow. Like an elephant, Calvin, Beavis and even the Ghostbusters logo. Just do a “cowsay -l” from the terminal to get a complete list of options.
Want to get really tricky? You can pipe the output of other applications into cowsay. Try “fortune | cowsay”. Lots of fun can be had.
Sudo Insult Me Please
Raise your hand if you’ve always wanted your computer to insult you when you do something wrong. Hell. I know I have. Try this:
Type “sudo visudo” to open the “sudoers” file. In the top of that file you’ll likely see a few lines that start with “Defaults”. At the bottom of that list add “Defaults insults” and save the file.
Now, whenever you mistype your sudo password, your system will lob insults at you. Confidence boosting phrases such as “Listen, burrito brains, I don’t have time to listen to this trash.”, “Are you on drugs?” and “You’re mind just hasn’t been the same since the electro-shocks, has it?”.
This one has the side-effect of being a rather fun thing to set on a co-worker’s computer.
Firefox is cheeky
Here’s one that isn’t done from the Terminal! Huzzah!
Open up Firefox. In the URL bar type “about:about”. That will give you a list of all of the “about” pages in Firefox. Nothing too fancy there, right?
Now try “about:mozilla” and you’ll be greeted with a quote from the “BookofMozilla” — the holy book of web browsing. One of my other favorites, “about:robots”, is also quite excellent.
Carefully Crafted Calendar Concoctions
Tired of the boring old GregorianCalendar? Ready to mix things up a little bit? Try typing “ddate”. This will print the current date on the DiscordianCalendar. You will be greeted by something that looks like this:
“Today is Sweetmorn, the 18th day of Discord in the YOLD 3181”
I hear what you’re saying, “But, this isn’t an Easter Egg!” Shush. I’ll call it an Easter Egg if I want to.
Instant l33t Hacker Mode
Want to feel like you’re a super-hacker from a movie? Try setting nmap into “ScriptKiddie” mode (by adding “-oS”) and all of the output will be rendered in the most 3l33t h@x0r-y way possible.
Example: “nmap -oS – google.com”
Do it. You know you want to. Angelina Jolie would be superimpressed.
The lolcat Rainbow
Having awesome Easter Eggs and goodies in your Linux terminal is fine and dandy… but what if you want it to have a little more… pizazz? Enter: lolcat. Take the text output of any program and pipe it through lolcat to super-duper-rainbow-ize it.
Cursor Chasing Critter
And that brings us to “oneko” — the Linux port of the classic “Neko”. Basically a little cat that chases your cursor around the screen.
While this may not qualify as an “Easter Egg” in the strictest sense of the word, it’s still fun. And it feels Easter Egg-y.
You can also use different options (such as “oneko -dog”) to use a little dog instead of a cat and a few other tweaks and options. Lots of possibilities for annoying co-workers with this one.
There you have it! A list of my favorite Linux Easter Eggs (and things of that ilk). Feel free to add your own favorite in the comments section below. Because this is the Internet. And you can do that sort of thing.
Bryan Lunduke is a Social Media Marketing Manager at SUSE.