TranslateProject/sources/share/20150407 10 Truly Amusing Easter Eggs in Linux.md
2015-05-01 10:14:17 -05:00

9.9 KiB
Raw Blame History

KevinSJ translating 10 Truly Amusing Easter Eggs in Linux

The programmer working on Adventure slipped a secret feature into the game. 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. Image credit: Wikipedia.

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 Warren Robinett”.

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 wasnt 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.

Youll notice, rather quickly, that most of these are experienced via a terminal. Thats 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

Were going to start with one just for the Arch Linux fans out there. You can add a Pac-Man-esque character to your progress bars in “pacman” (the Arch package manager). Why this isnt enabled by default is beyond me.

To do this youll 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.

Thats it! Next time you fire up a terminal and run pacman, youll help the little yellow guy get some lunch (or at least some candy).

GNU Emacs : Tetris and such

emacs Tetris I dont like emacs. Not even a little bit. But it does play Tetris.

I have a confession to make: I dont 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. Thats not what emacs does.

But it does play Tetris. And thats not nothing. Heres 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".

apt-get moo apt-get moo

Simple, sure. But its 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 theres one thing you should know about aptitude, its that its 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 vs until you force aptitude to come clean.

I think we can all agree, that this is probably the most important feature in aptitude.

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? Thats where “cowsay” comes in.

And, dont 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.

You can put words into so much more than just a cow.

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 youve 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 youll 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 dont have time to listen to this trash.”, “Are you on drugs?” and “Youre mind just hasnt 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

Heres one that isnt 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 youll be greeted with a quote from the “Book of Mozilla” -- the holy book of web browsing. One of my other favorites, “about:robots”, is also quite excellent.

The “Book of Mozilla” -- the holy book of web browsing.

Carefully Crafted Calendar Concoctions

Tired of the boring old Gregorian Calendar? Ready to mix things up a little bit? Try typing “ddate”. This will print the current date on the Discordian Calendar. 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 youre saying, “But, this isnt an Easter Egg!” Shush. Ill call it an Easter Egg if I want to.

Instant l33t Hacker Mode

Want to feel like youre a super-hacker from a movie? Try setting nmap into “Script Kiddie” 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 super impressed.

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.

Take the text output of any program and pipe it through lolcat to super-duper-rainbow-ize it.

Cursor Chasing Critter

oneko cat “Oneko” -- the Linux port of the classic “Neko”.

“Oneko” -- the Linux port of the classic “Neko”. 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, its 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.


via: http://www.linux.com/news/software/applications/820944-10-truly-amusing-linux-easter-eggs-

作者:Bryan Lunduke 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出