未知狐 发布的文章

 我把整个目录(其实就俩压缩好的tar.gz文件)重新压成tar.gz
 本来想电脑下载,结果发现......服务器上传带宽太低了600MB的文件阿里学生机1Mbps得下载到多久啊,于是SSH连上我家云。

apt install wget
...........(armbian里没有自带wget,倒是编辑器nano和vim都很齐全。)
wget -b https://xfox.fun/backup/homebackup.tar.gz
//文件很大一时半会下载不完所以用-b 参数
Continuing in background, pid 12804.
Output will be written to ‘wget-log’.
//查看后台文件下载状态
root@Chainedbox:/home# tail -f wget-log
6800K .......... .......... .......... .......... .......... 1% 176K 75m26s
6850K .......... .......... .......... .......... .......... 1% 77.3K 75m52s
6900K .......... .......... .......... .......... .......... 1% 280K 75m35s

环境:我家云 (Debian Buster with Armbian Linux 5.3.0-rockchip64)

失败的方法:

在我的设备上实测不生效,手动改了也自动秒恢复,实际上就是存在某些问题压根改不了。
查看风扇状态:cat /sys/class/thermal/cooling_device0/cur_state
启用风扇; echo 1 > /sys/class/thermal/cooling_device0/cur_state
关闭风扇: echo 0 > /sys/class/thermal/cooling_device0/cur_state

成功方案

参考了:恩山论坛原贴

#!/bin/bash
#甜糖监控进程存在&自动唤起&日志记录脚本
d=`date '+%F %T'`;
num=`ps fax | grep '/ttnode' | egrep -v 'grep|echo|rpm|moni|guard' | wc -l`;
echo $num;
if [ $num -lt 1 ];then
 echo "[$d] ttnode is dead...restarting" >> /usr/ttnode/log.log ;
 echo "[$d] ttnode is dead...restarting";
 mount -o,remount,rw /dev/sda1 /mnts
 /usr/ttnode/ttnode_172 -p /mnts;
fi

#温控风扇(大于40度开转小于45度停止)每次开转前有反复启停转动三次作为提示。

if [ -n "$1" ]; then
max=$1
else
max=45000
fi
if [ -n "$2" ]; then
min=$2
else
min=40000
fi
echo $max, $min
#(只是为了方便关闭调试的时候打开的东西才多了这句) echo 70 > /sys/class/gpio/unexport 
echo 70 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio70/direction
i=0
for j in 1 2 3 4 5 6
do
echo $i > /sys/class/gpio/gpio70/value
i=$(( 1 - $i ))
sleep 2
done
while true
do
t=`/bin/cat /sys/class/thermal/thermal_zone0/temp`
if [ $t -gt $max ]; then
  echo 1 > /sys/class/gpio/gpio70/value
  echo "$t > $max"
fi
if [ $t -lt $min ]; then
  echo 0 > /sys/class/gpio/gpio70/value
  echo "$t < $min"
fi
sleep 10
done
echo 70 > /sys/class/gpio/unexport


这是我唯一一个没有勾选“仅自己可见”的自述性文章
我喜欢IT?我说过吗?没有吧!
我不喜欢IT,我只是喜欢,有人能和你在一起说同一个你不反感的话题。
我觉得家长最搞笑的就是跟我讲不要谈恋爱不要谈恋爱,我真的有谈过吗?这么急着让我别谈,你以为我多想谈啊?我只是不想一个人走完所有路,我期盼有人能陪我走下去,一个本来不无趣的人为什么会变的无趣,我不想这样,可是现实就是我就是没什么好说的,我想说点什么,可又不知道该说什么。
我不清楚那些谈恋爱的男女心里为了什么,可能就是所谓“喜欢”,到底喜欢对方什么,肉体还是精神,谁知道,这跟我没关系,我也猜不透。我只知道自己会有和正常人一样性冲动,但这也没让我得到什么别人因此得到好处。少男少女们天天说找对象,对象是个什么东西?object在编程上是一个概念,我理解为一个可操作的“物体”。
这就让我想起来我为什么会更喜欢编程,因为每一行代码都不会骗你,你写echo hellworld绝不会输出一个goodbyeworld。
你可以确保自己写下计算机程序不会欺骗自己,可是你没法保证你身边的人不会骗你。
社交的障碍到底是什么?我知道自己一条路就走到黑,但是我知道我还是会这么做,不为了别的,只是为了有一个自己和别人都喜欢的东西,只是为了大家都有别人喜欢的东西。蜷缩在IT小圈子里很容易,可和他们沟通的成本我却负担不起。
我经常嘲讽别人,钱是买不来感情的,其实是嘲讽我自己,花钱买硬件为了更好的扎进IT的圈子,为了和“志同道合”的人开开心心聊一聊,为了在新人面前指点迷津,为了所有的所有一切的一切。
说到底,我就是在试图用钱换感情。
总是觉得做人很累啊,因为很少有人能和自己交流啊,社交越困难,越不想社交,越想说话,可说不了,就越说不出来。这个死循环,在编程上不会实现,你的IDE会报错。好笑吧,活了十几年的人生,还不如一个IDE看着舒坦。
总会把自己折腾的很累,我喜欢抱着自己喜欢的女生,不是因为贴着人家胸多舒坦(可能某些好色之徒也就为了这吧),只是因为抱着的时候,我知道自己怀里的人不会把自己撇下跑掉。
我害怕被抛弃,我曾经隔着很短时间一遍又一遍的问她“你不会丢下我吧......”
她说“不会”,可是她也说过“没人能陪你一辈子”,我想如果我的一辈子比她短很多那就存在“她陪我一辈子”的可能了吧?也许别人会笑,但是这句话真的有问题吗?
当然,这么做显然不被身边的大部分人认可,社会责任和义务也不会允许我给社会添麻烦。
但愿吧,努力,和自己喜欢的人待更久......
喜欢,爱,这样的词不应该随便被定义。
社交困难没人能替我解决,我不知道自己能变成什么样子,只是希望不是自己讨厌的样子吧。
至于究竟未来如何,时间会告诉所有人问题的答案。

刷机包:

锐芯微驱动和工具: https://cloud.189.cn/t/ze6VRr7JvuMb (访问码:v1vu)
刷机镜像和免拆机短接的boot文件:
(里面的两个镜像包是一样的tar.gz只是压缩的更小,实际使用还是需要解压出.img文件)
https://cloud.189.cn/t/UjIBrm6nQNfm (访问码:1iam)

教程以后补

当前固件集成服务/功能:

OpenMediaVault控制台面板 http://omv:88/ 账号admin/密码omv //首次启动请设定磁盘挂载;
Jellyfin/EMBY/Plex媒体服务器 http://omv:8096/ 账号omv/密码omv //首次启动请设定媒体库扫描文件夹;
BT/PT下载器 http://omv:9091/ 账号admin/密码omv //首次启动内部下载数据请清除;
Web|SHH终端 http://omv:4200 账号root/密码1234 //首次启动 请按提示设定;
我的电脑File Browser文件管理 http://omv:8088 账号admin/密码omv
//管理系统所有文件,非专业人士勿动;
Docker控制器 云音乐|点播 电子相册|图床
WebUI仪表盘
易有云|同步
Aria2下载 进/opt/etc/aria2.conf修改密码;
PHP探针
百度云|网盘
Samba局域网windows文件共享服务
蓝奏云上传
可道云|云端办公
抖音and快手随机看小姐姐 (感觉这个毫无必要,有空我去了这无用的功能)
本地测速
公网测速

小插曲

修改root账户密码结果失败

root@omv:~# passwd
Enter new UNIX password: 
Retype new UNIX password: 
Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged

可能是文件权限问题吧
root@omv:~# lsattr /etc/passwd
--------------e---- /etc/passwd
root@omv:~# lsattr /etc/shadow
--------------e---- /etc/shadow
于是我就:
root@omv:~# chattr -i /etc/passwd
root@omv:~# chattr -i /etc/shadow
root@omv:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

**即便知道你很可能只是骗我,可还是那么心甘情愿。
最后一次喜欢一个女生......**

$_GET 变量 预定义的 $_GET 变量用于收集来自HTML表单中 method="get" 的表单中的值。
从带有 GET 方法的表单发送的信息,对任何人都是可见的(会显示在浏览器的地址栏),并且对发送信息的量也有限制。(不能超过 2000 个字符)

- 阅读剩余部分 -

原文:
[[Python-Dev] [RELEASE] Python 2.7.18, the end of an era][1]
Benjamin Peterson:

I'm eudaemonic to announce the immediate availability of Python
2.7.18.

Python 2.7.18 is a special release. I refer, of course, to the fact
that "2.7.18" is the closest any Python version number will ever
approximate e, Euler's number. Simply exquisite!

A less transcendent property of Python 2.7.18 is that it is the last
Python 2.7 release and therefore the last Python 2 release. It's time
for the CPython community to say a fond but firm farewell to Python 2.
Users still on Python 2 can use e to compute the instantaneously
compounding interest on their technical debt.

Download this unique, commemorative Python release on python.org:

https://www.python.org/downloads/release/python-2718/

Python 2.7 has been under active development since the release of
Python 2.6, more than 11 years ago. Over all those years, CPython's
core developers and contributors sedulously applied bug fixes to the
2.7 branch, no small task as the Python 2 and 3 branches diverged. There were large changes midway through Python 2.7's life such as PEP
466's feature backports to the ssl module and hash randomization.
Traditionally, these features would never have been added to a branch
in maintenance mode, but exceptions were made to keep Python 2 users
secure. Thank you to CPython's community for such dedication.

Python 2.7 was lucky to have the services of two generations of binary
builders and operating system experts, Martin von Löwis and Steve
Dower for Windows, and Ronald Oussoren and Ned Deily for macOS. The
reason we provided binary Python 2.7 releases for macOS 10.9, an
operating system obsoleted by Apple 4 years ago, or why the "Microsoft
Visual C++ Compiler for Python 2.7" exists is the dedication of these
individuals.

I thank the past and present Python release managers, Barry Warsaw,
Ned Deily, Georg Brandl, Larry Hastings, and Łukasz Langa for their
advice and support over the years. I've learned a lot from them—like
don't be the sucker who volunteers to manage the release right before
a big compatibility break!

Python 3 would be nowhere without the critical work of the wider
community. Library maintainers followed CPython by maintaining Python
2 support for many years but also threw their weight behind the Python
3 statement (https://python3statement.org). Linux distributors chased
Python 2 out of their archives. Users migrated hundreds of millions of
lines of code, developed porting guides, and kept Python 2 in their
brain while Python 3 gained 10 years of improvements.

Finally, thank you to GvR for creating Python 0.9, 1, 2, and 3.

Long live Python 3+!

Signing off, Benjamin
2.7 release manager

谷歌机翻:

我很高兴地宣布Python 2.7.18的立即可用性。

Python 2.7.18是一个特殊版本。我指的是“ 2.7.18”是
最接近的任何Python版本号都将近似为e,欧拉数。只是
精美!

Python 2.7.18的一个较小的超越属性是它是最新的Python 2.7版本
因此是最新的Python 2版本。是时候让CPython社区表示喜欢了
却告别了Python2。仍然使用Python 2的用户可以使用e来计算
即时增加其技术债务的利息。

在python.org上下载以下独特的纪念Python版本:

https://www.python.org/downloads/release/python-2718/

自Python 2.6发行以来,Python 2.7一直处于积极开发中,
11年前。在这些年中,CPython的核心开发人员和贡献者都认真从事
已将错误修复应用到2.7分支,这与Python 2和3分支一样不容易
发散。在python 2.7的生命中途发生了很大的变化,例如PEP 466的变化
将特性反向移植到ssl模块和哈希随机化。传统上,这些功能
永远不会以维护模式添加到分支,但是对
确保Python 2用户安全。感谢CPython社区的奉献精神。

Python 2.7幸运地拥有两代二进制生成器的服务,并且
操作系统专家,Windows的Martin vonLöwis和Steve Dower以及Ronald
Oussoren和Ned Deily适用于macOS。我们之所以提供二进制Python 2.7版本,是因为
macOS 10.9,4年前被苹果公司淘汰的操作系统,或者为什么“
适用于Python 2.7的Visual C ++编译器是这些人的奉献精神。

我感谢过去和现在的Python发布经理,Barry Warsaw,Ned Deily,Georg
多年来,Brandl,Larry Hastings和ŁukaszLanga均提供了建议和支持。我有
从他们那里学到了很多东西,例如不要成为自愿管理发布的傻瓜
就在兼容性大破坏之前!

没有更广泛社区的关键工作,Python 3将无处不在。图书馆
维护者遵循CPython并保持了对Python 2的多年支持,但同时也投入了
它们在Python 3语句(https://python3statement.org)后面的重要性。 Linux发行商将Python 2淘汰了
他们的档案。用户迁移了数亿行代码,开发了移植
指南,并将Python 2保留在大脑中,而Python 3获得了10年的发展
改进。

最后,感谢GvR创建Python 0.9、1、2和3。

Python 3+万岁!

签收,
本杰明
2.7版本管理器