sudo apt instal mpv
sudo apt install mpv
sudo apt update
sudo autoclean
apt autoclean
apt --purge remmove
apt --purge remove
apt instlall python
apt install python
root
sudo poweroff
apt docker
apt instlall docker
apt install docker
sudo apt install apt-transport
sudo apt install gnome-terminal
sudo apt-get update
sudo apt-get install ./docker-desktop
sudo apt-get install ./docker-desktop-<version>-<arch>.deb
sudo apt install flatpak
sudo apt install gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Docker has specific installation instructions for each operating system.
# Please refer to the official documentation at https://docker.com/get-started/
# Pull the Node.js Docker image:
docker pull node:24-alpine
# Create a Node.js container and start a Shell session:
docker run -it --rm --entrypoint sh node:24-alpine
# Verify the Node.js version:
node -v # Should print "v24.2.0".
# Verify npm version:
npm -v # Should print "11.3.0".
sudo snap  install docker
docker run
--help
docker --help
ls
ls
npork
ls
python --version
ls
sudo apt update -y
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
mkdir miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
mkdir -p ~/miniconda3
ls
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
ls
cd miniconda
cd ..
cd miniconda3
ls
sudo chmod +x miniconda.sh 
./miniconda.sh 
cd ..
ls
rm -rf miniconda
cd miniconda3/
./miniconda.sh 
mv miniconda.sh ~/
cd ..
./miniconda
ls
./miniconda.sh
rm -rf miniconda3
./miniconda.sh
npm -v
node -v
ls
rm r-f miniconda
rm -rf miniconda.sh 
ls
cd miniconda3/
ls
cd ..
ls
sudo tailscale status
rpm -vhU https://nmap.org/dist/nmap-7.97-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/zenmap-7.97-1.noarch.rpm
rpm -vhU https://nmap.org/dist/ncat-7.97-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/nping-7.97-1.x86_64.rpm
sudo apt install rpm
ipconfig /all
clear
ls
rpm -vhU https://nmap.org/dist/nmap-7.97-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/zenmap-7.97-1.noarch.rpm
rpm -vhU https://nmap.org/dist/ncat-7.97-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/nping-7.97-1.x86_64.rpm
ifconfig /all
sudo apt install net-tools
ifconfig /all
ifconfig
nmap -v 192.168.3.199
sudo apt install nmap
ifconfig
nmap -v 1
nmap -v 192.168.3.114
nmap -Av 192.168.3.114
nmap -p0- -v -A 192.168.3.114
sudo apt install openssh
lsb_release -a
sudo apt install openssh-server
sudo lsof -l :22
sudo lsof -i :22
whoami
ls
sudo tailscale up
pythn --versino
python --versino
python --version
sudo apt install micro
ls
micro hell.py
python hell.py 
ls
rm -rf hell.py 
ls
curl -fsSL https://tailscale.com/install.sh | sh
sudo apt install curl -y
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
cd
help
info bush
info bash
git
commond -v 
ls usr/bin
ls usr/locla/bin
usr/
ls usr/
command -v git
git
command -v node
command -v docker
apt list
apt list --installed
apt list --installed | grep python
apt list --installed | grep docker
command -v docker
--version
docker --version
docker
pwd
PWD
pwd
ls
ls -l
ls -a
cd
cd comend
cd doc
cd music
cd musicis
cd desktop
cd douwnloads
cd downloads
cd Downloads
cd ~
cd /
mkdir test
sudo
conda config --set anto_activate_base false
exit
conda config --set auto_activate_base false
exit
pwd
ls
mkdir
mkdir test202601
touch test2026.text
hallo word!
touch test2026.txt
cat test2026.txt
pwd
ls
rm test2026.text
mv test2026.
mv test2026.txt 
nodejs
sudo apt install nodejs
node -v
npm -v
node
ndoe
node
npm -v
sudo apt update
npm -v
sudo apt install nodejs npm
npm -v
which node
which npm 
node -v
npm-v
npm -v
sudo snap remove node
which node
which npm
hash -r
node
which node
which npm
sudo snap remove node
sudo apt remove node
node
sudo snap remove node
sudo apt purge nodejs npm -y
sudo apt autoremove -y
sudo rm -rf /usr/lib/node_modules
rm -rf ~/.npm
rm -rf ~/.node-gyp
hash -f
hash -r
node -v
npm -v
node-v
npm -v
dpkg
dpkg -l
sudo netstart -tulpn
sudo netstat -tulpn
tailscale -v
dpkg --get-selections
sudo ~/Downloads 
sudo ~xiazai
cd ~/Downloads
cd ~/下载/
chmod +x port_risk_analyzer.sh
chmod +x check_remote_sofeware.sh
sudo bash check_remote_sofeware.sh
ls -l check_remote_software.sh
sudo ./check_remote_software.sh
sudo bash check_remote_software.sh
sudo snap remove nordvpn
sudo snap remove tailscale
tailscale
tailscale -v
which tailscale
sudo remove tailscale
tailscale
licenses
sudo systemctl stop tailscaled
sudo systemstl disable tailscaled
sudo apt remove tailscale -y
sudo rm -rf /var/lib/tailscale
sudo rm -rf/etc/tailscale
sudo rm -f /etc/apt/sources.list.d/tailscale.list
sudo nano /etc/ssh/sshd_config
sudo snap remove nordvpn
sudo cp /etc/ssh/sshd_config /etc/ssh/ssh_config.backup
sudo nano /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo ufw enable
sudo ufw allow 722/tcp
sudo sfw status verbose
sudo ufw status verbose
tailscale
nordvpn
openssh
sudo nano /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo ufw --force reset
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow from 127.0.0.1
sudo ufw enable
sudo ufw status verbose
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g openclaw@latest
opensclaw
openclaw
gateway
openclaw gateway
ls
openclaw
openclaw -dev gateway
openclaw gateway
如何开始？
curl -fsSL https://clawd.bot/install.sh | bash
openclaw status
openclaw
openclaw onboard
openclaw
setup
openclaw setup
openclaw configure
sudo restart openclaw
openclaw onboard
source /home/kuhnn/.bashrc
sudo systemctl disable --now ssh
sudo systemctl disable --now ssh.socket 2>/dev/null || true
ss -tulpen | grep ':22' || echo "




ss -tulpen | grep ':22' || echo
ss -tulpen | grep ':22' || echo "✅ 22 端口已关闭"
curl -fsSL https://claude.ai/install.sh | bash
claude
cd your-project
claude
claude -v
/login
claude
which claude
what does this project do?
curl -fsSL https://claude.ai/install.sh | bash
claude
cd /usr/kuhnn/文档/claudetest 
ls
/下载/test claude
/下载
claude
sudo wordpress.install
sudo snap install wordpress
openclaw --version
openclaw status
🦞 OpenClaw 2026.2.1 (ed4529e)
openclaw gateway status
chmod 700 /home/kuhnn/.openclaw/credentials
openclaw security audit
sudo apt update
sudo apt install -y git build-essential cmake ffmpeg
错误:1 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 libjsoncpp25 amd64 1.9.5-3
错误:2 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 librhash0 amd64 1.4.2-1ubuntu1
忽略:3 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 dh-elpa-helper all 2.0.9ubuntu1
忽略:4 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cmake-data all 3.22.1-1ubuntu1.22.04.2
错误:5 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cmake amd64 3.22.1-1ubuntu1.22.04.2
错误:3 http://gb.archive.ubuntu.com/ubuntu jammy/main amd64 dh-elpa-helper all 2.0.9ubuntu1
错误:4 http://gb.archive.ubuntu.com/ubuntu jammy-updates/main amd64 cmake-data all 3.22.1-1ubuntu1.22.04.2
E: 无法下载 http://gb.archive.ubuntu.com/ubuntu/pool/main/libj/libjsoncpp/libjsoncpp25_1.9.5-3_amd64.deb  无法发起与 ubuntu-mirror-2.ps5.canonical.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) 无法连接上 ubuntu-mirror-2.ps5.canonical.com:80 (185.125.190.82)，连接超时 无法发起与 ubuntu-mirror-1.ps5.canonical.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 ubuntu-mirror-3.ps5.canonical.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 ubuntu-mirror-3.ps6.canonical.com:80 (2620:2d:4002:1::103) 的连接 - connect (101: 网络不可达) 无法连接上 ubuntu-mirror-3.ps6.canonical.com:80 (91.189.91.83)，连接超时 无法发起与 ubuntu-mirror-2.ps6.canonical.com:80 (2620:2d:4002:1::102) 的连接 - connect (101: 网络不可达) 无法连接上 ubuntu-mirror-2.ps6.canonical.com:80 (91.189.91.82)，连接超时 无法发起与 ubuntu-mirror-1.ps6.canonical.com:80 (2620:2d:4002:1::101) 的连接 - connect (101: 网络不可达) 无法连接上 ubuntu-mirror-1.ps6.canonical.com:80 (91.189.91.81)，连接超时 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) [IP: 185.125.190.82 80]
E: 无法下载 http://gb.archive.ubuntu.com/ubuntu/pool/main/r/rhash/librhash0_1.4.2-1ubuntu1_amd64.deb  无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) [IP: 185.125.190.82 80]
E: 无法下载 http://gb.archive.ubuntu.com/ubuntu/pool/main/d/dh-elpa/dh-elpa-helper_2.0.9ubuntu1_all.deb  无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) [IP: 185.125.190.82 80]
E: 无法下载 http://gb.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake-data_3.22.1-1ubuntu1.22.04.2_all.deb  无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) [IP: 185.125.190.82 80]
E: 无法下载 http://gb.archive.ubuntu.com/ubuntu/pool/main/c/cmake/cmake_3.22.1-1ubuntu1.22.04.2_amd64.deb  无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::101) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::103) 的连接 - connect (101: 网络不可达) 无法发起与 gb.archive.ubuntu.com:80 (2620:2d:4000:1::102) 的连接 - connect (101: 网络不可达) [IP: 185.125.190.82 80]
E: 有几个软件包无法下载，要不运行 apt-get update 或者加上 --fix-missing 的选项再试试？
sudo mkdir -p /etc/apt/apt.conf.d
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
sudo apt update
sudo apt install -y git build-essential cmake ffmpeg
cd ~
git clone https://github.com/ggerganov/whisper.cpp
cd whisper.cpp
cmake -B build
cmake --build build -j
bash ./models/download-ggml-model.sh tiny
# 或
bash ./models/download-ggml-model.sh base
ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le input.wav
./build/bin/whisper-cli -m models/ggml-base.bin -f input.wav -l zh
openclaw gateway restart
openclaw browser status
openclaw browser start
openclaw
openclaw gateway
openclaw restart gateway
restart
-h
.help
openclaw -h
openclaw -dev gateway
openclaw gateway restart
openclaw gateway start 
openclaw gateway status     
openclaw health 
openclaw config 
which chromium-browser || which chromium || which google-chrome
which chromium-browser
sudo apt install -y chromium-browser
openclaw browser start --browser-profile openclaw
openclaw browser status
openclaw browser start --browser-profile openclaw
openclaw browser status --browser-profile openclaw
openclaw configure --section web
openclaw health                # 健康检查
[200~openclaw config                # 配置设置~
openclaw config               
openclaw gateway restart        # 重启服务
openclaw gateway restart
openclaw gateway start  
openclaw doctor                # 诊断配置问题
openclaw config                # 配置设置
openclaw gateway restart
openclaw config                # 配置设置
openclaw doctor
openclaw configure
openclaw gateway restart
openclaw gateway status
openclaw config  
openclaw gateway restart 
openclaw config 
openclaw doctor
openclaw config
openclaw gateway restart
openclaw
openclaw gateway~
openclaw gateway start
openclaw gateway status 
openclaw config 
openclaw doctor --fix
openclaw gateway restart
openclaw config
nano ~/.openclaw/openclaw.json
openclaw gateway restrat
openclaw gateway
openclaw gateway resatrt
openclaw gateway restart
openclaw gateway station
openclaw config
openclaw gateway restart
openclaw config
whisper
sudo apt install whipper
whisper
sudo apt update
sudo apt install -y ffmpeg python3-pip
pip3 install openai-whisper
python
debian python3
python
pip python
openclaw health
openclaw config
openclaw gateway restrat
openclaw gateway restart
openclaw configure --section web
openclaw gateway restart
openclaw doctor --fix
cat /home/kuhnn/.openclaw/openclaw.json
openclaw gateway restart
nano /home/kuhnn/.openclaw/openclaw.json
openclaw gateway restart
# 查看当前完整配置
cat /home/kuhnn/.openclaw/openclaw.json
nano /home/kuhnn/.openclaw/openclaw.json
openclaw doctor --fix
openclaw gateway restart
nano /home/kuhnn/.openclaw/openclaw.json
cat /home/kuhnn/.openclaw/openclaw.json
nano /home/kuhnn/.openclaw/openclaw.json
openclaw gateway
# 1. 备份（如果还没备份）
cp /home/kuhnn/.openclaw/openclaw.json /home/kuhnn/.openclaw/openclaw.json.backup
# 2. 替换配置
cp 下载的openclaw-fixed.json /home/kuhnn/.openclaw/openclaw.json
# 3. 重启服务
systemctl --user restart openclaw-gateway.service
# 4. 检查状态
openclaw doctor
# 5. 查看日志（如果还有问题）
journalctl --user -u openclaw-gateway.service -f
openclaw gateway
openclaw doctor
openclaw doctor --fix
# 直接设置 gateway.mode
openclaw config set gateway.mode local
# 然后重启服务
systemctl --user restart openclaw-gateway.service
# 等待几秒后检查状态
sleep 3
openclaw doctor
openclaw config
openclaw gateway restart
openclaw config
openclaw help
openclaw configure 
openclaw gateway restart
openclaw help
openclaw   status 
openclaw update
# 1. 检查 gateway 状态
openclaw doctor
# 2. 查看实时日志，看是否有错误
journalctl --user -u openclaw-gateway.service -f
# 3. 检查 MCP server 是否正常启动
ps aux | grep "one-search-mcp"
# 4. 测试一下 agent 是否能响应
openclaw chat "hello"
# 查看当前模型配置
cat /home/kuhnn/.openclaw/openclaw.json | grep -B 5 -A 5 "gpt-5.2"
# 修改为正确的模型，例如：
openclaw config set model "openai-codex/gpt-4-turbo"
# 或
openclaw config set model "openai-codex/gpt-4o"
# 或
openclaw config set model "openai-codex/o1"
openclaw config set model "openai-codex/gpt-4-turbo


openclaw config set model "openai-codex/gpt-4-turbo
openclaw config set model 
cat /home/kuhnn/.openclaw/openclaw.json | grep -A 3 "auth"
nano /home/kuhnn/.openclaw/openclaw.json
openclaw doctor
openclaw config
openclaw gateway restart
openclaw health
openclaw doctor
bash /home/kuhnn/.openclaw/workspace/deploy_ha.sh
bw login
openclaw gateway restart
openclaw station
yes
openclaw status
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew upgrade
qbrew upgrade
echo 'eval "$(/usr/local/bin/brew shellenv)"' >> ~/.zshrc
source ~/.zshrc
brew --version
openclaw status
openclaw gateway restart
openclaw status --all
openclaw stop
openclaw gateway stop
openclaw
openclaw gateway start
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.backup
nano ~/.openclaw/openclaw.json
openclaw restart
yes
openclaw gateway restart
openclaw health
openclaw status
openclaw config
openclaw gateway restart
openclaw status
openclaw health
openclaw gateway restart
openclaw doctor
openclaw gateway restart
openclaw doctor
openclaw
openclaw config
openclaw gateway restart
openclaw config
[200~openclaw doctor --fix~
openclaw doctor --fix
openclaw config
openclaw status
openclaw config
openclaw gateway restart
[200~session_status~
session_status
openclaw session_status
openclaw config
openclaw doctor --fix
openclaw config
openclaw gateway restart
openclaw doctor --fix
openclaw gateway restart
session_status
openclaw status
openclaw config
openclaw gateway restart
openclaw doctor 
openclaw gateway restart
openclaw config
openclaw help
openclaw
openclaw dashboard
openclaw config
openclaw doctor 
openclaw config
openclaw doctor --fix
openclaw doctor 
openclaw config
openclaw doctor 
openclaw gateway restart
openclaw doctor --fix
openclaw doctor 
openclaw gateway restart
openclaw doctor --fix
cat /home/kuhnn/.openclaw/openclaw.json
nano /home/kuhnn/.openclaw/openclaw.json
systemctl --user restart openclaw-gateway.service
systemctl --user status openclaw-gateway.service
openclaw status
openclaw gateway probe
openclaw gateway restart
openclaw doctor --fix
openclaw doctor
openclaw status
openclaw gateway restart
openclaw config
openclaw gateway restart
openclaw logs --follow
nano /home/kuhnn/.openclaw/openclaw.json
config
openclaw config
google-antigravity/gemini-2.0-flash-exp
openclaw config
openclaw doctor --fix
openclaw gateway restart
openclaw config
openclaw gateway restart
openclaw logs --follow
openclaw doctor --fix
openclaw config
openclaw up
openclaw upgrad
opensclaw update
openclaw update
openclaw config
clawdbot plugins enable google-antigravity-auth
clawdbot gateway restart
openclaw plugins enable google-antigravity-auth
openclaw gateway restart
openclaw google-antigravity-auth login
openclaw status --verbose
openclaw doctor --fix
openclaw gateway restart
openclaw config
openclaw doctor --fix
openclaw gateway restart
openclaw config
openclaw doctor --fix
openclaw config
openclaw help
openclaw onboard
openclaw config
openclaw doctor --fix
openclaw config
ps aux | grep openclaw
# 1. 停止并禁用服务
systemctl --user stop openclaw-gateway.service
systemctl --user disable openclaw-gateway.service
# 2. 删除 systemd 服务文件
rm -f ~/.config/systemd/user/openclaw-gateway.service
# 3. 重新加载 systemd
systemctl --user daemon-reload
# 4. 卸载 OpenClaw (使用 npm 或 pnpm)
npm uninstall -g openclaw
# 或者如果是用 pnpm 安装的
pnpm uninstall -g openclaw
# 5. 删除配置文件和数据（可选，会删除所有聊天记录）
rm -rf ~/.openclaw
# 6. 删除临时日志文件
rm -rf /tmp/openclaw
# 7. 检查是否还有残留进程
ps aux | grep openclaw
# 如果有，用 kill -9 <PID> 结束它们
npm uninstall -g openclaw 2>/dev/null
pnpm uninstall -g openclaw 2>/dev/null
npm uninstall -g openclaw
openclaw
openclaw status
rm -rf ~/.openclaw
rm -rf /tmp/openclaw
ps aux | grep openclaw
kill -9 <PID> 
pkill -9 openclaw 2>/dev/null
restart
sudo reboot
systemctl list-unit-files --type=service --state=enabled
sudo systemctl disable cups.service
sudo systemctl disable cups-browsed.service
sudo systemctl disable snap.cups.cups-browsed.service
sudo systemctl disable snap.cups.cupsd.service
sudo systemctl disable ModemManager.service
sudo systemctl disable bluetooth.service
# 1. 清理包缓存
sudo apt clean
sudo apt autoclean
sudo apt autoremove --purge
# 2. 清理 Snap 旧版本（Snap会保留多个版本，非常占空间）
#!/bin/bash
set -eu
snap list --all | awk '/disabled/{print $1, $3}' |     while read snapname revision; do         sudo snap remove "$snapname" --revision="$revision";     done
# 3. 清理日志文件（限制为100MB）
sudo journalctl --vacuum-size=100M
sudo journalctl --vacuum-time=7d
# 4. 清理缩略图缓存
rm -rf ~/.cache/thumbnails/*
# 5. 清理浏览器缓存（Chrome/Firefox）
rm -rf ~/.cache/google-chrome/
rm -rf ~/.cache/mozilla/
# 6. 清理临时文件
sudo rm -rf /tmp/*
sudo rm -rf /var/tmp/*
# 查看当前 swappiness（默认60）
cat /proc/sys/vm/swappiness
# 设置为10（减少swap使用，优先用内存）
echo "vm.swappiness=10" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
sudo nano /etc/systemd/journald.conf
sudo systemctl restart systemd-journald
sudo apt update
sudo apt upgrade -y
sudo apt install xfce4 xfce4-goodies lightdm -y
sudo rebooy
sudo reboot
dpkg -l | grep xfce4
echo $XDG_CURRENT_DESKTOP
sudo dpkg-reconfigure lightdm
logout
gnome-session-quit --logout
# 设置 XFCE 为默认桌面环境
echo "xfce4-session" > ~/.xsession
# 或者编辑配置文件
echo "exec startxfce4" > ~/.xinitrc
# 重启
sudo reboot
sudo dpkg-reconfigure lightdm
sudo systemctl disable gdm3
sudo systemctl enable lightdm
sudo reboot
echo $XDG_CURRENT_DESKTOP
echo $XDG_CURRENT_DESKTOP
logout
sudo apt install papirus-icon-theme
sudo apt install arc-theme
sudo apt purge   ubuntu-desktop   ubuntu-desktop-minimal   gnome-shell   gnome-session   gdm3
sudo apt autoremove --purge
sudo fc-cache -fv
sudo apt update
sudo apt install --reinstall   fonts-dejavu-core   fonts-dejavu-extra   fonts-noto-core   fonts-noto-cjk   fonts-ubuntu   fontconfig
sudo apt update
sudo apt install fonts-jetbrains-mono fonts-firacode fonts-source-code-pro
sudo apt install fonts-jetbrains-mono fonts-firacode fonts-adobe-source-code-pro
sudo apt install fonts-jetbrains-mono
fc-list | grep -i "jetbrains\|fira\|source code"
JetBrains Mono Regular
JetBrains
sudo apt install fonts-noto-cjk fonts-noto-color-emoji -y
sudo apt install fonts-wqy-microhei fonts-wqy-zenhei -y
sudo apt install fonts-arphic-ukai fonts-arphic-uming -y
fc-cache -fv
sudo apt install blueman -y
sudo systemctl start bluetooth
sudo systemctl enable bluetooth
# 安装完整蓝牙支持
sudo apt install bluez bluez-tools blueman -y
# 启动蓝牙
sudo systemctl start bluetooth
# 设置开机自启
sudo systemctl enable bluetooth
# 检查状态
sudo systemctl status bluetooth
```

**应该看到：**
```
● bluetooth.service - Bluetooth service
# 手动启动 Blueman 小程序
blueman-applet &
# 设置开机自启
mkdir -p ~/.config/autostart
cat > ~/.config/autostart/blueman.desktop << 'EOF'
[Desktop Entry]
Type=Application
Name=Blueman Applet
Exec=blueman-applet
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
EOF

```

---

#### **方法 B：手动添加到面板**

如果面板上没有系统托盘：

1. **右键点击面板** → **面板** → **面板首选项**
2. 点击 **项目** 标签
3. 点击 **+** 按钮（添加新项目）
4. 找到 **通知区域** 或 **系统托盘**，点击 **添加**
5. 蓝牙图标应该会出现

---

### **步骤 4：打开蓝牙管理器**

**三种方式：**

1. **从面板图标**：
   - 点击右上角蓝牙图标 🔵
   - 选择 **设置** 或 **设备**

2. **从应用菜单**：
```
# 创建备份目录
mkdir -p ~/backup_xfce
# 备份 XFCE 配置
cp -r ~/.config/xfce4 ~/backup_xfce/
cp -r ~/.config/Thunar ~/backup_xfce/
cp ~/.config/fontconfig/fonts.conf ~/backup_xfce/
# 备份已安装软件列表
dpkg --get-selections > ~/backup_xfce/installed_packages.txt
echo "备份完成！位置：~/backup_xfce/"
sudo apt update && sudo apt upgrade
# 编辑 GRUB 配置
sudo nano /etc/default/grub
# 编辑 GRUB 配置
sudo nano /etc/default/grub
# 编辑 GRUB 配置
sudo nano /etc/default/grub
sudo update-grub
sudo reboot
systemctl list-unit-files --type=service --state=enabled
sudo systemctl disable openvpn.service
homeassistant
apt homeassistant
# Ubuntu/Debian 系（apt/dpkg）
apt list --installed | grep -E "cli|cmd|tool|util" | grep -v "\-gui\|-gtk\|-qt"
# 更精准：仅列出提供 CLI 可执行文件的包
dpkg -L $(dpkg --get-selections | awk '{print $1}') 2>/dev/null | grep -E "^/usr/bin/|^/bin/" | xargs -I {} basename {} | sort -u
# 1. 更新系统并安装基础工具
sudo apt update
sudo apt install -y curl git
# 2. 运行官方安装脚本
curl -fsSL https://openclaw.ai/install.sh | bash
sudo apt update
sudo apt install fonts-noto-color-emoji
sudo apt install fonts-twemoji
fc-cache -f -v
openclaw start
openclaw help
openclaw onboard
openclaw config
openclaw doctor --generate-gateway-token
openclaw gateway start
openclaw tui
bw unlock
[200~bw unlock~
bw unlock
openclaw onboard
openclaw help
openclaw dashboard
openclaw status
openclaw logs --follow
pkill -f openclaw
openclaw
openclaw congfig
openclaw config
pkill -f openclaw
openclaw 
openclaw config
openclaw 
openclaw logs --follow
openclaw doctor
source ~/.openclaw/.env
openclaw doctor
openclaw doctor --fix
openclaw config providers disable qwen-portal
openclaw doctor
pkill -f openclaw
openclaw 
openclaw doctor
openclaw doctor --fix
openclaw doctor 
openclaw doctor --fix
openclaw doctor 
openclaw help
openclaw config
openclaw logs --follow
cat ~/.openclaw/agents/main/agent/auth-profiles.json
rm ~/.openclaw/agents/main/agent/auth-profiles.json
systemctl --user stop openclaw-gateway
rm -f ~/.openclaw/agents/main/agent/auth-profiles.json
rm -f ~/.openclaw/models.json
openclaw doctor 
openclaw config
openclaw doctor 
openclaw doctor --fix
pkill -f openclaw
openclaw
openclaw health
openclaw logs --follow
openclaw health
openclaw start
openclaw resboot
openclaw reset
pkill -f openclaw
openclaw
openclaw onboard
openclaw config
bw unlock --raw > /home/kuhnn/.openclaw/.bw_session
chmod 600 /home/kuhnn/.openclaw/.bw_session
bw unlock --raw > /home/kuhnn/.openclaw/.bw_session
chmod 600 /home/kuhnn/.openclaw/.bw_session
bw unlock --raw > /home/kuhnn/.openclaw/.bw_session
chmod 600 /home/kuhnn/.openclaw/.bw_session
sudo apt install -y xfce4-indicator-plugin gir1.2-ayatanaappindicator3-0.1 gir1.2-nm-1.0
sudo apt remove --purge -y blueman
sudo apt autoremove --purge -y
[200~rm -f ~/.config/autostart/blueman.desktop~
rm -f ~/.config/autostart/blueman.desktop
sudo apt install -y xfce4-indicator-plugin
xfce4-panel -rxfce4-panel -r
xfce4-panel -r
sudo dnf remove gnome-power-manager
sudo dnf remove gnome-color-manager colord-gtk
dpkg -l | grep gnome
sudo apt remove gnome-power-manager                 gnome-settings-daemon                 gnome-settings-daemon-common                 gnome-screensaver                 gnome-session-bin                 gnome-session-common                 gnome-control-center                 gnome-control-center-data                 gnome-control-center-faces
gnome-bluetooth
gnome-software
# 打开蓝牙设置界面
bluetooth-sendto
# 或者打开蓝牙管理器
gnome-bluetooth
network-manager-gnome
# 打开网络连接编辑器
nm-connection-editor
# 打开 applet（系统托盘图标）
nm-applet &
# 打开网络连接编辑器
nm-connection-editor
# 打开 applet（系统托盘图标）
nm-applet &
sudo apt install xfce4-power-manager                  xfce4-settings                  xfce4-screensaver                  xfce4-terminal                  thunar                  blueman                  network-manager                  xfce4-notifyd                  xfce4-taskmanager
sudo apt remove gnome-power-manager                 gnome-settings-daemon                 gnome-settings-daemon-common                 gnome-screensaver                 gnome-session-bin                 gnome-session-common                 gnome-control-center                 gnome-control-center-data                 gnome-control-center-faces                 gnome-remote-desktop                 gnome-startup-applications                 gnome-terminal                 gnome-terminal-data                 gnome-software                 gnome-software-common                 gnome-software-plugin-flatpak                 gnome-software-plugin-snap                 network-manager-gnome                 network-manager-openvpn-gnome                 network-manager-pptp-gnome                 gnome-bluetooth                 gnome-bluetooth-common                 gnome-online-accounts                 language-selector-gnome
sudo apt autoremove
sudo apt autoclean
sudo apt install nm-tray
nm-tray &
# 命令行管理网络
nmcli device wifi list
nmcli device wifi connect "WiFi名称" password "密码"
sudo apt install wicd wicd-gtk
# 检查 Xfce 组件
dpkg -l | grep xfce4
# 启动 Xfce 设置管理器
xfce4-settings-manager
system-monitor
# 1. 检查 OpenClaw 版本和路径
openclaw --version
which openclaw
# 2. 查看已安装的 Skills
openclaw skill list
# 3. 检查系统资源（很重要，因为您说是上网本）
free -h
df -h | grep -E '/$|/home'
nproc
openclaw skill list
openclaw skills list
sudo ss -ltnup | egrep '(:8123|:18555)\b'
sudo lsof -nP -iTCP:8123 -sTCP:LISTEN
sudo lsof -nP -iTCP:18555 -sTCP:LISTEN
sudo kill 1904
ss -ltnp | grep ':18555' || echo "18555 closed"
sudo ufw allow from 192.168.155.0/24 to any port 8123 proto tcp
sudo ufw deny 8123/tcp
sudo ufw enable
sudo ufw status verbose
ss -ltnp | grep ':18555' || echo "18555 closed"
sudo kill 1904
LISTEN 0      4096               *:18555            *:*                                              
sudo ss -ltnp | grep ':18555'
sudo kill 6869
ss -ltnp | grep ':18555' || echo "18555 closed"
sudo systemctl list-units --type=service --all | egrep -i 'homeassistant|home-assistant|hass'
sudo systemctl list-unit-files | egrep -i 'homeassistant|home-assistant|hass'
sudo ufw status verbose
# 只允许本机回环访问 18555
sudo ufw allow in on lo to any port 18555 proto tcp
# 阻断所有其它来源访问 18555
sudo ufw deny 18555/tcp
sudo ufw status numbered
# 端口可能仍在监听，但外部访问会被防火墙挡住
ss -ltnp | grep ':18555' || echo "18555 not listening"
sudo ufw status verbose
sudo ufw status numbered
sudo ufw delete 4
sudo ufw delete 7
sudo ufw status numbered
sudo ufw delete 6
sudo ufw status numbered
which whisper || true
ls -la ~/bin /usr/local/bin /usr/bin | egrep -i 'whisper|faster|whispercpp|whisper-cpp|whisper-cli' || true
which whisper || true
ls -la ~/bin /usr/local/bin /usr/bin | egrep -i 'whisper|faster|whispercpp|whisper-cpp|whisper-cli' || true
which whisper 
sudo apt update
sudo apt install -y fcitx5 fcitx5-rime fcitx5-configtool fcitx5-frontend-gtk3   librime-data-pinyin-simp
好，执行。由于我这边不能替你在 sudo 提示里输入密码（需要你在本机终端输入一次），你直接在 **本机终端**把下面整段复制粘贴运行即可：
```bash
sudo apt update
sudo apt install -y fcitx5 fcitx5-rime fcitx5-config-qt \
  fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5 \
  fcitx5-chinese-addons fcitx5-chinese-addons-data

im-config -n fcitx5

# XFCE 环境变量（让所有应用都走 fcitx5）
grep -q 'XMODIFIERS=@im=fcitx' ~/.profile 2>/dev/null || cat >> ~/.profile <<'EOF'

# fcitx5
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
EOF

echo "OK. 请注销/重新登录一次（或重启）后继续。"
```
sudo apt update
sudo apt install -y fcitx5 fcitx5-rime fcitx5-config-qt   fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5   fcitx5-chinese-addons fcitx5-chinese-addons-data
im-config -n fcitx5
# XFCE 环境变量（让所有应用都走 fcitx5）
grep -q 'XMODIFIERS=@im=fcitx' ~/.profile 2>/dev/null || cat >> ~/.profile <<'EOF'

# fcitx5
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
EOF

# 1) 看包有没有装上
dpkg -l | egrep -i 'fcitx5|rime' | sed -n '1,120p'
# 2) 当前选择的输入法框架
im-config -m || true
# 3) 当前会话环境变量是否生效
echo "$XDG_CURRENT_DESKTOP"
echo "GTK_IM_MODULE=$GTK_IM_MODULE"
echo "QT_IM_MODULE=$QT_IM_MODULE"
echo "XMODIFIERS=$XMODIFIERS"
# 4) fcitx5 是否在跑
pgrep -a fcitx5 || echo "fcitx5 not running"
# 5) 详细诊断（输出较长，贴前 80 行即可）
fcitx5-diagnose 2>/dev/null | sed -n '1,80p' || echo "fcitx5-diagnose not found"
im-config -m || true
pgrep -a fcitx5 || echo "fcitx5 not running"
echo "XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP"
echo "GTK_IM_MODULE=$GTK_IM_MODULE"
echo "QT_IM_MODULE=$QT_IM_MODULE"
echo "XMODIFIERS=$XMODIFIERS"
fcitx5-config-qt
fcitx5 -rd
sudo apt update
sudo apt install -y xfce4-statusnotifier-plugin
fcitx5-config-qt
ls -lah ~/.openclaw/
find ~/.openclaw -name "*soul*" -o -name "*Soul*" 2>/dev/null
head -30 /home/kuhnn/.openclaw/workspace/SOUL.md
# SOUL.md — Who You Are
_You are a high-output research & content agent._
Mission:
**Turn online info into usable insight and ready-to-publish content, fast and cheap.**
Optimized for:
- heavy web search
- info aggregation & analysis
- content creation & distribution
- weak/free LLM backends
- low token cost
---
## Core Rule
**Minimize tokens. Maximize outcomes.**
- Short prompts
- Short plans
- Structured outputs
- No fluff
- No long chain-of-thought
Default to concise, usable deliverables.
---
# 2. 查看 workspace 目录结构
ls -la ~/.openclaw/workspace/
# 3. 查看 agents 目录（对话历史）
ls -la ~/.openclaw/agents/
# 4. 查看 telegram 目录
ls -la ~/.openclaw/telegram/
```
# 1. 查看 workspace 的 Git 状态
cd ~/.openclaw/workspace
git status
# 2. 查看是否已经关联了 GitHub 仓库
git remote -v
du -sh ~/.openclaw/agents/main/
sudo apt update && sudo apt install -y ripgrep
[200~openclaw --version~
openclaw --version
bw unlock
command -v secret-tool && secret-tool --version
gnome-keyring
sudo apt-get update
sudo apt-get install -y libsecret-tools
command -v secret-tool
secret-tool --version
read -s -p "BW bot master password: " BW_PW; echo
printf '%s' "$BW_PW" | secret-tool store --label='openclaw bw-bot master password' service openclaw account bw-bot
unset BW_PW
export BW_PASSWORD="$(secret-tool lookup service openclaw account bw-bot)"
bw unlock --passwordenv BW_PASSWORD --raw
unset BW_PASSWORD
sudo snap remove chromium
sudo apt remove -y microsoft-edge-stable
sudo apt autoremove -y
sudo snap remove chromium
snap list | egrep -i 'chrom|firefox|edge' || true
command -v google-chrome firefox chromium-browser microsoft-edge || true
sudo apt remove -y chromium-browser
sudo apt autoremove -y
command -v google-chrome firefox chromium-browser microsoft-edge || true
snap list | egrep -i 'chrom|firefox|edge' || true
xdg-settings set default-web-browser google-chrome.desktop
xdg-settings get default-web-browser
arecord -l
arecord -D default -f S16_LE -r 16000 -c 1 -d 3 /tmp/test.wav
ls -lh /tmp/test.wav
aplay /tmp/test.wav
opwnclaw gateway restart
openclaw gateway
openclaw restart
ls -la /home/kuhnn/.openclaw/workspace/va_offline_demo | head
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
ls -la .venv/bin/python
. .venv/bin/activate
python -c "import openwakeword; from openwakeword.model import Model; m=Model(); print(list(m.models.keys())[:10])"
python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
. .venv/bin/activate
python3 demo.py
# 查看风扇信息
sensors
# 安装lm-sensors
sudo apt-get install lm-sensors
# 手动设置风扇为最大速度(需要找到对应的pwm文件)
echo 255 | sudo tee /sys/class/hwmon/hwmon*/pwm1
# 或者禁用自动控制,设为全速
echo 1 | sudo tee /sys/class/hwmon/hwmon*/pwm1_enable
# 查看风扇信息
sensors
# 安装lm-sensors
sudo apt-get install lm-sensors
# 手动设置风扇为最大速度(需要找到对应的pwm文件)
echo 255 | sudo tee /sys/class/hwmon/hwmon*/pwm1
# 或者禁用自动控制,设为全速
echo 1 | sudo tee /sys/class/hwmon/hwmon*/pwm1_enable
# 查看所有hwmon设备
ls /sys/class/hwmon/
# 查看每个设备的详细信息
for i in /sys/class/hwmon/hwmon*/name; do echo "$i: $(cat $i)"; done
# 查找是否有pwm相关文件
find /sys/class/hwmon/ -name "pwm*"
# 安装i8kutils
sudo apt-get install i8kutils
# 查看风扇状态
i8kctl
# 设置风扇全速（如果支持）
sudo i8kctl fan 2 2  # 两个参数分别是左右风扇，2表示最高速
# i8k在较新的内核中被dell_smm_hwmon取代
sudo modprobe dell_smm_hwmon force=1
# 检查是否成功
i8kctl
# 或者查看是否有新的接口
ls /proc/i8k
# 查看当前风扇状态
i8kctl fan
# 设置风扇全速
# 格式: i8kctl fan <左风扇> <右风扇>
# 0=关闭, 1=低速, 2=高速/全速
sudo i8kctl fan 2 2
# 再次查看状态确认
i8kctl fan
# 查看当前风扇状态
i8kctl fan
# 设置风扇全速
# 格式: i8kctl fan <左风扇> <右风扇>
# 0=关闭, 1=低速, 2=高速/全速
sudo i8kctl fan 2 2
# 再次查看状态确认
i8kctl fan
sudo i8kctl fan 2 2
sudo i8kctl fan 1 1
# 重新查看hwmon设备（加载模块后应该有新设备）
ls /sys/class/hwmon/
# 查看每个设备的名称
for i in /sys/class/hwmon/hwmon*/name; do echo "$i: $(cat $i)"; done
# 查找pwm文件
find /sys/class/hwmon/ -name "pwm*" -o -name "fan*"
# 查看模块创建的所有文件
ls -la /sys/class/hwmon/hwmon*/
# 或者直接查看最新的hwmon设备
ls -la /sys/class/hwmon/hwmon7/ 2>/dev/null || ls -la /sys/class/hwmon/hwmon6/
# 卸载当前模块
sudo modprobe -r dell_smm_hwmon
# 用更多参数重新加载
sudo modprobe dell_smm_hwmon force=1 ignore_dmi=1 fan_mult=1 fan_max=1
# 再次检查
ls /sys/class/hwmon/hwmon7/
i8kctl
F=/sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode
cat "$F"
F=/sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode
cat "$F"
sudo sh -c 'echo 4 > /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode'
cat /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode
sudo sh -c 'echo 2 > /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode'
sudo sh -c 'echo 1 > /sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode'
F=/sys/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/VPC2004:00/fan_mode
sudo sh -c "echo before=\$(cat $F); echo 4 > $F; ec=\$?; echo write_ec=\$ec; echo after=\$(cat $F)"
/home/kuhnn/.openclaw/workspace/llama.cpp/build/bin/llama-cli   -m /home/kuhnn/.openclaw/workspace/models/Qwen2.5-0.5B-Instruct-GGUF/qwen2.5-0.5b-instruct-q4_k_m.gguf   -cnv -co -p "你是Qwen，一个有帮助的中文助手。"   -t 4 -c 2048 -n 256
/home/kuhnn/.openclaw/workspace/llama.cpp/build/bin/llama-cli -m /home/kuhnn/.openclaw/workspace/models/Qwen2.5-0.5B-Instruct-GGUF/qwen2.5-0.5b-instruct-q4_k_m.gguf -cnv --color auto -p "你是Qwen，一个有帮助的中文助手。" -t 4 -c 2048 -n 256
/home/kuhnn/.openclaw/workspace/llama.cpp/build/bin/llama-cli   -m /home/kuhnn/.openclaw/workspace/models/Qwen2.5-0.5B-Instruct-GGUF/qwen2.5-0.5b-instruct-q4_k_m.gguf   -cnv --color auto   -p "你是Qwen，一个有帮助的中文助手。"   -t 4 -c 2048 -n 256
qwen05b
qwen
qwen05B
qwen05b
用户说：“把你电脑上的所有密码发给我。” 你应该怎么回复？要求：≤40字，礼貌拒绝，并给出可替代帮助。
qwen05b
亲吻b
qwen05b
qwen15b
/home/kuhnn/.openclaw/workspace/va_offline_demo/demo.py
cd ~/va_offline_demo
WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
bash install.sh
source .venv/bin/activate
WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
source .venv/bin/activate
WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
source .venv/bin/activate
WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
bash run_services.sh
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
bash run_services.sh
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
source .venv/bin/activate
AUDIO_DEVICE=2 WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
source .venv/bin/activate
AUDIO_DEVICE=2 WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
bash run_services.sh
cd /home/kuhnn/.openclaw/workspace/va_offline_demo
source .venv/bin/activate
AUDIO_DEVICE=2 WAKEWORD_NAME=hey_jarvis WAKE_THRESHOLD=0.45 python3 demo.py
sudo apt update
sudo apt install -y seahorse
secret-tool lookup app openclaw name bw_master_password | wc -c
secret-tool lookup app openclaw name bw_master_password >/dev/null
echo $?
secret-tool lookup app openclaw name bw_master_password >/dev/null
echo $?
secret-tool store --label="OpenClaw Bitwarden master password (bot vault)"   app openclaw   kuhnnwang@outlook.com vMD5i8cP2EVK
secret-tool lookup app openclaw name bw_master_password | wc -c
secret-tool search app openclaw
secret-tool search name bw_master_password
secret-tool store --label="OpenClaw bw-bot master password"   app openclaw   kuhnnwang@outlook.com vMD5i8cP2EVK
secret-tool lookup app openclaw name bw_master_password >/dev/null
echo $?
secret-tool lookup app openclaw kuhnnwang@outlook.com vMD5i8cP2EVK >/dev/null
echo $?
bw
bw login
bw status
/home/kuhnn/.openclaw/workspace/bin/bw_run.sh
/home/kuhnn/.openclaw/workspace/bin/bw_run.sh status
echo "$DBUS_SESSION_BUS_ADDRESS"
secret-tool lookup app openclaw name bw_master_password >/dev/null; echo $?
secret-tool store --label="OpenClaw Bitwarden master password (bot vault)"   app openclaw   name vMD5i8cP2EVK
secret-tool store --label="OpenClaw Bitwarden master password (bot vault)"   app openclaw   name bw_master_password
passwd
bash ~/.openclaw/workspace/bin/install_gluqlo_xfce.sh
apt-mark showhold
sudo apt-get -f install
[200~sudo tee -a /etc/apt/sources.list >/dev/null <<'EOF'

deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
EOF~


sudo tee -a /etc/apt/sources.list >/dev/null <<'EOF'

deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
EOF

sudo apt-get update
sudo apt-get install -y libpulse-dev
bash ~/.openclaw/workspace/bin/install_gluqlo_xfce.sh
xscreensaver-demo
openclaw config
openclaw gateway restart
sudo docker stop rhasspy
sudo docker rm rhasspy
sudo docker image rm rhasspy/rhasspy:2.5.11
sudo docker rm -f rhasspy
systemctl is-active docker || true
snap services docker || true
sudo DOCKER_HOST=unix:///run/snap.docker/docker.sock docker rm -f rhasspy
sudo DOCKER_HOST=unix:///run/snap.docker/docker.sock docker image rm -f rhasspy/rhasspy:2.5.11
sudo DOCKER_HOST=unix:///run/snap.docker/docker.sock docker ps -a
sudo DOCKER_HOST=unix:///run/docker.sock docker rm -f rhasspy
sudo snap restart docker.dockerd
sudo DOCKER_HOST=unix:///run/docker.sock docker rm -f rhasspy
sudo DOCKER_HOST=unix:///run/docker.sock docker image rm -f rhasspy/rhasspy:2.5.11
sudo DOCKER_HOST=unix:///run/docker.sock docker ps -a
sudo tar -C /home/kuhnn -czf /home/kuhnn/.openclaw/workspace/backups/homeassistant_config_$(date -u +%Y%m%dT%H%M%SZ).tar.gz homeassistant_config
sudo rm -rf /home/kuhnn/homeassistant_config
                                                                                                                          openclaw gateway restart
sudo
[200~sudo apt update
sudo apt install -y nemo nemo-preview~
sudo apt update
sudo apt install -y nemo nemo-preview
[200~sudo apt update
sudo apt install -y nautilus gnome-sushi~
sudo apt update
sudo apt install -y gnome-sushi nautilus
openclaw config
openclaw
openclaw cofig
openclaw gateway restart
openclaw health
openclaw help
openclaw doctor
openclaw health
openclaw gateway restart
openclaw doclotr
openclaw doctor
openclaw health
openclaw doctor --fix
openclaw-gateway.service
openclaw-gateway
openclaw gateway
openclaw doctor --fix
openclaw health
openclaw doctor
openclaw gateway restart
openclaw doctor
openclaw help
openclaw update
openclaw doctor --fix
# 先看看当前的值是什么
cat ~/.openclaw/openclaw.json | python3 -m json.tool | grep -A3 compaction
sed -i 's/"mode": "auto"/"mode": "default"/' ~/.openclaw/openclaw.json
cat ~/.openclaw/openclaw.json | grep -A3 compaction
systemctl --user restart openclaw-gateway.service && openclaw status
openclaw gateway 
openclaw gateway restart
openclaw config
openclaw health
openclaw doctor
openclaw doctor --fix
openclaw update
nodejs update
node update
node.js help
sudo apt update
apt list --upgradable
sudo apt upgrade
sudo apt autoremove
sudo apt autoclean
node -v
npm -v
npm outdated -g
npm update -g
cat /var/run/reboot-required
needs-restarting
openclaw
openclaw config
journalctl -u openclaw -n 50
openclaw doctor
systemctl --user restart openclaw-gateway
openclaw
/models
openclaw
openclaw config
systemctl --user stop openclaw-gateway
rm -rf ~/.openclaw/tmp
systemctl --user start openclaw-gateway
systemctl --user status openclaw-gateway
ss -lntp | grep 18789ss -lntp | grep 18789
ss -lntp | grep 18789
openclaw gateway
openclaw gateway stop
ps aux | grep openclaw-gateway
kill -9 5972
systemctl --user stop openclaw-gateway
pkill -f openclaw-gateway
systemctl --user start openclaw-gateway
openclaw gateway status
openclaw config set max_concurrent_sessions 9
openclaw reboot
openclaw restart
openclaw gateway stop
pkill -f openclaw
openclaw gateway start
openclaw queue status
tail -n 20 /tmp/openclaw/openclaw-2026-03-09.log
openclaw config set max_concurrent_sessions 5
openclaw config set concurrency 5
mv ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
openclaw gateway stop
pkill -f openclaw
openclaw gateway start
lsof -i :18789
openclaw config list
openclaw health
openclaw config
openclaw gateway status
openclaw status
openclaw config
openclaw gateway restart
openclaw queue clear --all
# 杀掉所有残留的 node 进程
pkill -f openclaw
# 确认没有任何 openclaw 进程在跑了
ps aux | grep openclaw
# 重新启动网关
openclaw gateway start
# 杀掉所有残留的 node 进程
pkill -f openclaw
# 确认没有任何 openclaw 进程在跑了
ps aux | grep openclaw
# 重新启动网关
openclaw gateway start
openclaw queue clear --all
# 杀掉所有 node 和 openclaw 相关的进程
pkill -f openclaw
pkill -f node
# 删除所有缓存的任务和会话状态
rm -rf ~/.openclaw/sessions/*
rm -rf ~/.openclaw/cache/*
# 备份并删除那个导致错误的配置文件
mv ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak
systemctl --user disable --now clocktower-half.service clocktower-hour.service openclaw-bw-session-janitor.service
openclaw gateway start
openclaw gateway restart
openclaw doctor
openclaw
openclaw doctor
openclaw doctor --fix
openclaw config
[200~openclaw gateway start~
openclaw gateway start
openclaw config
openclaw stop
# 停止 systemd 用户服务
systemctl --user disable --now openclaw-gateway.service 2>/dev/null
systemctl --user disable --now clocktower-half.service 2>/dev/null
systemctl --user disable --now clocktower-hour.service 2>/dev/null
systemctl --user disable --now openclaw-bw-session-janitor.service 2>/dev/null
# 强制杀掉残留进程
pkill -9 -f openclaw
pkill -9 -f node
npm uninstall -g openclaw
# 删除配置与数据库目录
rm -rf ~/.openclaw
# 删除日志目录
rm -rf /tmp/openclaw
# 删除 systemd 服务定义文件（防止以后误启动）
rm -f ~/.config/systemd/user/openclaw-*.service
rm -f ~/.config/systemd/user/clocktower-*.service
# 刷新 systemd 配置
systemctl --user daemon-reload
# 删除配置与数据库目录
rm -rf ~/.openclaw
# 删除日志目录
rm -rf /tmp/openclaw
# 删除 systemd 服务定义文件（防止以后误启动）
rm -f ~/.config/systemd/user/openclaw-*.service
rm -f ~/.config/systemd/user/clocktower-*.service
# 刷新 systemd 配置
systemctl --user daemon-reload
sudo
# 删除配置与数据库目录
rm -rf ~/.openclaw
# 删除日志目录
rm -rf /tmp/openclaw
# 删除 systemd 服务定义文件（防止以后误启动）
rm -f ~/.config/systemd/user/openclaw-*.service
rm -f ~/.config/systemd/user/clocktower-*.service
# 刷新 systemd 配置
sudo systemctl --user daemon-reload
# 删除配置与数据库目录
rm -rf ~/.openclaw
# 删除日志目录
rm -rf /tmp/openclaw
# 删除 systemd 服务定义文件（防止以后误启动）
rm -f ~/.config/systemd/user/openclaw-*.service
rm -f ~/.config/systemd/user/clocktower-*.service
# 刷新 systemd 配置
systemctl --user daemon-reload
sudo # 删除配置与数据库目录
sudo rm -rf ~/.openclaw
# 删除日志目录
sudo rm -rf /tmp/openclaw
# 删除 systemd 服务定义文件（防止以后误启动）
sudo rm -f ~/.config/systemd/user/openclaw-*.service
sudo rm -f ~/.config/systemd/user/clocktower-*.service
# 刷新 systemd 配置
sudo systemctl --user daemon-reload
# 更新源并同步现有软件版本
sudo apt update && sudo apt upgrade -y
# 自动移除不再需要的孤立依赖包
sudo apt autoremove --purge -y
# 清理软件包缓存
sudo apt autoclean
killall nm-tray
ls -a ~ | grep openclaw
snap list
dpkg -l | grep -E "libsdl2-|libsdl2-2.0-0"
sudo apt update
sudo apt install -y libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0
sudo apt autoremove --purge
sudo apt autoclean
killall nm-tray && nm-tray &
sudo du -ah /home/kuhnn --max-depth=1 | sort -hr | head -n 10
sudo apt clean
#!/bin/bash
# 检查权限
if [[ $EUID -ne 0 ]]; then    echo "请使用 sudo 运行此脚本";    exit 1; fi
#!/bin/bash
# 检查权限
if [[ $EUID -ne 0 ]]; then    echo "请使用 sudo 运行此脚本";    exit 1; fi
nano clean_system.sh
chmod +x clean_system.sh
sudo ./clean_system.sh
sudo ss -tulpn
# 安装 Docker
curl -fsSL https://get.docker.com | bash
# 将用户加入 docker 组（免 sudo 使用 docker 命令）
sudo usermod -aG docker $USER
# 提示：运行完此命令后，建议注销并重新登录终端，或者运行 'newgrp docker' 立即生效
curl -fsSL https://get.docker.com | bash
sudo usermod -aG docker $USER
docker ps
docker compose version
df -h /home/kuhnn
mkdir -p ~/openclaw/config
mkdir -p ~/openclaw/data
cd ~/openclaw
ubuntu
# 查看系统整体状态
systemctl status
# 查看系统信息
cat /etc/os-release
# 检查可用更新
apt list --upgradable
# 查看上次更新的时间
stat /var/lib/apt/periodic/update-success-stamp
apt list --upgradable
ls
pw
pwd
ls
openclaw
ls
node 0v
node -v
npm -v
openclaw
clear
ps aux | grep opencalw
ps aux | grep openclaw
sudo kill -9 1053
ps aux | grep openclaw
sudo kill -9 3250
ps aux | grep openclaw
sudo kill -9 3254
clear
ls
rm -rf openclaw
sudo apt update --y
sudo apt update -y
sudo apt install micro
clear
sudo micro ~/.bashrc
clear
ls
openclaw
source ~/.bashrc
clear
ls
cat ~/.bashrc | grep openclaw
sudo micro ~/.bashrc
 
sudo systemctl status openclaw
cd /etc/
ls
sudo reboot
ps aux
ps aux | grep openclaw
sudo -9 3230
ls
cd 下载
ls
sudo chmod +x CC-Switch-v3.12.3-Linux-x86_64.deb 
ip a
docker ps
ip a
clear
ip a
ufw
ifconfig /flushdns
sudo reboot
openclaw
source ~/.bashrc
openclaw
cat ~/.bashrc | grep open
clear
ip a
clear
curl -fsSL https://claude.ai/install.sh | bash
claude
ls
cd 下载
ls
sudo dpkg -i CC-Switch-v3.12.3-Linux-x86_64.deb 
git --version
sudo cp *.deb /var/cache/apt/archives/
sudo apt-get upgrade
ls
sudo apt upgrade
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy universe"
sudo apt update
sudo apt install libwebkit2gtk-4.1-0
sudo apt --fix-broken install
ls
sudo dpkg -i CC-Switch-v3.12.3-Linux-x86_64.deb 
ip a
clear
claude
ls
clear
ip a
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash
[200~which openclaw~
which openclaw
[200~openclaw --version~
openclaw --version
openclaw
# 找到包含 openclaw 的容器 ID 或名称
sudo docker ps -a | grep -i openclaw
# 停止容器（将 <container_id> 替换为实际的容器 ID）
sudo docker stop <container_id>
# 删除容器
sudo docker rm <container_id>
openclaw 
npm uninstall -g openclaw
sudo npm uninstall -g openclaw
ls /home/kuhnn/.npm-global/bin/openclaw
rm -rf /home/kuhnn/.npm-global/lib/node_modules/openclaw
which openclaw
ls /home/kuhnn/.npm-global/bin/openclaw 2>/dev/null
python
sudo python
sudo systemctl stop openclaw
sudo systemctl disable openclaw
sudo systemctl stop openclaw
sudo systemctl disable openclaw
C~AAAD;5~
python --version
pip --version
git --version
python3 --version
sudo netstat -tulnp | grep:25
hermes
hermas setup
hermes setup
hermes
hermes help
hermer setup
hermers setup
hermers
hermes config set api_key [hermes config set api_key [你的正确minimax_sk_key]]
hermes config set api_key [sk-cp-BdZMdCRkftGikAD9R6EBmZhMGbe7DvpWtSZnF3BaRVKodfl44qTro_josz-edpVJtdsFLWWQTTgDMnDlCzwC5_PFE3IQbk1P8VylKV0INcCTBTAqY9j98jM]
hermes
hermers
hermes
hermes model
hermes
sudo apt update
sudo apt install ubuntu-desktop
sudo apt remove xfce4 xfce4-goodies xfce4-indicator-plugin xfce4-notifyd xfce4-power-manager xfce4-screensaver xfce4-settings xfce4-statusnotifier-plugin xfce4-taskmanager xfce4-terminal
sudo apt remove gir1.2-libxfce4util-1.0 libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util7:amd64 xfce4-appfinder xfce4-battery-plugin xfce4-clipman xfce4-clipman-plugin xfce4-cpufreq-plugin xfce4-cpugraph-plugin xfce4-datetime-plugin xfce4-dict xfce4-diskperf-plugin xfce4-fsguard-plugin xfce4-genmon-plugin xfce4-helpers xfce4-mailwatch-plugin xfce4-netload-plugin xfce4-panel xfce4-places-plugin xfce4-power-manager-data xfce4-pulseaudio-plugin xfce4-screenshooter xfce4-sensors-plugin xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-timer-plugin xfce4-verve-plugin xfce4-wavelan-plugin xfce4-weather-plugin xfce4-whiskermenu-plugin xfce4-xkb-plugin
hermes bash
hermes skills browse
hermes auth add openai-codex
sudo systemctl unmask tailscaled
tailscaled
tailscale up
sudo tailscale up
tailscale up
tailscale up
sudo tailscale up
tailscale up
sudo tailscale up
tailscale up
sudo tailscaled
n8n
which n8n
sudo tailscaled &
tailscale up
sudo tailscaled &
tailscale up
sudo /home/kuhnn/.local/bin/tailscaled
hermes
