Batch 9: Obsidian插件/AI开源平替/Coze培训/TK面单/Ubuntu科学上网

- Sources: 5个新文档
- Concepts: ProxyChains, SOCKS5代理, Docker Daemon代理
- Index: 更新至 Batch 9
- 累计 sources: 108/182
This commit is contained in:
2026-04-16 06:36:36 +08:00
parent 33c63d34dd
commit e62797a33a
51 changed files with 1740 additions and 56 deletions

View File

@@ -0,0 +1,42 @@
---
title: "Mac Mini 服务器配置:防止自动锁屏与睡眠"
type: source
tags: [macos, server, homelab, remote-access]
date: 2026-03-15
---
## Source File
- [[raw/Home Office/Mac-Mini-服务器配置-防止自动锁屏与睡眠.md]]
## Summary
- 核心主题Mac Mini 作为无头服务器运行时,防止自动锁屏和睡眠的配置方案
- 问题域:关闭显示器后 Mac Mini 自动锁屏或进入睡眠导致远程桌面RustDesk/VNC无法连接
- 方法/机制:`pmset` 系统电源管理命令集;`caffeinate` 临时防止睡眠工具
- 结论/价值:通过 `pmset -a sleep 0 displaysleep 0 standby 0 hibernatemode 0` 彻底关闭睡眠,配合 WOL 实现远程唤醒
## Key Claims
- `pmset -a sleep 0` 禁止系统睡眠,`-a` 参数表示应用于所有电源模式(电池和电源适配器)
- `pmset -a displaysleep 0` 禁止显示器关闭,适合接显示器远程访问场景
- `pmset -a standby 0` 禁止待机模式(内存供电暂停)
- `pmset -a hibernatemode 0` 禁止休眠(内存镜像保存至磁盘)
- `pmset -a womp 1` 启用网络唤醒WOLWake-on-LAN远程开机
- `caffeinate -d -i -s` 临时防止睡眠,不修改系统设置,按 Ctrl+C 停止
## Key Concepts
- [[pmset]]macOS 系统电源管理命令行工具
- [[caffeinate]]macOS 临时防止系统睡眠的工具
- [[WOL]]Wake-on-LAN网络唤醒协议
## Key Entities
- [[Mac Mini]]Apple Mac Mini作为家庭服务器使用
## Connections
- [[Mac Mini]] ← 配置目标 ← [[pmset]]
- [[pmset]] ← 临时方案 ← [[caffeinate]]
## Contradictions
-
## Metadata
- 来源:个人实践笔记
- 标签macos、server、homelab、remote-access