lmy
1

在这圣诞来临的时刻,
各行各业都有自己的表达爱的方式。
还不知道给自己喜欢的人准备什么惊喜的,
赶快看过来!
学会这一招,今年圣诞,你就是朋友圈最靓的那个崽!

优麒麟研发小哥哥熬夜为大家送上宝典,
教大家如何在优麒麟上用代码画出圣诞树
送给心目中的她(他)!
助各位完美的度过这个圣诞,有手就会,快来看!
『圣诞树效果』
整个效果还是比较不错的,不需要图片素材,制作简单,还带有背景音乐。有没有心动?想不想拥有?
『执行圣诞树脚本』
接下来,请看详细步骤:
1、打开终端,下载脚本
$ wget -d -c “https://raw.githubusercontent.com/UbuntuKylin/share/main/christmas.sh”
2、给脚本添加可执行权限
$ chmod +x christmas.sh
3、运行脚本
$ ./christmas.sh
以上就是我们为大家准备的在优麒麟上画出圣诞树的方法,当然,大家也可以根据实际需求对脚本进行优化。欢迎大家分享 DIY 的飘雪圣诞树哦!
找不到 raw.githubusercontent.com 的服务器 IP 地址
解决方法:
修改Hosts临时解决GitHub的raw.githubusercontent.com无法链接
通过
https://ip.chinaz.com/www.ipaddress.com或
https://www.ipaddress.com/等网页查询
raw.githubusercontent.com真实IP地址
修改hosts 文件
$ sudo vi /etc/hosts
添加以下内容并保存即可
# GitHub Start
20.205.243.166 github.com
59.24.3.173 gist.github.com
192.30.255.116 api.github.com
185.195.108.153 assets-cdn.github.com
185.199.109.133 raw.githubusercontent.com
185.199.110.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.111.133 raw.githubusercontent.com
185.199.111.133 user-images.githubusercontent.com
185.199.111.133 gist.githubusercontent.com
185.199.111.133 cloud.githubusercontent.com
185.199.111.133 camo.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.111.133 avatars1.githubusercontent.com
185.199.111.133 avatars2.githubusercontent.com
185.199.111.133 avatars3.githubusercontent.com
185.199.111.133 avatars4.githubusercontent.com
185.199.111.133 avatars5.githubusercontent.com
185.199.111.133 avatars6.githubusercontent.com
185.199.111.133 avatars7.githubusercontent.com
185.199.111.133 avatars8.githubusercontent.com
# GitHub End