← 返回
AI智能

Pi Admin

Raspberry Pi system administration. Monitor resources, manage services, perform updates and maintenance.
树莓派系统管理:监控资源、管理服务、执行更新与维护。
thesethrose
AI智能 clawhub v1.0.0 1 版本 99560.8 Key: 无需
★ 6
Stars
📥 3,734
下载
💾 754
安装
1
版本
#latest#monitoring#raspberry-pi#system-admin

概述

Raspberry Pi Administration

Complete system monitoring and introspection for the Raspberry Pi host. Access network details, system resources, storage, services, and more.

When to Use

  • Checking Pi network configuration (IP, Tailscale)
  • Monitoring system resources (CPU, memory, storage)
  • Viewing running services and their status
  • Checking temperature and hardware info
  • Troubleshooting system issues
  • Getting system overview for debugging

Usage

# Information Commands
cd /home/srose/clawd/skills/pi-admin
./skill.sh overview
./skill.sh network
./skill.sh tailscale
./skill.sh resources
./skill.sh storage
./skill.sh services
./skill.sh hardware

# Maintenance Commands
./skill.sh update       # Update system packages
./skill.sh clean        # Clean unused packages, logs, Docker
./skill.sh reboot       # Reboot with countdown
./skill.sh restart-gateway  # Restart the Clawdis Gateway

# Complete system info
./skill.sh all

Tools Available

ToolDescription
-------------------
overviewQuick system summary
networkIP addresses, hostname, network interfaces
tailscaleTailscale status, IP, peers
resourcesCPU, memory, temperature
storageDisk usage, mount points
servicesRunning services, Gateway status
hardwareCPU info, Raspberry Pi model, GPU
allComplete detailed dump

Examples

# Quick system check
./skill.sh overview

# Debug network issues
./skill.sh network && ./skill.sh tailscale

# Check if Gateway is running
./skill.sh services | grep gateway

# Monitor disk space
./skill.sh storage

Information Collected

Network:

  • Hostname
  • Local IP addresses (eth0, wlan0)
  • Network interface details
  • DNS configuration

Tailscale:

  • Status (running/stopped)
  • Tailscale IP
  • Connected peers
  • Exit node status

Resources:

  • CPU usage
  • Memory usage (used/free/total)
  • CPU temperature
  • Uptime

Storage:

  • Disk usage by mount point
  • Inode usage
  • Free space

Services:

  • Gateway service status
  • Docker containers
  • Systemd services
  • Port listeners

Hardware:

  • CPU model and cores
  • Raspberry Pi model
  • GPU memory
  • Total RAM

Maintenance Commands

update

Update system packages via apt:

  • Updates package lists
  • Shows upgradable packages
  • Requires confirmation before upgrading
  • Reports if reboot is needed
  • Dry run: ./skill.sh update --dry-run shows what would be updated

clean

Clean up system to free disk space:

  • Removes unused packages (autoremove)
  • Clears package cache
  • Cleans old journal logs (keeps 7 days)
  • Optionally cleans Docker artifacts
  • Shows space saved
  • Dry run: ./skill.sh clean --dry-run shows what would be cleaned

reboot

Graceful system reboot:

  • 10-second countdown
  • Ctrl+C to cancel
  • Uses systemctl reboot
  • Dry run: ./skill.sh reboot --dry-run shows countdown without rebooting

restart-gateway

Restart the Clawdis Gateway service:

  • Stops all running gateway processes
  • Starts fresh gateway on port 18789
  • Confirms port is listening
  • Shows access URLs
  • Dry run: ./skill.sh restart-gateway --dry-run shows what would happen

optimize

Apply safe system optimizations:

  • Disable Bluetooth service (~50MB RAM saved)
  • Disable ModemManager (~30MB RAM saved)
  • Disable Avahi/Zeroconf (~20MB RAM saved)
  • Set swappiness to 10 (better RAM utilization)
  • Dry run: ./skill.sh optimize --dry-run shows what would change
  • Undo: ./skill.sh optimize --undo reverts all changes

Total RAM savings: ~100MB

Reversibility: Yes, use --undo flag to revert

Note: All maintenance commands require sudo and ask for confirmation before making changes. Use --dry-run flag to preview changes without applying them.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 11:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Marketing Mode

thesethrose
{"answer":"营销模式整合23项全能技能,涵盖策略、心理、内容、SEO、转化优化及付费增长。适用于营销策略、文案、SEO、转化优化、付费广告及各类营销战术需求。"}
★ 159 📥 24,783
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,350 📥 317,715
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,056 📥 796,111