Linux / UNIX Desktop Fun: Terminal ASCII Aquarium

by Vivek Gite on January 5, 2011 · 29 comments

You can now enjoy mysteries of the sea from the safety of your own terminal using ASCIIQuarium. It is an aquarium/sea animation in ASCII art created using perl.

Install Term::Animation

First, you need to install Perl module called Term-Animation. Open a command-line terminal (select Applications > Accessories > Terminal), and then type:
$ sudo apt-get install libcurses-perl
$ cd /tmp
$ wget http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz
$ tar -zxvf Term-Animation-2.4.tar.gz
$ cd Term-Animation-2.4/
$ perl Makefile.PL && make && make test
$ sudo make install

Download and Install ASCIIQuarium

While still at bash prompt, type:
$ cd /tmp
$ wget http://www.robobunny.com/projects/asciiquarium/asciiquarium.tar.gz
$ tar -zxvf asciiquarium.tar.gz
$ cd asciiquarium_1.0/
$ sudo cp asciiquarium /usr/local/bin
$ sudo chmod 0755 /usr/local/bin/asciiquarium

How do I view my ASCII Aquarium?

Simply type the following command:
$ /usr/local/bin/asciiquarium
OR
$ perl /usr/local/bin/asciiquarium

(Fig.01: ASCII Aquarium [ click to enlarge ] )

Download: KDE and Mac OS X Version

Download - If you're running Mac OS X, try a packaged version that will run out of the box. For KDE users, try a KDE Screensaver based on the Asciiquarium.

This blog post is 1 of 4 in the "Linux / Unix Desktop Fun" series. Keep reading the rest of the series:
Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

{ 29 comments… read them below or add one }

1 Doron January 5, 2011

Thank you.nice!
You need to cd to asciiquarium after tar -zxvf asciiquarium.tar.gz

Reply

2 Karsten January 5, 2011

cpan install Term::Animation

Reply

3 Vikas January 5, 2011

That’s cool :-)

Reply

4 absurdo January 5, 2011

How can I compile rpm for CentOS 5.5?

Reply

5 Cj January 5, 2011

Cent OS users, try:
yum install perl-Curses
instead of
sudo apt-get install libcurses-perl

Worked for me :)

Reply

6 wss8848 January 6, 2011

There is nothing about libcurses-perl in CentOS yum programme.where can i get it?

Reply

7 Vivek Gite January 6, 2011
8 Brent January 6, 2011

Debian / Ubuntu
dh-make-perl –build –cpan Term::Animation

Reply

9 Brent January 6, 2011

Forgot, then afterwards dpkg -i libterm-animation-perl_2.4-1_all.deb

Reply

10 absurdo January 6, 2011

As I know, in rpm-based OSes it’s preferable to build rpm with rpm-build and than install it.

Reply

11 pawel January 6, 2011

Nice. Someone must have been really bored to do this…

If anyone asks – in OpenSuse 11.3 you need to add the CPAN repository (if you don’t have it):

sudo zypper ar http://download.opensuse.org/repositories/devel:/languages:/perl/openSUSE_11.3 perl

and install perl-Curses (for some reason the package name is different than in Ubuntu):

sudo zypper install perl-Curses

Have fun!

Reply

12 Jonas January 6, 2011

FYI: There is a slight difference between ASCII and ANSI. ;)

Reply

13 Tsiolkovsky January 6, 2011

Cool, I see it is already installed by default in my KDE (Mandriva Linux). Love it.

Reply

14 Marc St-Jacques January 7, 2011

Just a small detail: chances are you are not the owner of the file you just sudo cp’d into /usr/local/bin, so you won’t have the necessary permissions to chmod at the end. It should be ‘sudo chmod’.

A great find. Thanks.

Reply

15 stefan-m January 7, 2011

Wow nice :)
Thanks!

I want this as screensaver, does anybody has a solution to do this?

Reply

16 Branislav Viest January 8, 2011

Cool, Thanks for tip :-)

Reply

17 Michael January 9, 2011

Any idea how to Install Term::Animation on Fedora 14?
The perl ‘Makefile.PL && make && make test’ fails with message:
BEGIN failed–compilation aborted at Makefile.PL line 2.

When I looked at this line I see:
use ExtUtils::MakeMaker;
Then I installed the perl-MakeMaker-5.41-10.i386.rpm package from:
http://rpm.pbone.net/index.php3/stat/4/idpl/12105913/dir/redhat_7.x/com/perl-MakeMaker-5.41-10.i386.rpm.html

Ok. Installed without errors.
Now I tried again ‘Makefile.PL && make && make test’
And again it complains about BEGIN failed–compilation aborted at Makefile.PL line 2.

Any ideas? Thanks in advance

Reply

18 Kirk Baucom January 10, 2011

I don’t have a Fedora system to test on, but you might want to try looking for a perl-ExtUtils-MakeMaker package.

Reply

19 Michael January 22, 2011

Thanks for your suggestion, but after that I’ve got still the same error message.

Reply

20 mwoolley February 18, 2011

you need to install Test::Pod – cpan get Test::pod

Reply

21 Michael March 31, 2011

Thanks. Finally it is working now!

Reply

22 Kirk Baucom January 10, 2011

Glad you guys like it! I have a similar program that displays a scene based on the weather:
http://robobunny.com/projects/weatherspect/html/

If you have any problems or suggestions, let me know.

In addition to the KDE screensaver version, there’s now a live wallpaper for Android ported by Claudio Matsuoka:
http://www.androidpit.com/en/android/market/apps/app/org.helllabs.android.asciiquarium/Asciiquarium-Live-Wallpaper

Reply

23 asda January 11, 2011

Is possible ascii aquarium in motd on ssh?

Thanks.

Reply

24 VipeR January 18, 2011

Thx For Your post

Reply

25 shahram January 22, 2011

that’s cool

Reply

26 Mike February 13, 2011

That’s very nice.

10 points for your “bash street credibility” :)

Reply

27 Peter Lohse February 17, 2011

That’s very funny ^^
Thank you very much

Reply

28 jaysunn March 31, 2011

THis is really neat. LOve it>>>>

Jaysunn

Reply

29 jaysunn March 31, 2011

Not sure if posted. For OSX. I became root and issued the command:

prompt>cpan

I then accepted all the default prompts.

Then I ran

cpan>install Term::Animation

Then I ran:
shine:~ jasonralph$ asciiquarium

Since it was in my path the binary ran perfectly.
Afer that I was able to see the coolness. Very sweet.

Jaysunn

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 7 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: