{"id":50126250,"url":"https://github.com/papadanielvi/raspberrypi","last_synced_at":"2026-05-23T20:03:55.135Z","repository":{"id":356799912,"uuid":"1229943436","full_name":"PapaDanielVi/raspberrypi","owner":"PapaDanielVi","description":"helper bash scripts for raspberry pi5 ","archived":false,"fork":false,"pushed_at":"2026-05-09T20:32:35.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T21:18:12.358Z","etag":null,"topics":["bash-script","linux","n8n","ollama","raspberry-pi","raspberrypi","vpn"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PapaDanielVi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T14:27:02.000Z","updated_at":"2026-05-09T20:32:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PapaDanielVi/raspberrypi","commit_stats":null,"previous_names":["papadanielvi/raspberrypi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PapaDanielVi/raspberrypi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PapaDanielVi%2Fraspberrypi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PapaDanielVi%2Fraspberrypi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PapaDanielVi%2Fraspberrypi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PapaDanielVi%2Fraspberrypi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PapaDanielVi","download_url":"https://codeload.github.com/PapaDanielVi/raspberrypi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PapaDanielVi%2Fraspberrypi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33410354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","linux","n8n","ollama","raspberry-pi","raspberrypi","vpn"],"created_at":"2026-05-23T20:03:45.202Z","updated_at":"2026-05-23T20:03:55.130Z","avatar_url":"https://github.com/PapaDanielVi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry PI5 Bash Scripts\n\nA collection of bash scripts to configure your Raspberry Pi 5 with various services including workflow automation, AI models, WiFi hotspot, VPN routing, and domain filtering.\n\n## Scripts Overview\n\n| Script | Purpose |\n|--------|---------|\n| `configure_n8n.sh` | n8n + Ollama with Phi-3 AI model |\n| `configure_hotspot.sh` | 5GHz WiFi hotspot with VPN routing |\n| `configure_vpn_routing.sh` | VPN routing gateway for hotspot clients |\n| `configure_openclaw.sh` | OpenClaw AI agent with Ollama |\n| `filter_domains.sh` | Block domains via dnsmasq |\n\n---\n\n## configure_n8n.sh\n\nInstalls and configures **n8n** (workflow automation platform) with **Ollama** for local AI capabilities.\n\n### Features\n- Installs Docker if not present\n- Installs and configures Ollama as a systemd service\n- Pulls Microsoft Phi-3 AI model\n- Runs n8n container with persistent storage\n- Optional proxy support for restricted networks\n\n### Usage\n```bash\n./configure_n8n.sh\n```\n\n### Output\n- **n8n URL**: `http://\u003cPI_IP\u003e:5678`\n- **Ollama Base URL**: `http://host.docker.internal:11434`\n\n---\n\n## configure_hotspot.sh\n\nCreates a **5GHz WiFi hotspot** with VPN-based routing and a kill switch to prevent traffic leaks.\n\n### Features\n- 5GHz access point (Channel 36, SSID: `RouterAX`)\n- DHCP server with dnsmasq (192.168.4.10-100)\n- Policy-based routing via `vpntable` (tun0)\n- Kill switch to block non-VPN traffic\n- DNS redirection enforcement\n- IPTables NAT with persistent rules\n\n### Usage\n```bash\n./configure_hotspot.sh\n```\n\n### Configuration\nEdit these variables at the top of the script:\n```bash\nSSID=\"RouterAX\"           # WiFi network name\nPASSPHRASE=\"test_pass\"    # WiFi password\nCOUNTRY=\"IR\"              # Regulatory domain\nCHANNEL=\"36\"              # WiFi channel\n```\n\n### Output\n- **WiFi Network**: 5GHz, WPA2-PSK\n- **Hotspot IP**: 192.168.4.1\n\n---\n\n## configure_vpn_routing.sh\n\nConfigures the Raspberry Pi as a **VPN gateway** for connected hotspot clients. Traffic from the hotspot network (192.168.4.0/24) is routed exclusively through the VPN (tun0).\n\n### Features\n- IP forwarding configuration\n- Custom routing table (`vpn`) for policy routing\n- DNSSEC-compatible dnsmasq configuration\n- NAT rules for VPN (tun0) with fallback to ethernet (eth0)\n- Kill switch to prevent leaks to eth0\n- FORWARD chain rules for VPN traffic\n\n### Usage\n```bash\n./configure_vpn_routing.sh\n```\n\n### Requirements\n- OpenVPN must be running with `tun0` interface active\n- Run after `configure_hotspot.sh`\n\n### Output\n- Routes hotspot traffic through `tun0` (VPN)\n- Falls back to `eth0` only if VPN is down (optional safety)\n\n---\n\n## configure_openclaw.sh\n\nInstalls **OpenClaw** (AI agent platform) with **Ollama** Phi-3 model integration.\n\n### Features\n- Installs Docker if not present\n- Creates `.openclaw` directory with proper permissions\n- Pulls OpenClaw Docker image\n- Configures Ollama as model provider\n- Runs OpenClaw container on host network\n\n### Usage\n```bash\n./configure_openclaw.sh\n```\n\n### Configuration\nEdit these variables at the top of the script:\n```bash\nPROXY_URL=\"http://192.168.1.94:8118\"\nOPENCLAW_GATEWAY_TOKEN=\"test_token_secret\"\n```\n\n### Output\n- **OpenClaw URL**: `http://\u003cPI_IP\u003e:18789`\n- **Gateway Token**: `test_token_secret` (change in production!)\n\n---\n\n## filter_domains.sh\n\nInteractive script to **block domains** using dnsmasq.\n\n### Features\n- Interactive domain input with validation\n- Blocks both root domain and `www.` variant\n- Automatic dnsmasq restart\n- Local DNS resolution test\n- Duplicate detection\n\n### Usage\n```bash\n./filter_domains.sh\n```\n\n### Example Session\n```\nEnter domain to block (e.g. example.com): ads.example.com\n[+] Blocking domain: ads.example.com\n[+] Restarting dnsmasq...\n[+] Testing resolution locally...\n[✔] Domain 'ads.example.com' successfully blocked!\n```\n\n### Blocked Domains Location\nBlocked domains are stored in: `/etc/dnsmasq.d/blocked_domains.conf`\n\n---\n\n## Architecture Overview\n\n```\n                    ┌─────────────────────────────────────┐\n                    │         Raspberry Pi 5              │\n                    │                                     │\n┌──────────────┐    │  ┌─────────────┐  ┌─────────────┐  │\n│   Ethernet   │────│──│  Hotspot    │──│   n8n       │  │\n│  (Internet) │    │  │  (wlan0)    │  │   Ollama    │  │\n└──────────────┘    │  └──────┬──────┘  │   OpenClaw  │  │\n                   │         │         └─────────────┘  │\n                   │         │                           │\n                   │    Policy Route                     \n                   │    (vpntable)                       \n                   │         │                           \n                   │         ▼                           \n                   │  ┌─────────────┐                    \n                   │  │  VPN (tun0) │                    \n                   │  └─────────────┘                    \n                   └─────────────────────────────────────┘\n                           ▲\n                           │\n                    ┌──────┴──────┐\n                    │   Clients   │\n                    │  (WiFi)     │\n                    └─────────────┘\n```\n\n## Requirements\n\n- Raspberry Pi 5\n- Raspberry Pi OS (64-bit)\n- WiFi adapter supporting 5GHz (for hotspot)\n- Root/sudo access\n\n## Quick Start\n\n1. Clone or copy scripts to your Pi\n2. Make scripts executable:\n   ```bash\n   chmod +x *.sh\n   ```\n3. Run the desired configuration script\n4. Follow the on-screen instructions\n\n## Notes\n\n- Some scripts require a restart or manual service start after completion\n- VPN scripts require an active VPN connection (`tun0`) for full functionality\n- Change default passwords and tokens before deploying\n- Firewall rules persist via `iptables-persistent`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapadanielvi%2Fraspberrypi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpapadanielvi%2Fraspberrypi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpapadanielvi%2Fraspberrypi/lists"}