{"id":20613221,"url":"https://github.com/robiningelbrecht/raspberry-pi","last_synced_at":"2025-06-20T14:10:48.340Z","repository":{"id":258277956,"uuid":"873617814","full_name":"robiningelbrecht/raspberry-pi","owner":"robiningelbrecht","description":"Repository that holds scripts to setup my Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-11-24T15:41:54.000Z","size":692,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-24T16:33:56.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robiningelbrecht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-10-16T13:18:40.000Z","updated_at":"2024-11-24T15:41:57.000Z","dependencies_parsed_at":"2024-11-24T16:29:23.513Z","dependency_job_id":"416d9cf1-9550-4fae-b356-65853b8b4a08","html_url":"https://github.com/robiningelbrecht/raspberry-pi","commit_stats":null,"previous_names":["robiningelbrecht/raspberry-pi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fraspberry-pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fraspberry-pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fraspberry-pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fraspberry-pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robiningelbrecht","download_url":"https://codeload.github.com/robiningelbrecht/raspberry-pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234309753,"owners_count":18811947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-16T11:09:09.832Z","updated_at":"2025-01-17T03:47:38.521Z","avatar_url":"https://github.com/robiningelbrecht.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Configure PI as an Access Point over VPN\n\n## Prerequisites\n\n* Make sure your system is up to date and upgraded\n* Install git to pull and update this script\n\n```bash\n\u003e sudo apt-get update\n\u003e sudo apt-get full-upgrade\n\u003e sudo reboot\n\u003e sudo apt install firmware-brcm80211 # installs WiFi chip update, if any\n\u003e sudo apt install git-all\n\u003e git clone git@github.com:robiningelbrecht/raspberry-pi.git .\n```\n\n* Set your timezone/location\n  \n```bash\n\u003e sudo raspi-config\n# then 'Localisation Options' - then set your locale, timezone and WLAN country.\n```\n\n* Create a file `config.sh` and make sure it defines following variables\n\n```bash\n#!/bin/bash\n\nSSID=\"\"\nWIFI_PASSWORD=\"\"\nWIFI_CHANNEL=\"\"\nWIREGUARD_CLIENT_NAME=\"\"\n```\n\n* Navigate to https://account.proton.me/u/0/vpn/WireGuard and generate a WireGuard config\n* Copy the contents in a new file  `wireguard.conf`\n* Make sure `hotspot.sh` is executable, run following command if it's not\n\n```bash\n\u003e  chmod +x hotspot.sh\n```\n\n## Configure an access point\n\n```bash\n\u003e  sudo ./hotspot.sh setup\n```\nAt this point the hotspot should be available for devices to connect to.\n\n## Install PiVPN \n\n* Run `ifconfig` on your Raspberry Pi and copy the MAC address from `eth0` interface\n* Log in into Mobile Vikings and add a new DHCP-RESERVERING.\n  * Use the MAC address you copied\n  * Set the IP address to `192.168.129.10`\n* Reboot your Raspberry Pi\n* Run `ifconfig` again and verify the router issues the configured IP address to your Pi\n* To install PiVPN, run\n```bash\n\u003e  curl -L https://install.pivpn.io | bash\n```\n\n* If prompted to choose an interface, select `eth0`\n\n## Configure PiVPN\n\n* After install, run\n\n```bash\n\u003e  sudo ./hotspot.sh enable_vpn\n```\n\n* if you get an error saying something about `openresolv` , run `sudo apt install openresolv`\n* Run `sudo wg` to check status\n\n## Force DHCP to renew IP address\n\n```bash\n\u003e sudo dhclient -v -r eth0\n\u003e sudo dhclient -v eth0\n```\n\nYou light need to restart your router to flush DNS cache\n\n## Maintaining Your System\n\n```bash\n\u003e  sudo crontab -e\n\u003e 0 3 * * * apt-get autoremove -y \u0026\u0026 apt-get autoclean -y\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fraspberry-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobiningelbrecht%2Fraspberry-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fraspberry-pi/lists"}