以 Linux 的方式庆祝圣诞节
圣诞节
![](/data/attachment/album/201812/25/011422uz6z1iy36wy6nmcn.jpg)


当前正是假日季，很多人可能已经在庆祝圣诞节了。祝你圣诞快乐，新年快乐。


为了延续节日氛围，我将向你展示一些非常棒的圣诞主题的 [Linux 壁纸](https://itsfoss.com/beautiful-linux-wallpapers/)。在呈现这些壁纸之前，先来看一棵 Linux 终端下的圣诞树。


### 让你的桌面飘雪（针对 GNOME 用户）






如果您在 Ubuntu 18.04 或任何其他 Linux 发行版中使用 GNOME 桌面，您可以使用一个小的 [GNOME 扩展](https://itsfoss.com/gnome-shell-extensions/)并在桌面上飘雪。


您可以从软件中心或 GNOME 扩展网站获取此 gsnow 扩展。我建议您阅读一些关于[使用 GNOME 扩展](https://itsfoss.com/gnome-shell-extensions/)的内容。


安装此扩展程序后，您会在顶部面板上看到一个小雪花图标。 如果您单击一次，您会看到桌面屏幕上的小絮状物掉落。


![](/data/attachment/album/201812/25/012642ddkh5ze13e1sweez.gif)


你可以再次点击该图标来禁止雪花落下。


### 在 Linux 终端下显示圣诞树


![](/data/attachment/album/201812/25/083753hb45bqq55kqb4b4b.gif)


如果你想要在终端里显示一个动画的圣诞树，你可以使用如下命令：



```
curl https://raw.githubusercontent.com/sergiolepore/ChristBASHTree/master/tree-EN.sh | bash
```

要是不想一直从互联网上获取这棵圣诞树，也可以从它的 [GitHub 仓库](https://github.com/sergiolepore/ChristBASHTree) 中获取对应的 shell 脚本，更改权限之后按照运行普通 shell 脚本的方式运行它。


### 使用 Perl 在 Linux 终端下显示圣诞树


[![Christmas Tree in Linux terminal by NixCraft](/data/attachment/album/201812/25/011453fr1uz6wsun312r2x.gif)](https://itsfoss.com/christmas-linux-wallpaper/perl-tree/)


这个技巧最初由 [NixCraft](https://www.cyberciti.biz/open-source/command-line-hacks/linux-unix-desktop-fun-christmas-tree-for-your-terminal/) 分享，你需要为此安装 Perl 模块。


说实话，我不喜欢使用 Perl 模块，因为卸载它们真的很痛苦。所以使用这个 Perl 模块时需谨记，你必须手动移除它。



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

你可以阅读 [原文](https://www.cyberciti.biz/open-source/command-line-hacks/linux-unix-desktop-fun-christmas-tree-for-your-terminal/) 来了解更多信息。


### 下载 Linux 圣诞主题壁纸


所有这些 Linux 圣诞主题壁纸都是由 Mark Riedesel 制作的，你可以在 [他的网站](http://www.klowner.com/) 上找到很多其他艺术品。


自 2002 年以来，他几乎每年都在制作这样的壁纸。可以理解的是，最早的一些壁纸不具有现代的宽高比。我把它们按时间倒序排列。


注意一个小地方，这里显示的图片都是高度压缩的，因此你要通过图片下方提供的链接进行下载。


![Christmas Linux Wallpaper](/data/attachment/album/201812/25/012645u9pqo24vq49pzg7z.jpg)


*[下载此壁纸](http://www.klowner.com/wallery/christmas_tux_2018/download/ChristmasTux2018_4K_3840x2160.png)*


![Christmas Linux Wallpaper](/data/attachment/album/201812/25/011455hp3tz2ydj3hjwtat.jpg)


*[下载此壁纸](http://klowner.com/wallery/christmas_tux_2017/download/ChristmasTux2017_3840x2160.png)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011456idz7fcp4d7yv8pi3.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2016_3840x2160_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2016/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011458zh4hxszxd4d0xsn4.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2015_2560x1920_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2015/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011459lggeko9vpz49zge9.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2014_2560x1440_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2014/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011500pnddrwon5r65555r.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2013_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2013/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011501omncdcdg7iz6j4d7.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2012_2560x1440_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2012/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011502t8az0k8knw2db0wh.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2011_2560x1440_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2011/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011503tshyms0888rxf0jy.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2010_5120x2880_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2010/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011505qy76zydaqq75jddx.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2009_1600x1200_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2009/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011506un5usivbaucpy3dm.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2008_2560x1600_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2008/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011507b3bk4xkhuyhzkukf.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2007_2560x1600_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2007/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011508shrvy5yvaenjvz57.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2006_1024x768_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2006/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011509lkk84l7647klfl7l.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2005_1600x1200_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2005/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011510a481immrwm8z1i2q.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2004_1600x1200_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2004/)*


[![Christmas Linux Wallpapers](/data/attachment/album/201812/25/011511rp9t6apk4g95rux0.jpg)](https://itsfoss.com/christmas-linux-wallpaper/christmastux2002_1600x1200_result/)


*[下载此壁纸](http://www.klowner.com/wallpaper/christmas_tux_2002/)*


### 福利：Linux 圣诞颂歌


这是给你的一份福利，给像我们一样的 Linux 爱好者的关于 Linux 的圣诞颂歌。


在 [《计算机世界》的一篇文章](http://www.computerworld.com/article/3151076/linux/merry-linux-to-you.html) 中，[Sandra Henry-Stocker](https://twitter.com/bugfarm) 分享了这些圣诞颂歌。摘录片段如下：


这一段用的 [Chestnuts Roasting on an Open Fire](https://www.youtube.com/watch?v=dhzxQCTCI3E) 的曲调：



> 
> Running merrily on open source
> 
> 
> With users happy as can be
> 
> 
> We’re using Linux and getting lots done
> 
> 
> And happy everything is free
> 
> 
> 


这一段用的 [The Twelve Days of Christmas](https://www.youtube.com/watch?v=oyEyMjdD2uk) 的曲调：



> 
> On my first day with Linux, my admin gave to me a password and a login ID
> 
> 
> On my second day with Linux my admin gave to me two new commands and a password and a login ID
> 
> 
> 


在 [这里](http://www.computerworld.com/article/3151076/linux/merry-linux-to-you.html) 阅读完整的颂歌。


Linux 快乐！




---


via: <https://itsfoss.com/christmas-linux-wallpaper/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[jlztan](https://github.com/jlztan) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

It’s the holiday season, and many of you might be celebrating Christmas already.

From the team of It’s FOSS, I would like to wish you a Merry Christmas and a happy new year.

To continue the festive mood, I’ll show you some really awesome [Linux wallpapers](https://itsfoss.com/beautiful-linux-wallpapers/) on Christmas theme. I’ll share a few tips to give your Linux system a Christmas touch.

## Let it snow on your Linux desktop [for GNOME users]

Nothing makes Christmas more “Christmasy” than the snow flurries. If you are using GNOME, you can let it snow on your desktop as well.

Check [which desktop environment you use](https://itsfoss.com/find-desktop-environment/). If it is GNOME, then you can use extensions to drop snowflakes on your desktop.

If you are not familiar with it, please read my detailed [guide on using GNOME Extensions](https://itsfoss.com/gnome-shell-extensions/) first. Repeating the steps here will derail the topic.

There are three GNOME Extensions that make snow flurries on your desktop.

[Snow](https://extensions.gnome.org/extension/3912/snow/?ref=itsfoss.com)(last updated with GNOME Shell 4.42)[Let it Snow](https://extensions.gnome.org/extension/1547/let-it-snow/?ref=itsfoss.com)(Last updated with GNOME 4.44)[gsnow](https://extensions.gnome.org/extension/1156/gsnow/?ref=itsfoss.com)(last updated with GNOME 3.10)

While ‘Let it Snow’ has more features where you can control the number of snowflakes or make it not snow on the active window, the Snow extension doesn’t have any configuration options.

You just have to activate this extension and enable it to make the snow fall on your desktop.

![Snow On Linux Desktop](https://itsfoss.com/content/images/wordpress/2020/12/snow-on-linux-desktop.jpg)

[keep an eye on the system stats with the task manager in Linux](https://itsfoss.com/task-manager-linux/). Disable the extension if you see high CPU usage with the extension. You don't want the snow to melt with the hot computer, do you? 😉

## Change terminal prompts with Christmas goodies [For expert users]

Here’s another way for Christmas makeover. Change the prompt with Christmas tree, snowflake and gifts.

![Linux Terminal Christmas](https://itsfoss.com/content/images/wordpress/2020/12/linux-terminal-christmas.png)

Now, **if you are not too comfortable with the terminal, I suggest skipping it**. If you are a regular Linux command line pro who knows what’s .bashrc file and how to edit these files in the terminal, here’s what you need to do.

Copy this code:

```
# print the git branch name if in a git project
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)//'
}
# set the input prompt symbol
ARROW="❯"
# define text formatting
PROMPT_BOLD="$(tput bold)"
PROMPT_UNDERLINE="$(tput smul)"
PROMPT_FG_GREEN="$(tput setaf 2)"
PROMPT_FG_CYAN="$(tput setaf 6)"
PROMPT_FG_YELLOW="$(tput setaf 3)"
PROMPT_FG_MAGENTA="$(tput setaf 5)"
PROMPT_RESET="$(tput sgr0)"
# save each section prompt section in variable
PROMPT_SECTION_SHELL="\[$PROMPT_BOLD$PROMPT_FG_GREEN\]\s\[$PROMPT_RESET\]"
PROMPT_SECTION_DIRECTORY="\[$PROMPT_UNDERLINE$PROMPT_FG_CYAN\]\W\[$PROMPT_RESET\]"
PROMPT_SECTION_GIT_BRANCH="\[$PROMPT_FG_YELLOW\]\`parse_git_branch\`\[$PROMPT_RESET\]"
PROMPT_SECTION_ARROW="\[$PROMPT_FG_MAGENTA\]$ARROW\[$PROMPT_RESET\]"
# set the prompt string using each section variable
PS1="
🎄 $PROMPT_SECTION_SHELL ❄️ $PROMPT_SECTION_DIRECTORY 🎁 $PROMPT_SECTION_GIT_BRANCH 🌟
$PROMPT_SECTION_ARROW "
```


And add it to the end of your ~/.bashrc file. Save the file, close it and then open another terminal window or shell. You should have a changed command line prompt now.

To get back to normal, delete those lines you added from the ~/.bashrc file.

## Display Christmas Tree in Linux Terminal (Bash script)

If you want to display an animated Christmas tree in the terminal, you can use the command below:

```
curl https://raw.githubusercontent.com/sergiolepore/ChristBASHTree/master/tree-EN.sh | bash
```


If you don’t want to get it from the internet all the time, you can get the shell script from its GitHub repository, change the permission and run it like a normal shell script.

[Download Christmas Bash Tree Script](https://github.com/sergiolepore/ChristBASHTree?ref=itsfoss.com)

## Display Christmas Tree in terminal using Python script

Another similar CLI tool but written in Python this time.

Download or clone the project's GitHub repository. You'll have a `terminal_tree.py`

file here.

Open a terminal, switch to the directory where you have cloned/downloaded the repository.

Run the Python script:

`python terminal_tree.py`


You'll have the Christmas Tree animation running in the terminal. **Press Ctrl+C to stop it**.

## Display Christmas Tree in Linux terminal using Perl script

![Christmas Tree in Linux terminal by NixCraft](https://itsfoss.com/content/images/wordpress/2016/12/perl-tree.gif)

This trick was originally shared by [NixCraft](https://www.cyberciti.biz/open-source/command-line-hacks/linux-unix-desktop-fun-christmas-tree-for-your-terminal/?ref=itsfoss.com). You’ll need to install a Perl module for this.

To be honest, I don’t like using Perl modules because uninstalling them is a real pain. So **use this Perl module knowing that you’ll have to manually remove it**.

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


You can read the original article [here](https://www.cyberciti.biz/open-source/command-line-hacks/linux-unix-desktop-fun-christmas-tree-for-your-terminal/?ref=itsfoss.com) to know more about it.

## Treefetch: Like Neoftech but with Christmas Tree

You are probably familiar with the [Neofetch](https://itsfoss.com/using-neofetch/) command line tool. It shows the ASCII logo of your distro along with some details about the currently installed system.

Treefetch is similar. Only, you display a Christmas tree instead of distro logo. And the colors are also more into Christmas spirit.

![Treefetch for Christmas Decoration](https://itsfoss.com/content/images/2023/12/neoftech-christams.png)

Some distributions have the treefetch package available from their repository. You can get more information on project's GitHub repository page.

## Download Linux Christmas Wallpapers

All these Linux Christmas wallpapers are created by Mark Riedesel and you can find plenty of other artwork on [his website](http://www.klowner.com/?ref=itsfoss.com).

He has been making such wallpapers almost every year since 2002. Quite understandably, some of the earliest wallpapers don’t have modern aspect ratio. I have put them up in reverse chronological order.

One tiny note. ** The images displayed here are highly compressed, so download the wallpapers from the provided link only**.

![Christmastux2019](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2019.jpeg)

![Christmas Tux Wallpaper](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2018.jpeg)

![Christmas Linux Wallpaper](https://itsfoss.com/content/images/wordpress/2016/12/christmas-linux-wallpaper-featured-800x450.jpeg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2016_3840x2160_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2015_2560x1920_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2014_2560x1440_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/christmastux2013_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2012_2560x1440_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/christmastux2011_2560x1440_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/christmastux2010_5120x2880_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2009_1600x1200_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2008_2560x1600_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2007_2560x1600_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2006_1024x768_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2005_1600x1200_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2004_1600x1200_result.jpg)

![Christmas Linux Wallpapers](https://itsfoss.com/content/images/wordpress/2016/12/ChristmasTux2002_1600x1200_result.jpg)

## Bonus: Linux Christmas carols

Here is a bonus for you. Christmas carols Linuxified for Linux lovers like us.

In [an article on Computer World](http://www.computerworld.com/article/3151076/linux/merry-linux-to-you.html?ref=itsfoss.com), [Sandra Henry-Stocker](https://twitter.com/bugfarm?ref=itsfoss.com) shared such Christmas carols. An excerpt:

To the tune of: [Chestnuts Roasting on an Open Fire](https://www.youtube.com/watch?v=dhzxQCTCI3E&ref=itsfoss.com)

Running merrily on open source

With users happy as can be

We’re using Linux and getting lots done

And happy everything is free

To the tune of: [The Twelve Days of Christmas](https://www.youtube.com/watch?v=oyEyMjdD2uk&ref=itsfoss.com)

On my first day with Linux, my admin gave to me a password and a login ID

On my second day with Linux my admin gave to me two new commands and a password and a login ID

You can read full carols [here](http://www.computerworld.com/article/3151076/linux/merry-linux-to-you.html?ref=itsfoss.com). If you want Tux avatar in the reindeer format, check out [this repository](https://github.com/karinkasweet/linux-penguin-tux?ref=itsfoss.com).

Merry Linux to you!!