- Create LXC 171 (claude-agent) on pveelite with Ubuntu 24.04 - Install Node.js 20.x, Claude Code, tmux, Tailscale - Configure SSH access and Gitea integration - Add workflow scripts: start-agent.sh, work.sh, new-task.sh, finish-task.sh - Add code-server for mobile file browsing - Document complete setup in proxmox/claude-agent/README.md LXC Details: - IP internal: 10.0.20.171 - IP Tailscale: 100.95.55.51 - code-server: port 8080 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
473 B
Bash
18 lines
473 B
Bash
#!/bin/bash
|
|
# Start or attach to Claude agent tmux session
|
|
|
|
SESSION_NAME="agent"
|
|
|
|
# Load nvm
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
|
|
# Check if session exists
|
|
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
|
|
echo "Attaching to existing session: $SESSION_NAME"
|
|
tmux attach-session -t $SESSION_NAME
|
|
else
|
|
echo "Creating new session: $SESSION_NAME"
|
|
tmux new-session -s $SESSION_NAME -c /workspace
|
|
fi
|