Although some of us have already been on the subject for days or even weeks, Christmas does not begin in countries like Spain until tomorrow the 22nd, more specifically coinciding with the Christmas raffle. So today the 21st is a good time for a server to congratulate everyone on Christmas, including those who read us from Windows;) We like Christmas more or less, what is more Christmas than decorations? Well, in this article we are going to teach you how to put one, more specifically a animated christmas tree (different to this) in your terminal.
What we are going to explain here are two ways to achieve it, and this will work on any Linux based operating system. The first is the easy and the official one, but the text will be in English and not personalized. In the second I will explain how to make it something more personal, but that it can be a little more complicated. In any case, you will see a moving Christmas tree, shabby, but very linuxero.
The official way to get the Christmas tree is by following these steps:
- We open a terminal and write the following:
- Next, we make the file executable with this other command:
chmod +x tree-EN.sh
- And finally, we execute it with this other command:
And that would be it ... if you want it in English.
How to customize the text
If you want it in Spanish or with other messages, I recommend you follow other steps:
- We copy the URL of the script, we paste it in the URL box of the browser and we give it to enter, or we directly click here!.
- It will open a page with a lot of text. We select everything and copy it.
- We create a text file, or we open a text editor and paste the code into it.
- Next, we find where it says "MERRY CHRISTMAS" and we say "Merry Christmas."
- On the bottom line, "$ new_year" is for next year's number, which this year is "2021," so we leave it.
- Below we look for "CODE" which is what will be seen in different colors, and there we add another text.
- To make it come out as we want, depending on the text entered, we must change the value "(C - 10)" in the line where it says "And lots of CODE in $ new_year". In order for it to come out just as you have it in the header capture, I had to put an «11».
- We save the file as Christmas.sh.
- We make it executable, which can be done as in the official method or by right clicking and allowing it to run as a program.
- Finally, we execute it, which can also be done as in the official method or simply by dragging the file to a terminal and pressing enter.
And that would be all. It is not an application that will save our lives, but it is one that helps us to wish you a Merry Christmas, and we have done so.