Arch Linux 高分屏缩放方案

linux 下高分屏适配当前在 macos/windows/Linux 中的排位尚属末尾,采用整数倍缩放效果尚好(例如 100%、200%),但是若是使用非整数倍缩放(125%、175%)常常...

March 2, 2023 · 1 分钟 · 228 字 · Tianlun Song

PVE 批量创建、配置虚拟机 IP、网卡、启停及销毁

# 从模版批量派生,100 虚拟机仅需2 min for i in {001..128}; do qm clone 336 11$i --name stl-ceph-bare-node$i --pool stl-ceph-cluster2; done # 使用 cloud-init 批量配置 ip,需在模版提前装好 cloud-init 软件包并添加设备 for i in {1..128}; do num=`echo $i | awk...

February 8, 2023 · 1 分钟 · 125 字 · Tianlun Song

iptables 设置默认规则

设置默认的规则 iptables -P INPUT DROP # 配置默认的不让进 iptables -P FORWARD DROP # 默认的不允许转发 iptables -P OUTPUT ACCEPT # 默认的可以出去 参考文献 iptables - Linux man

January 31, 2023 · 1 分钟 · 53 字 · Tianlun Song

m1 MacBook 安装 asahi linux 磁盘调整失败解决

尝试在 MacBook Air m1 安装 asahi linux ,在磁盘分区过程遭遇报错,具体过程没有留下来,是类似这样的报错: error: doc-id tree: record exists for doc-id 64, file-id 9665861 but no inode references this doc-id 大致解决是要进恢复模式,...

January 10, 2023 · 1 分钟 · 183 字 · Tianlun Song

Linux 禁用 SWAP

在服务器和容器平台建议关闭 SWAP,避免内存交换影响服务器性能,甚至引发数据丢失。 一、不重启电脑,禁用启用swap,立刻生效 # 禁用命令 sudo swapoff -a...

January 6, 2023 · 1 分钟 · 248 字 · Tianlun Song