hackerbs's Blog - 探索知识的宇宙

hackerbs's Blog - 探索知识的宇宙

本文将持续更新Debian系统的各类基础知识,欢迎您持续关注,有任何问题可以在本页末尾评论或通过展示的联系方式联系我

根据红帽的公告,CentOS将不再适合作为生产环境的稳定系统使用,为此我个人建议您尝试著名且优秀的Debian系统

阅读全文 »

相变硅脂(相变)原理

相变(Phase Change)是物质从一种物理状态转变为另一种状态的过程,通常涉及到固态、液态和气态之间的转变。相变过程发生时,物质的温度保持不变,而是在改变物质状态的同时吸收或释放潜热(latent heat)。潜热是单位质量物质在相变过程中吸收或释放的热量,它是相变过程中热量变化的主要来源。

通俗解释:一杯水中放2块冰块,冰块完全融化前水温始终0度,形态未完全转化前,温度不变

相变硅脂特点

相变特性使得相变硅脂片拥有更长的寿命,更优的散热稳定性,相变硅脂片高温相变时液化的表面可以排出空气使得硅脂更加贴合散热元件表面

以霍尼韦尔PTM7950相变片为例,150℃的温度下不会完全相变液化,仅表面相变液化,增加贴合度的情况下不整体液化流动,温度稳定导热高效,官方参数导热率8.5W/mk热阻0.04℃cm²/W

NAS是什么?

NAS,全称Network Attached Storage,翻译成中文就是网络附加存储。简单来说,它就是一个连接到网络上的存储设备,可以让多台电脑、智能手机、平板电脑等设备通过网络访问和共享存储空间。

阅读全文 »

查询ssh登陆日志的办法

journalctl _COMM=sshd可以查看sshd所有日志

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 查询ssh登陆失败总次数
journalctl _COMM=sshd | grep Failed |wc -l

#查询ssh登陆成功总次数
journalctl _COMM=sshd | grep Accepted |wc -l

#查询被多少不同IP爆破了
journalctl _COMM=sshd | grep "Failed" | awk '{print $(NF-3)}' | sort -u | wc -l

# 列出爆破你的IP
journalctl _COMM=sshd | grep "Failed" | awk '{print $(NF-3)}' | sort -u

# 列出成功登陆的IP
journalctl _COMM=sshd | grep -E "Accepted" | awk '{match($0, /([0-9]+\.){3}[0-9]+/); print substr($0, RSTART, RLENGTH)}' | sort -u
阅读全文 »


本文章所有命令均在YgeCloud进行实测并列出了各种BUG,本文涉及的命令均为Linux KVM QEMU虚拟化通用命令,如命令有不兼容十分拜托您务必联系我修正文章!十分感谢!

以下命令中10.0.1.$i是因为本次批量部署节点均在10.0.1.0/24段,需自行修改为你节点所在网段,如192.168.100.$i

批量创建网卡适用于如本次部署一样的情况,如外网网线统一连接到enp6s0网口,然后桥接到vmbr1给虚拟机连接使用,请根据你的情况自行修改

批量加集群

阅读全文 »

操作系统源

使用源时务必注意版本

若你的系统不是最新版,可以使用snullp大佬开发的配置生成器

中科大debian apt源(最新debian12 bookworm版)

我个人觉得中科大源更好些,且在中科大下载iso也比清华快些,如需使用清华源,将ustc替换为tuna.tsinghua即可,其他配置同理

1
2
3
4
5
6
7
8
9
10
11
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware

deb https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.ustc.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware
阅读全文 »