宵待夜雨的博客

Archives

2026 / 03

2026-03-06

下载安装  irm get.scoop.sh -outfile 'install.ps1' 设置位置  .\install.ps1 -ScoopDir 'H:\Scoop' -ScoopGlobalDir 'H:\Scoop\apps'  -ScoopCacheDir 'H:\Scoop\cache

2026 / 01

在 Ubuntu 系统中,默认出于安全考虑禁用 root 用户直接登录(包括本地和远程)。但如果你确实需要启用 root 登录(例如用于服务器运维、开发测试等场景),可以按以下步骤分别配置 SSH 远程登录 和 图形界面(桌面)登录。 ✅ 一、启用 root 用户(设置密码) Ubuntu 默认 r

2025 / 12

查看 k3s 是否处于健康状态 先看看 server 端日志: sudo journalctl -u k3s -f 如果看到: x509: certificate has expired or is not yet valid tls: failed to verify client certif

2025 / 07

sudo apt-get update && sudo apt-get install qemu-guest-agent sudo systemctl start qemu-guest-agent && sudo systemctl enable qemu-guest-agent
apiVersion: v1 data: use-forwarded-headers: 'true' # 主要配置 proxy-real-ip-cidr: 0.0.0.0/0 # 备选 kind: ConfigMap metadata: annotations: {} labels:

2025 / 06

2025-06-19

修改镜像源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ 安装SSH sudo apt update sudo apt install openssh-server sudo systemctl start ssh sudo systemctl
Get-ChildItem -Recurse -File | Where-Object {$_.Length -eq 0} | Remove-Item Get-ChildItem -Recurse -File | Where-Object { $_.Length -eq 334 } | Remove

2025 / 05

当前目录修改 Get-ChildItem *.jpg | Rename-Item -NewName { $_.Name -replace '\.jpg$', '.png' } 当前目录及其所有子文件 Get-ChildItem -Path . -Recurse -Filter *.jpg | Ren
Get-ChildItem -Path F:\HsxWorkpace -Recurse -Force -Directory -Filter 'node_modules' | Remove-Item -Recurse -Force

2024 / 11

PVE
Proxmox VE直通硬盘相对简单。有2种方式的实现。 1、RDM (裸磁盘映射) RDM是引用于VMware的裸磁盘映射。 参考https://kb.vmware.com/s/article/1017530?lang=zh_CN。 将单个硬盘或者分区,通过qemu进行映射到虚拟机。在KVM上没有
Previous Next