{"id":50824720,"url":"https://github.com/chandlertee/htpiec","last_synced_at":"2026-06-13T17:05:20.513Z","repository":{"id":363259448,"uuid":"1255444391","full_name":"chandlertee/htpiec","owner":"chandlertee","description":"Scripts and config for a Raspberry Pi home media + ebook server (the HTPieC) — companion to a chandlerthompson.dev post","archived":false,"fork":false,"pushed_at":"2026-06-06T22:05:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T06:34:47.477Z","etag":null,"topics":["calibre","home-lab","htpc","media-server","plex","raspberry-pi","self-hosting"],"latest_commit_sha":null,"homepage":"https://chandlerthompson.dev/posts/build-an-htpiec-home-theater-pc/","language":"Shell","has_issues":true,"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/chandlertee.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T20:46:52.000Z","updated_at":"2026-06-06T22:09:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chandlertee/htpiec","commit_stats":null,"previous_names":["chandlertee/htpiec"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/chandlertee/htpiec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandlertee%2Fhtpiec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandlertee%2Fhtpiec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandlertee%2Fhtpiec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandlertee%2Fhtpiec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chandlertee","download_url":"https://codeload.github.com/chandlertee/htpiec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chandlertee%2Fhtpiec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34292326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["calibre","home-lab","htpc","media-server","plex","raspberry-pi","self-hosting"],"created_at":"2026-06-13T17:05:19.728Z","updated_at":"2026-06-13T17:05:20.505Z","avatar_url":"https://github.com/chandlertee.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# htpiec\n\nThe scripts and config behind my Raspberry Pi home media + ebook server — the \"HTPieC.\"\n\nCompanion to the post: **[Build a HTPieC: your ultimate home theater Pie computer](https://chandlerthompson.dev/posts/build-an-htpiec-home-theater-pc/)**.\n\nA low-power Pi 5 running:\n\n- **Plex** for movies and shows\n- a **Calibre** content server for an ebook library over HTTP\n- external SSD/HDD mounts for media + backup\n- a nightly `rsync` backup\n\nThese are samples to adapt, not a turnkey image. Device names (`/dev/sda1`), paths, and ports depend on your hardware — read each script before running it, since they use `sudo`.\n\n## Hardware\n\n- Raspberry Pi 5 (8GB); a Pi Zero 2 W works for lighter libraries\n- 128GB microSD (OS)\n- External SSD (media) + external HDD (backup)\n- A power supply rated for the Pi 5's 5V/5A draw\n\n## Quick start\n\n```bash\ngit clone https://github.com/chandlertee/htpiec ~/htpiec\ncd ~/htpiec\n\n# 1. Install Plex, Calibre, and backup tooling\n./scripts/install.sh\n\n# 2. Mount your drives (see config/fstab.sample), then create the library dirs\nsudo mkdir -p /mnt/media /mnt/backup\n\n# 3. Run the Calibre content server as a managed service\nsudo cp systemd/calibre-server.service /etc/systemd/system/\nsudo systemctl daemon-reload\nsudo systemctl enable --now calibre-server\n\n# 4. Schedule the nightly backup\ncrontab config/htpiec-backup.cron\n```\n\n## What's here\n\n| Path | What it does |\n|---|---|\n| `scripts/install.sh` | Installs Plex (current signing-key method), Calibre, rsync, smartmontools; enables SSH |\n| `scripts/backup.sh` | Incremental `rsync` of `/mnt/media` → `/mnt/backup` — defaults to a dry run, logs each run |\n| `systemd/calibre-server.service` | Runs `calibre-server` as a managed service (the blog post starts it by hand) |\n| `config/fstab.sample` | Example `/etc/fstab` entries for the media + backup drives |\n| `config/htpiec-backup.cron` | The nightly 2 AM backup schedule |\n\n## Notes\n\n- **Expose it safely.** If you forward ports, terminate TLS (Let's Encrypt). Don't serve library contents or session credentials over plain HTTP.\n- **Retro gaming.** The same Pi can host RetroPie — see [Networked retro gaming](https://chandlerthompson.dev/posts/networked-retro-gaming-retropie-arcade/).\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandlertee%2Fhtpiec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchandlertee%2Fhtpiec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchandlertee%2Fhtpiec/lists"}