Animated Christmas tree: bring Christmas to your Linux console

christmas tree linux console

Christmas is coming and with it they have wanted to bring us this simple Perl program that can decorate your Linux terminal. Now you can bring Christmas to your console with this Christmas tree animated that we can visualize in the Linux console. Although its usefulness is quite null, it is still curious and for those interested in trying it here I explain how to do it step by step.

Thank you and Vivek Gite for this code, in order to view it, you need to have installed Perl on our system, if you already have it, we can install Acme :: POE :: Tree. To do this, we will use the CPAN module (Comprehensive Perl Archive Network) and started with privileges, we write a simple command line:

perl -MCPAN -e 'install Acme::POE::Tree'

Once we have this, we can see the christmas tree in the shell with a simple command:

perl -MAcme::POE::Tree -e 'Acme::POE::Tree->new()->run()'

If what you want is to customize this tree, you can modify the source code of the Perl script and save it in a text file (eg: with the content:


use Acme::POE::Tree;

my $tree = Acme::POE::Tree->new(


star_delay =>1.5, #brillo durante 1.5segundos

light_delay => 2, #Centelleo de las luces por 2 segundos

run_for => 10, #Salir automáticamente tras 10 segundos de muestra




The content of the article adheres to our principles of editorial ethics. To report an error click here.

3 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Matias said

    What year are we in? nineteen ninety five? hahaha that's why linux is never going to be a so like people.

    1.    Victor said

      que?? I'll tell you in case you don't know, the terminal is indispensable, wanting to do this type of detail as a hobby is entertaining, although for you it is silly, your comment is meaningless;)


  2.   Jimmy olano said

    INTERESTING this CPAN: «let's not reinvent the wheel».

    I have perl 5 installed and it doesn't run due to missing "", a dependency that it doesn't get even though I ran CPAN and configured it with the closest mirror automatically.

    ANYTHING THAT seems "so silly" and even anachronistic can teach us interesting lessons, personally for me perl is a somewhat "strange" language but I did not know that they have something "centralized" for their programs.