{"id":20162373,"url":"https://github.com/nothub/debian-autoinstall","last_synced_at":"2025-04-10T00:35:48.546Z","repository":{"id":115340417,"uuid":"518629613","full_name":"nothub/debian-autoinstall","owner":"nothub","description":"Generate customized Debian ISO images for automatic deployments.","archived":false,"fork":false,"pushed_at":"2025-02-13T17:10:55.000Z","size":321,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:21:44.929Z","etag":null,"topics":["debian","iso","preseed"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nothub.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":"2022-07-27T22:34:49.000Z","updated_at":"2025-02-13T17:10:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"674b96dc-606c-471e-a1e7-ac03146418d7","html_url":"https://github.com/nothub/debian-autoinstall","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/nothub%2Fdebian-autoinstall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothub%2Fdebian-autoinstall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothub%2Fdebian-autoinstall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nothub%2Fdebian-autoinstall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nothub","download_url":"https://codeload.github.com/nothub/debian-autoinstall/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137839,"owners_count":21053770,"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":["debian","iso","preseed"],"created_at":"2024-11-14T00:24:43.069Z","updated_at":"2025-04-10T00:35:48.527Z","avatar_url":"https://github.com/nothub.png","language":"Shell","readme":"# debian-autoinstall\n\nGenerate customized Debian ISO images for automatic deployments.\n\n## Usage\n\nRun `build.sh` to generate a hands-free ISO image.\n\n```\n./build.sh [-u username] [-p password] [-n hostname] [-d domain] [-a package] [-i iso_url] [-s sign_key] [-o path] [-x] [-z] [-v] [-h]\n```\n\n### Dependencies\n\nStart a [devbox](https://www.jetify.com/devbox) [shell](https://www.jetify.com/devbox/docs/quickstart/#launch-your-development-environment) with:\n\n```sh\ndevbox shell --pure\n```\n\nOr install all dependencies on a Debian 12 system:\n\n```sh\nsudo apt update\nsudo apt install curl git gnupg pwgen whois xorriso\n```\n\n### Clone repo\n\nClone this repository and `cd` into it.\n\n```sh\ngit clone https://github.com/nothub/debian-autoinstall.git\ncd debian-autoinstall\n```\n\n### SSH keys\n\nTo include SSH keys for remote access, add them to the `configs/authorized_keys` file.\n\n```sh\ncurl -fsSLo configs/authorized_keys https://github.com/nothub.keys\necho \"ssh-ed25519 AAAA... foo\" \u003e\u003e configs/authorized_keys\necho \"ssh-ed25519 AAAA... bar\" \u003e\u003e configs/authorized_keys\n```\n\n### Build ISO\n\n```sh\n# set user and password\n./build.sh -u 'hub' -p 'changeme'\n# set hostname and domain\n./build.sh -n 'calculon' -d 'example.org'\n# include additional apt packages\n./build.sh -a 'strace' -a 'unattended-upgrades'\n```\n\n### Flags\n\n```\n-u \u003cusername\u003e    Admin username\n-p \u003cpassword\u003e    Admin password\n-n \u003chostname\u003e    Machine hostname\n-d \u003cdomain\u003e      Machine domain\n-a \u003cpackage\u003e     Additional apt package\n-i \u003ciso_url\u003e     ISO download URL\n-s \u003csign_key\u003e    ISO pgp sign key\n-o \u003cout_file\u003e    ISO output file\n-x               Power off after install\n-z               Sudo without password\n-v               Enable verbose mode\n-h               Display this help message\n```\n\n### Password\n\nIf the `-p` flag is not set, a random admin password will be generated, printed to stdout and written to `\u003cout_file\u003e.auth`.\n\n### Hostname\n\nIf the `-n` flag is not set, a hostname will be generated at installation.\nThe hostname will be based on the installed machines mac addresses.\n\n### Restart\n\nIf the `-x` flag is not set, the machine will restart after the installation is finished.\n\n## Preseed Config\n\nFor an extended example, check:\nhttps://www.debian.org/releases/bookworm/example-preseed.txt\n\n## Debug in VM\n\nWhile running the installer, press `ctrl`+`alt`+`f4` to show the installers log output.\nTo switch back to the installers graphical interface, press `ctrl`+`alt`+`f1`.\nSwitch to any other TTY for an interactive shell.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothub%2Fdebian-autoinstall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnothub%2Fdebian-autoinstall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnothub%2Fdebian-autoinstall/lists"}