增加组织人员缺失;黑苹果折腾

This commit is contained in:
zeaslity
2026-06-17 09:39:02 +08:00
parent 0f6e0d70f5
commit 5d5072e18c
11 changed files with 620 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
我有一台ubuntu 26.04 desktop
服务器位于中国大陆境内
我有详细的clash verge的内容
你需要给出详细的操作流程,将其打造为开发工作中心
1. 镜像加速源头,例如清华源等国内速度快的源
2. APP Center的源需要修改为国内的源
3. 需要安装好用的中文输入法
4. 页面显示修改为简体中文,用户目录不要修改,即终端不要修改
5. 终端需要安装oh my zsh和好用的插件
6. 开发工具需要安装 git idea antigravity codex-desktop claude code desktop等开发工具
请给出软件管理方式的内容app center是否使用的snapd的包管理工具
请你帮我搜索最好用的中文输入法及安装办法

View File

@@ -0,0 +1,35 @@
背景说明:
1. 我现在windows11专业版的联想R9000P笔记本电脑
2. 我重新安装了 windows 11 ltsc的台式机电脑现在想把工作的主力迁移到台式机电脑
基本条件
1. 台式机会安装clash verge配置tun模式保证网络的畅通
需求
1. 需要迁移完整的微信聊天历史记录到台式机
2. 需要同步一些文件目录到台式机
3. 台式机需要有先进的包管理工具进行开发环境的安装考虑uniget能否满足需求
4. 同步windows远程桌面的连接配置现在笔记本有大量的远程桌面连接记录需要迁移到台式机
5. 台式机是精简版的系统我需要开启WSL2进行开发
6. 安装的开发工具需要有限考虑国内的镜像加速
7. window输入法的用户短语需要导出到台式机
远景需求:
1. 从台式机远程控制苹果macos的方法及工具
2. 寻找windows最好用的终端工具是哪些我需要经常进行shell连接
你需要从专业的角度根据上述的需求,进行上述内容的完整流程,请分阶段进行
关于微信数据同步备份,你需要给我更加详细的操作及优雅的方式
dism /get-wiminfo /wimfile:D:\sources\install.wim
dism /online /enable-feature /featurename:VirtualMachinePlatform /all /source:D:\sources\install.wim /LimitAccess
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all `
/source:D:\sources\install.wim /LimitAccess

View File

@@ -0,0 +1,80 @@
# 替换 desktop_user 和台式机 IP
ssh-copy-id -i C:\Users\wddsh\.ssh\id_ed25519.pub wdd@192.168.1.194
# 或手动追加ssh-copy-id 若不可用)
cat C:\Users\wddsh\.ssh\id_ed25519.pub | ssh wdd@192.168.1.194 \
"mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
# 验证免密登录
ssh -i C:\Users\wddsh\.ssh\id_ed25519 wdd@192.168.1.194 "echo SSH OK"
cat >> C:\Users\wddsh\.ssh\config << 'EOF'
Host wdd-pink-station
HostName 192.168.1.194
User wdd
IdentityFile C:\Users\wddsh\.ssh\id_ed25519
ServerAliveInterval 60
ServerAliveCountMax 3
EOF
chmod 600 ~/.ssh/config
# 验证简写连接
ssh wdd-pink-station "echo Connected"
#!/usr/bin/env bash
set -euo pipefail
# ── 配置区 ────────────────────────────────────────────────
SRC="/c/Users/wddsh/Documents/xwechat_files"
REMOTE_HOST="wdd-pink-station" # 对应 ~/.ssh/config 中的 Host
REMOTE_DST="/c/Users/wdd/wechat_files/xwechat_files"
LOG_DIR="/c/Users/wddsh/wechat_backup/logs"
LOG_FILE="${LOG_DIR}/wechat_sync_$(date +%Y%m%d).log"
# ─────────────────────────────────────────────────────────
mkdir -p "$LOG_DIR"
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*" | tee -a "$LOG_FILE"
}
log "======== 微信数据同步开始 ========"
# ── 检测微信是否运行 ──────────────────────────────────────
if tasklist.exe 2>/dev/null | grep -qi "Weixin.exe"; then
log "警告:微信正在运行,跳过 db_storage数据库锁定中"
EXCLUDE_DB="--exclude=db_storage/"
else
log "微信未运行,全量同步数据库"
EXCLUDE_DB=""
fi
# ── rsync 同步 ────────────────────────────────────────────
rsync -avz \
--progress \
--partial \
--delete \
--exclude="temp/" \
--exclude="cache/" \
--exclude="apm_record/" \
--exclude="*.lock" \
${EXCLUDE_DB} \
-e "ssh -F ~/.ssh/config" \
"${SRC}/" \
"${REMOTE_HOST}:${REMOTE_DST}/" \
2>&1 | tee -a "$LOG_FILE"
EXIT_CODE=${PIPESTATUS[0]}
if [ $EXIT_CODE -eq 0 ]; then
log "同步成功完成 ✓"
else
log "同步失败rsync 退出码: $EXIT_CODE"
fi
# ── 清理 30 天前日志 ──────────────────────────────────────
find "$LOG_DIR" -name "wechat_sync_*.log" -mtime +30 -delete 2>/dev/null
log "======== 同步结束 ========"

View File

View File