{"id":15178813,"url":"https://github.com/mil-ex/pi5_home","last_synced_at":"2026-02-27T09:05:33.018Z","repository":{"id":251361130,"uuid":"836461627","full_name":"Mil-ex/Pi5_Home","owner":"Mil-ex","description":"A low cost home server solution with the Raspberry Pi 5","archived":false,"fork":false,"pushed_at":"2024-08-02T12:01:21.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-05T11:42:30.951Z","etag":null,"topics":["grafana","nas","python","raspberry-pi","raspberry-pi-5"],"latest_commit_sha":null,"homepage":"","language":null,"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/Mil-ex.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-31T22:50:22.000Z","updated_at":"2024-08-02T12:01:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"c41d1045-639b-46df-b6e8-6725436fd3b8","html_url":"https://github.com/Mil-ex/Pi5_Home","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"5b757c1badfaf8b5f475ffd760b4237a541d6925"},"previous_names":["mil-ex/pi5_home"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mil-ex%2FPi5_Home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mil-ex%2FPi5_Home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mil-ex%2FPi5_Home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mil-ex%2FPi5_Home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mil-ex","download_url":"https://codeload.github.com/Mil-ex/Pi5_Home/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240365951,"owners_count":19790006,"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":["grafana","nas","python","raspberry-pi","raspberry-pi-5"],"created_at":"2024-09-27T15:23:20.216Z","updated_at":"2026-02-27T09:05:32.952Z","avatar_url":"https://github.com/Mil-ex.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Hello dear fellas and welcome to my very first public github repository.\nI'm an aerospace engineer from Germany and would like to share and improve some of my home projects. \n\nThis projects is for everyone who is out-of-cash, but wants to have an own home server.\nThis project aims to create a all-in-one home server for all my needs:\n1) Self-hosted NAS with 2 SSDs (Geekworm X1007 PCIe Pi5 hat)\n2) Process and analyze data (e.g. finances from .csv files)\n3) Grafana Server: dashboard to visualize data \n4) Show some of Pi's data on a small OLED screen\n5) ...\n\nThis git repository shall be a reference guide to set everything up, learn how to use git properly, get better in programming and understanding Linux, the Pi and microcontroller, get new insights from others and expand the home server by new features and so on.\n\nThe Home Server has a custom made case (3D-printed), the above mentioned SSD-hat, a small 40x40 fan and an I2C OLED Display. \nYou can find my Raspberry Pi5 Home Server case with further information here:\n\n## Needed parts\n\n## Software\n\n### OS\nFirstly the Operating System needs to be loaded onto an SD-Card. \nThe OS is the RASPBERRY PI OS **LITE** (64-BIT), with set username, password and enabled ssh! Do not set up any WiFi.\n\nAfter installing, put the SD card into the Raspberry Pi and connect the SATA cable on the board, which connects the Pi with the SATA hat.\n\n### NAS\n#### Enable PCIe\nFirst we need to edit the Pi's config.txt to enable the PCIe port. \n``\nsudo nano /boot/firmware/config.txt\n``\n\n\nNavigate to the bottom and add these lines beneath [all].\n```\n# Enable the PCIe external connector\ndtparam=pciex1\ndtparam=pciex1_gen=3\n```\nSave and exit. (CTRL+X -\u003e Y -\u003e *Enter*)\n\n\nReboot the Pi and connect again.\n``\nsudo reboot\n``\n\n\nDisplay your PCIe devices and make sure that the SATA Controller is listed.\n``\nsudo lspci\n``\n\n![lspci](png/lspci.png) \n\n\n\n#### Mount the drives\nTo mount the drives, we firstly need to delete possible mounts and partitions on the drives. In the following you need to change ?? and ? with your respective partition name like *sda1* and *sda*.\n\nUse *lsblk* to see if there are any mountpoints or partitions. If so, use the following code snippet:\n``\nsudo umount /dev/sd??; sudo wipefs --all --force /dev/sd??; sudo wipefs --all --force /dev/sd?\n``\n\nReboot and use *lsblk* - there is no mountpoint nor partition:\n```\nsudo reboot\n--- ssh ---\nlsblk\n```\n\n![lsblk](png/lsblk.png) \n\n\n```\nsudo apt update\nsudo apt install -y gdisk\nsudo sgdisk -n 1:0:0 /dev/sda\nsudo sgdisk -n 1:0:0 /dev/sdb\nlsblk\nsudo reboot\n--- ssh ---\nsudo apt update\nsudo apt install -y mdadm\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmil-ex%2Fpi5_home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmil-ex%2Fpi5_home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmil-ex%2Fpi5_home/lists"}