{"id":15113762,"url":"https://github.com/adam-beckett-1999/shell-scripts","last_synced_at":"2026-01-19T11:32:22.586Z","repository":{"id":253712206,"uuid":"844288440","full_name":"adam-beckett-1999/Shell-Scripts","owner":"adam-beckett-1999","description":"A collection of shell scripts i've thrown together. Feel free to use them and adapt to your needs.","archived":false,"fork":false,"pushed_at":"2024-11-19T16:04:02.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T18:16:06.119Z","etag":null,"topics":["bash","bash-script","shell","shell-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam-beckett-1999.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":"2024-08-18T23:52:12.000Z","updated_at":"2024-11-19T16:04:15.000Z","dependencies_parsed_at":"2024-08-19T01:30:10.241Z","dependency_job_id":"6a24c8b0-d0f0-4fc5-9c91-3deeb1616470","html_url":"https://github.com/adam-beckett-1999/Shell-Scripts","commit_stats":null,"previous_names":["adam-beckett-1999/shell-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-beckett-1999%2FShell-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-beckett-1999%2FShell-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-beckett-1999%2FShell-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam-beckett-1999%2FShell-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam-beckett-1999","download_url":"https://codeload.github.com/adam-beckett-1999/Shell-Scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378140,"owners_count":20929296,"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":["bash","bash-script","shell","shell-scripts"],"created_at":"2024-09-26T01:23:10.836Z","updated_at":"2026-01-19T11:32:22.560Z","avatar_url":"https://github.com/adam-beckett-1999.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Scripts\n\nThis repository contains a collection of shell scripts i've thrown together. Feel free to use them and adapt to your needs.\n\n---\n\n- qemu-guest-agent-install.sh\n- ubuntu-debian-cloudinit-template-install.sh\n\n---\n\n## CloudImage Template Install Scripts\n\nThese shell scripts are designed to automate the creation and management of cloud-init enabled virtual machine templates. These scripts are intended for use with Proxmox VE (PVE) and are highly customizable.\n\n## How to Use the CloudImage Template Install Script\n\n### Prerequisites\n\n- **Proxmox VE (PVE)**: This script is designed for use in a Proxmox VE environment, specifically to be run on a Proxmox host.\n- **virt-customize**: Part of the `libguestfs` package, used to customize virtual machine images. You can install this with the following command: 'apt install libguestfs-tools'.\n\n### Script Parameters\n\nThe script accepts several command-line arguments, allowing you to customize the virtual machine template creation process. Below are the available options:\n\n- `-i VMID`: The unique ID for the virtual machine. Default is `5000`.\n- `-n NAME`: The name of the virtual machine template. Default is `linux-cloudinit-template`.\n- `-m MEMORY`: The amount of memory (in MB) allocated to the virtual machine. Default is `2048`.\n- `-c CORES`: The number of CPU cores. Default is `4`.\n- `-s SOCKETS`: The number of CPU sockets. Default is `1`.\n- `-t CPU_TYPE`: The CPU type. Default is `x86-64-v2-AES`.\n- `-b BRIDGE`: The network bridge to be used. Default is `vmbr0`.\n- `-d STORAGE`: The storage location for the virtual machine disk. Default is `local-lvm`.\n- `-o OS_TYPE`: The operating system type (`ubuntu` or `debian`).\n- `-v OS_VERSION`: The version of the operating system (e.g., `focal` for Ubuntu 20.04, `bullseye` for Debian 11).\n\n### Example Usage\n\nHere are a few examples of how to use the script:\n\n1. **Create a template for Ubuntu Focal (20.04) with default settings:**\n\n```bash\n   ./ubuntu-debian-cloudinit-template-install.sh -o ubuntu -v focal\n```\n\n2. **Create a template for Ubuntu Jammy (22.04) with custom VM ID and name:**\n\n```bash\n   ./ubuntu-debian-cloudinit-template-install.sh -o ubuntu -v jammy -i 6000 -n ubuntu-jammy-template\n```\n\n3. **Create a template for Debian Bullseye (11) with custom memory and CPU settings:**\n\n```bash\n   ./ubuntu-debian-cloudinit-template-install.sh -o debian -v bullseye -i 6100 -n debian-bullseye-template -m 4096 -c 4 -t host\n```\n\n## Contributing\n\nContributions are welcome! If you have ideas for improving the scripts or adding new features, feel free to open an issue or submit a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-beckett-1999%2Fshell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam-beckett-1999%2Fshell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam-beckett-1999%2Fshell-scripts/lists"}