{"id":18391767,"url":"https://github.com/mkuthan/raspberry-ansible","last_synced_at":"2025-04-07T03:33:46.387Z","repository":{"id":40388274,"uuid":"349221218","full_name":"mkuthan/raspberry-ansible","owner":"mkuthan","description":"My Raspberry Pi installation at home.","archived":true,"fork":false,"pushed_at":"2024-03-16T18:13:11.000Z","size":345,"stargazers_count":11,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T00:34:44.183Z","etag":null,"topics":["adguardhome","ansible","kodi","raspberry-pi","raspotify","samba","transmission"],"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/mkuthan.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}},"created_at":"2021-03-18T21:26:03.000Z","updated_at":"2024-12-24T08:06:59.000Z","dependencies_parsed_at":"2023-01-17T18:45:30.991Z","dependency_job_id":"cb016fbc-32e8-4af4-935e-f76a35b71ede","html_url":"https://github.com/mkuthan/raspberry-ansible","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkuthan%2Fraspberry-ansible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkuthan%2Fraspberry-ansible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkuthan%2Fraspberry-ansible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkuthan%2Fraspberry-ansible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkuthan","download_url":"https://codeload.github.com/mkuthan/raspberry-ansible/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247589468,"owners_count":20963018,"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":["adguardhome","ansible","kodi","raspberry-pi","raspotify","samba","transmission"],"created_at":"2024-11-06T01:53:12.820Z","updated_at":"2025-04-07T03:33:46.105Z","avatar_url":"https://github.com/mkuthan.png","language":"Shell","readme":"# Raspberry PI Configuration\n\nMy Raspberry Pi installation at home.\n\n* Do not touch anything by hand, use Ansible.\n* If something is hard to automate, document it at least.\n\n## Hardware\n\n* Raspberry Pi 4 model B, 4GB\n* HiFiBerry DAC+\n* RAIDON GR3660-B3 (with fan turned off)\n\n![hardware](static/hardware.jpg)\n\n## Manual setup\n\n### Install image\n\nThe repository is tested against Raspberry Pi OS Lite 64 bit (Debian 11 \"Bullseye\").\n\n1. Install image on SD card\n1. Append `ip=«IP»` into `cmdline.txt`\n1. Enable ssh `touch ssh`\n1. Configure default user account with `pi` password `echo \"pi:vCKtyl9xwqPxU\" \u003e userconf`\n\n### Configuring SSH\n\nGenerate key:\n\n```shell\nssh-keygen -f pi_rsa\n```\n\nConfigure client:\n\n```shell\ncat \u003c\u003cEOT \u003e\u003e ~/.ssh/config\nHost pi\n HostName «IP»\n User pi\n IdentityFile ~/.ssh/pi_rsa\nEOT\n```\n\nCopy key to Raspberry Pi:\n\n```shell\nssh-copy-id -i ~/.ssh/pi_rsa.pub pi\n```\n\n## Ansible playbooks\n\nInstall 3rd party roles:\n\n```shell\nansible-galaxy install -r requirements.yml\n```\n\n### Pimp my Pi playbooks\n\nVarious playbooks to improve vanilla Raspberry Pi setup:\n\n```shell\nansible-playbook pimpmypi.yml\n```\n\nRoles:\n\n* common - missing pieces of vanilla Raspberry distribution\n* aria2 - the fastest utility for downloading files\n* docker - Docker repository and packages\n* fluentbit - send systemd logs to [GCP Logging](https://cloud.google.com/logging)\n  and/or [Loki](https://grafana.com/oss/loki/), see [readme](roles/fluentbit/README.md)\n* grafana - monitoring with [Grafana Cloud](https://grafana.com/products/cloud/) (free tier)\n* hdidle - spin-down disks, see [Github](https://github.com/adelolmo/hd-idle)\n* log2ram - move logs into RAM, see [Github](https://github.com/azlux/log2ram)\n* posfix - forward mails to real account\n* smartmontools - monitor hard drives\n\n### Other playbooks\n\n* adguard - privacy all the time, see [AdGuard Home](https://adguard.com/en/adguard-home/overview.html)\n* backup - to backup or not to backup, that’s no question, see [Backup Ninja](https://0xacab.org/liberate/backupninja)\n* hyperion - ambient lighting, see [Hyperion](https://hyperion-project.org/)\n* kodi - the best [media center](https://kodi.wiki/view/Main_Page), see [readme](roles/kodi/README.md)\n* raspotify, shairport - make my retired HiFi great again: [Raspotify](https://github.com/dtcooper/raspotify)\n  , [Librespot](https://github.com/librespot-org/librespot), [Shairport](https://github.com/mikebrady/shairport-sync)\n* samba - my family disk for files and automated backups, see [Samba](https://www.samba.org)\n* tailscale - VPN done right, see [Tailscale](https://tailscale.com/)\n* traefik - Reverse proxy, see [Traefik](https://doc.traefik.io/traefik/)\n* transmission - BitTorrent daemon, see [Transmission](https://transmissionbt.com)\n\n### Upgrade playbook\n\nUpgrade system to the latest Bullseye:\n\n```shell\nansible all -m apt -a \"upgrade=yes update_cache=yes\"\n```\n\nThe following packages have versions pinned and needs to updated explicitly:\n\n* adguard\n* grafana-agent\n* kodi\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkuthan%2Fraspberry-ansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkuthan%2Fraspberry-ansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkuthan%2Fraspberry-ansible/lists"}