{"id":19965677,"url":"https://github.com/realies/rpi-compute-node","last_synced_at":"2026-02-20T19:33:18.688Z","repository":{"id":252229012,"uuid":"834257168","full_name":"realies/rpi-compute-node","owner":"realies","description":"clean up script for raspberry pi os lite and ubuntu server 64 bit that also installs docker","archived":false,"fork":false,"pushed_at":"2024-08-08T23:48:56.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T15:10:14.954Z","etag":null,"topics":["cleanup","compute","docker","lite","node","raspberry-pi","rpi","ubuntu"],"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/realies.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":"2024-07-26T19:20:57.000Z","updated_at":"2024-08-09T00:31:02.000Z","dependencies_parsed_at":"2024-08-08T13:48:44.633Z","dependency_job_id":"94c2d351-49e7-401c-9c39-e41b9f9d29f7","html_url":"https://github.com/realies/rpi-compute-node","commit_stats":null,"previous_names":["realies/rpi-compute-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/realies/rpi-compute-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realies%2Frpi-compute-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realies%2Frpi-compute-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realies%2Frpi-compute-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realies%2Frpi-compute-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realies","download_url":"https://codeload.github.com/realies/rpi-compute-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realies%2Frpi-compute-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29661609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cleanup","compute","docker","lite","node","raspberry-pi","rpi","ubuntu"],"created_at":"2024-11-13T02:30:04.245Z","updated_at":"2026-02-20T19:33:18.660Z","avatar_url":"https://github.com/realies.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rpi-compute-node\n\nA streamlined setup script for transforming a fresh Raspberry Pi OS Lite or Ubuntu Server (64-bit) installation into a lean, Docker-ready compute node.\n\n## Overview\n\nThis project provides a bash script that optimises a Raspberry Pi for compute-intensive tasks by:\n\n1. Cleaning up unnecessary packages and services\n2. Configuring hardware settings for optimal performance\n3. Installing and setting up Docker\n\n## Quick Start\n\nTo run the script, execute the following command on your Raspberry Pi:\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/realies/rpi-compute-node/master/setup.sh | sudo bash\n```\n\n**Note:** Always review scripts before running them with root privileges.\n\n## Features\n\n- System update and upgrade\n- Dynamic Raspberry Pi configuration optimisation\n- Backup and restore of original configuration\n- Swap disable\n- Unnecessary service disabling and package removal\n- Module blacklisting for Bluetooth, Wi-Fi, and audio\n- Temporary filesystem mount configuration\n- Kernel command line modification for cgroup support\n- APT timer disabling\n- Docker installation and user setup\n\n## Detailed Changes\n\n### Hardware Configuration\n\n- Creates a backup of the original config.txt file\n- Dynamically updates config.txt, preserving non-conflicting settings\n- Disables onboard audio, camera, display, Bluetooth, and Wi-Fi\n- Enables 64-bit mode and CPU boost\n- Configures GPU memory to minimum (16MB)\n- Overclocks CPU to 2.2GHz\n- Disables various interfaces (I2C, SPI, UART)\n\n### Software Configuration\n\n- Removes unnecessary packages (e.g., Bluetooth, Wi-Fi, audio-related)\n- Disables services like avahi-daemon, ModemManager, and others\n- Blacklists modules related to Bluetooth, Wi-Fi, and audio\n- Configures kernel parameters for optimal container support\n\n### Docker Setup\n\n- Installs Docker from the official repository\n- Adds the primary user to the Docker group\n\n## Compatibility\n\nThis script is now compatible with both Raspberry Pi OS Lite and Ubuntu Server (64-bit) installations. It dynamically adjusts the configuration based on the existing setup, making it more versatile across different Raspberry Pi operating systems.\n\n## Requirements\n\n- Raspberry Pi 3 or newer\n- Fresh installation of Raspberry Pi OS Lite or Ubuntu Server (64-bit)\n- Internet connection\n\n## Caution\n\nThis script makes significant changes to your Raspberry Pi configuration. It's designed for use cases where a minimal, compute-focused setup is desired. Some functionality (like Wi-Fi and Bluetooth) will be disabled. While the script creates a backup of the original config.txt file, always ensure you have a full backup of your system before running this script. Test in a safe environment before using in production.\n\n## Idempotency\n\nThe script has been designed to be idempotent, meaning it can be safely run multiple times without causing errors or unintended changes. Key idempotent features include:\n\n- Backing up the original config.txt file before making changes\n- Restoring the original configuration before applying changes on subsequent runs\n- Selectively updates config.txt, preserving original settings except for those explicitly managed by the script\n- Avoiding duplicate entries in configuration files\n- Skipping already completed steps\n- Preventing re-installation of already installed packages\n- Avoiding re-adding users to groups they're already part of\n\nThis allows for safe re-runs of the script, whether for updates or in case of interrupted execution.\n\n## Post-Installation\n\nAfter running the script, it's recommended to reboot your Raspberry Pi to ensure all changes take effect:\n\n```bash\nsudo reboot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealies%2Frpi-compute-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealies%2Frpi-compute-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealies%2Frpi-compute-node/lists"}