Runbook สำหรับแก้ปัญหา NVIDIA Driver บน Arch Linux เมื่อพบ:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.
| #!/usr/bin/env bash | |
| # ============================================================ | |
| # wifi-info.sh | |
| # Wi-Fi Information for Arch Linux + NetworkManager | |
| # | |
| # Shows: | |
| # - Interface / SSID / BSSID | |
| # - Wi-Fi 4 / 5 / 6 / 6E / 7 | |
| # - PHY: HT / VHT / HE / EHT |
| # Host bindings. Database/Kong secrets. | |
| ADMIN_HTTP_PORT=18001 | |
| ADMIN_HTTPS_PORT=18444 | |
| PROXY_BIND_IP=0.0.0.0 | |
| PROXY_HTTP_PORT=80 | |
| PROXY_HTTPS_PORT=443 | |
| # KONGA_BIND_IP=0.0.0.0 | |
| KONGA_PORT=1337 | |
| KONGA_IMAGE=pantsel/konga:latest |
| #!/bin/bash | |
| # ========================================== | |
| # Configuration | |
| # ========================================== | |
| DOMAIN="http://localhost:4000" | |
| LITELLM_KEY="sk-1234xxxx" # เปลี่ยนเป็น API Key ของคุณ | |
| # Colors | |
| GREEN='\033[0;32m' |
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "mcp": { | |
| "filesystem": { | |
| "type": "local", | |
| "command": [ | |
| "npx", | |
| "-y", | |
| "@modelcontextprotocol/server-filesystem", | |
| "." |
| LITELLM_MASTER_KEY=lite-llm-master-key |
| { | |
| "$schema": "https://opencode.ai/config.json", | |
| "default_agent": "orchestrator", | |
| "compaction": { | |
| "auto": true, | |
| "prune": true, | |
| "reserved": 4096 | |
| }, | |
| "provider": { | |
| "litellm-local": { |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| if [[ "${DEBUG:-0}" == "1" ]]; then | |
| set -x | |
| fi | |
| VMID="${VMID:-9001}" | |
| STORAGE="${STORAGE:-local-lvm}" | |
| RELEASE="${RELEASE:-noble}" |
| services: | |
| llama-cpp: | |
| image: ghcr.io/ggml-org/llama.cpp:server-cuda | |
| container_name: llama-cpp | |
| restart: unless-stopped | |
| ports: | |
| - "8080:8080" | |
| volumes: | |
| - ./models:/models | |
| command: |