{"name":"reinstall: One-Click OS Reinstallation Script for VPS Servers","description":"The `reinstall` script by bin456789 provides a robust one-click solution for reinstalling operating systems on VPS servers. It supports a wide array of Linux distributions and Windows versions, enabling seamless transitions between different OS types. This powerful tool automates IP configuration, optimizes for low-spec environments, and ensures reliable installations using official media.","github":"https://github.com/bin456789/reinstall","url":"https://osrepos.com/repo/bin456789-reinstall","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/bin456789-reinstall","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/bin456789-reinstall.md","json":"https://osrepos.com/repo/bin456789-reinstall.json","topics":["linux","windows","vps","reinstall","shell-script","installer","system-administration","netboot"],"keywords":["linux","windows","vps","reinstall","shell-script","installer","system-administration","netboot"],"stars":null,"summary":"The `reinstall` script by bin456789 provides a robust one-click solution for reinstalling operating systems on VPS servers. It supports a wide array of Linux distributions and Windows versions, enabling seamless transitions between different OS types. This powerful tool automates IP configuration, optimizes for low-spec environments, and ensures reliable installations using official media.","content":"## Introduction\nThe `reinstall` script by bin456789 is a highly-starred, one-click solution designed for reinstalling operating systems on Virtual Private Servers (VPS). It simplifies the complex process of deploying a new OS, supporting a vast range of Linux distributions and Windows versions. This versatile script handles reinstallation in any direction, whether it's Linux to Linux, Linux to Windows, Windows to Windows, or Windows to Linux.\n\nKey features include:\n*   Support for 19 common Linux distributions.\n*   One-click reinstallation to Windows using official original ISOs, with automatic fetching of ISO links and installation of public cloud drivers like VirtIO.\n*   Automatic and intelligent IP configuration, supporting various network setups.\n*   Optimized for low-spec servers, requiring less memory than official netboot methods.\n*   Ensures data safety by identifying hard drives using partition table IDs.\n*   Supports BIOS, EFI boot, and ARM servers.\n*   All resources are obtained in real-time from mirror sites, with no homemade images included.\n\n## Installation\nTo get started with `reinstall`, download the script appropriate for your current operating system.\n\n### For Linux Servers\nUse `curl` or `wget` to download the script:\nbash\ncurl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O ${_##*/} $_\n\n\n### For Windows Servers\n**Important:** Before proceeding, disable 'Real-time protection' in Windows Defender, as it may prevent `certutil` from downloading files.\nbatch\ncertutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat\n\nFor Windows 7, Vista, and Server 2008 (R2) users, manual download might be necessary due to outdated TLS/SHA-256 support. You would need to download `reinstall.bat` and `setup-x86.exe` (Cygwin) from the official GitHub repository and Cygwin website respectively, then run `reinstall.bat`.\n\n## Examples\nThe `reinstall` script offers various functionalities. Here are a few common use cases:\n\n### Install a Linux Distribution\nThis example installs Ubuntu 22.04. Remember, this will erase the entire hard disk.\nbash\nbash reinstall.sh ubuntu 22.04\n\nYou can also specify a password or SSH key:\nbash\nbash reinstall.sh debian 12 --password \"YourStrongPassword\" --ssh-key \"ssh-rsa AAAAB3NzaC...\"\n\n\n### DD RAW Image to Hard Disk\nDeploy a raw or compressed image directly to your hard drive. This also erases the entire disk.\nbash\nbash reinstall.sh dd --img \"https://example.com/path/to/your/image.xz\"\n\n\n### Install Windows from ISO\nInstall Windows, letting the script automatically search for the ISO or providing a direct link.\nbash\nbash reinstall.sh windows --image-name \"Windows 11 Enterprise LTSC 2024\" --lang en-us\n\nOr with a specific ISO link:\nbash\nbash reinstall.sh windows --image-name \"Windows 10 Pro\" --iso \"https://go.microsoft.com/fwlink/?linkid=...\"\n\nCommon optional parameters like `--password`, `--ssh-key`, `--ssh-port`, and `--rdp-port` are available across different features.\n\n## Why Use reinstall?\n*   **Simplicity and Speed:** Automates complex OS reinstallation with a single command, saving significant time and effort.\n*   **Extensive OS Support:** Offers broad compatibility with numerous Linux distributions and Windows versions, including server editions.\n*   **Reliability:** Uses official ISOs and intelligently integrates necessary drivers (like VirtIO) for a stable installation.\n*   **Smart Networking:** Automatically configures IP addresses, adapting to static, dynamic, IPv6-only, and complex subnet scenarios.\n*   **Resource Efficiency:** Optimized to run effectively on low-spec VPS environments.\n*   **Flexibility:** Supports various boot modes (BIOS, EFI) and ARM architectures, making it suitable for diverse server setups.\n*   **Safety Measures:** Employs partition table IDs to ensure the correct disk is targeted, minimizing the risk of data loss.\n\n## Links\n*   **GitHub Repository:** <a href=\"https://github.com/bin456789/reinstall\" target=\"_blank\">bin456789/reinstall</a>","metrics":{"detailViews":4,"githubClicks":2},"dates":{"published":null,"modified":"2025-12-26T08:01:25.000Z"}}