Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


One-click OS reinstallation Script (17 Linux + Windows)
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

One-click OS reinstallation Script (17 Linux + Windows)

bin456789bin456789 Member
edited November 2024 in Tutorials

Hey folks.
I've created a powerful one-click OS reinstallation script, and I'm excited to introduce it to you all.

Highlights

  • One-click reinstall VPS to Linux

    • Alpine, Debian, Kali, Ubuntu, CentOS, Anolis, RedHat, AlmaLinux, Rocky, OpenCloudOS, Oracle Linux, Fedora, openEuler, openSUSE, NixOS, Arch Linux, Gentoo
  • One-click reinstall VPS to Windows

    • Uses the official ISO for installation instead of custom images. The script automatically retrieves the ISO link and installs Virtio and other drivers.
  • Supports installation in any direction, i.e., Linux to Linux, Linux to Windows, Windows to Windows, Windows to Linux

  • No need to input IP parameters; automatically recognizes dynamic and static IPs, supports /32, /128, gateway outside subnet, IPv6 only, dual NIC and other special network configurations
  • Specially optimized for low-spec servers, requires less memory than the official netboot
  • Supports BIOS and EFI boot, and ARM architecture
  • No homemades image included, all resources are obtained in real-time from source sites

Usages

https://github.com/bin456789/reinstall
https://github.com/bin456789/reinstall/blob/main/README.en.md

«13

Comments

  • Is OpenBSD supported?

  • @suut said:
    Is OpenBSD supported?

    No BSDs because I am not familiar with them.

  • @bin456789

    The biggest problem is that it needs to be able to customize the ssh port, which is very important

  • @Dudwen821 said:
    @bin456789

    The biggest problem is that it needs to be able to customize the ssh port, which is very important

    Already supported

  • TerabixTerabix Member, Patron Provider

    Really cool stuff, good job!

  • DataWagonDataWagon Member, Patron Provider

    Looks cool. How do you go about booting a live OS without overwriting anything?

  • @DataWagon said:
    Looks cool. How do you go about booting a live OS without overwriting anything?

    Alpine Linux provides a netboot image that can be booted using GRUB.

    Thanked by 1dev_vps
  • DataWagonDataWagon Member, Patron Provider

    @bin456789 said:

    @DataWagon said:
    Looks cool. How do you go about booting a live OS without overwriting anything?

    Alpine Linux provides a netboot image that can be booted using GRUB.

    What if the user is running Windows as his current OS but wants to boot netboot.xyz or the live OS, is it possible? Wouldn't you need to overwrite Windows bootloader?

  • @DataWagon said:

    @bin456789 said:

    @DataWagon said:
    Looks cool. How do you go about booting a live OS without overwriting anything?

    Alpine Linux provides a netboot image that can be booted using GRUB.

    What if the user is running Windows as his current OS but wants to boot netboot.xyz or the live OS, is it possible? Wouldn't you need to overwrite Windows bootloader?

    Hold on guys, I'll grab some popcorns for this

  • bin456789bin456789 Member
    edited November 2024

    @DataWagon said:

    @bin456789 said:

    @DataWagon said:
    Looks cool. How do you go about booting a live OS without overwriting anything?

    Alpine Linux provides a netboot image that can be booted using GRUB.

    What if the user is running Windows as his current OS but wants to boot netboot.xyz or the live OS, is it possible? Wouldn't you need to overwrite Windows bootloader?

    No problem. To be precise, it's not about overwriting the Windows bootloader, but rather appending the alpine/netboot.xyz boot entry. Therefore, you may find that after returning from alpine/netboot.xyz to Windows, the alpine/netboot.xyz boot entry might still exist, although it's hidden and won't automatically start.

    Thanked by 3dev_vps mcs mandala
  • @bin456789 great job, I love it
    Could I use your script for my web ?

  • @reyokh said:
    @bin456789 great job, I love it
    Could I use your script for my web ?

    I'm not sure what you mean. If you're talking about sharing or reposting, it's welcome.

  • @bin456789 said:

    @reyokh said:
    @bin456789 great job, I love it
    Could I use your script for my web ?

    I'm not sure what you mean. If you're talking about sharing or reposting, it's welcome.

    I develop my own billing and vps manage project.

    Want to know if I can add or integrated your script, so user can install Windows 10 or Windows 11 on it

  • bin456789bin456789 Member
    edited December 2024

    @reyokh Your project looks great, and I'm glad the script will be integrated into it.

  • Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

  • @Void said:
    Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

    Personally I will not install any OS on a vps that is not allowed by the provider.

    Once found out, that is good enough reason to terminate the vps and do not expect any refund.

  • @dev_vps said:

    @Void said:
    Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

    Personally I will not install any OS on a vps that is not allowed by the provider.

    Once found out, that is good enough reason to terminate the vps and do not expect any refund.

    Wonder why. It can’t be the spec constraints so some MS licensing terms or something like that ?

  • @Void said:

    @dev_vps said:

    @Void said:
    Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

    Personally I will not install any OS on a vps that is not allowed by the provider.

    Once found out, that is good enough reason to terminate the vps and do not expect any refund.

    Wonder why. It can’t be the spec constraints so some MS licensing terms or something like that ?

    simple good enough reason
    terms and conditions of the provider that one agrees to at the time of purchase

    Thanked by 1tototo
  • @dev_vps said:

    @Void said:

    @dev_vps said:

    @Void said:
    Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

    Personally I will not install any OS on a vps that is not allowed by the provider.

    Once found out, that is good enough reason to terminate the vps and do not expect any refund.

    Wonder why. It can’t be the spec constraints so some MS licensing terms or something like that ?

    simple good enough reason
    terms and conditions of the provider that one agrees to at the time of purchase

    lol. I’m interested in the technical aspect of it.

    Thanked by 1iKeyZ
  • Not that I’m going to try it and get terminated, but is there a reason other than “because ToS said so” ?

  • @Void said:
    Not that I’m going to try it and get terminated, but is there a reason other than “because ToS said so” ?

    https://answers.microsoft.com/en-us/windows/forum/all/why-does-windows-10-require-another-license-for-a/c344db7b-3a8e-4cb1-a30d-35e3f65e1007

  • @Void said:
    Not that I’m going to try it and get terminated, but is there a reason other than “because ToS said so” ?

    yes, licensing compliance

    Thanked by 1Void
  • @Void said:
    lol. I’m interested in the technical aspect of it.

    Technically, it is possible to install Windows on a Linux-only KVM VPS.

    Thanked by 1plumberg
  • You don't want to make a man who's this happy sad by not correctly licensing Windows.

    Thanked by 2plumberg gbzret4d
  • dev_vpsdev_vps Member
    edited December 2024

    @Void said:

    @dev_vps said:

    @Void said:

    @dev_vps said:

    @Void said:
    Will it let me install windows on a KVM VPS that is restricted to only Linux by a provider ?

    Personally I will not install any OS on a vps that is not allowed by the provider.

    Once found out, that is good enough reason to terminate the vps and do not expect any refund.

    Wonder why. It can’t be the spec constraints so some MS licensing terms or something like that ?

    simple good enough reason
    terms and conditions of the provider that one agrees to at the time of purchase

    lol. I’m interested in the technical aspect of it.

    kvm … that means yes

  • I will have the opportunity to try it later.

  • So cool, how many years learn and work in IT in able to write this script?

  • @kv1108 said:
    So cool, how many years learn and work in IT in able to write this script?

    varies for every person … could be as little as six months

  • Nice script

  • donlidonli Member

    Well I was able to install Windows 110 Pro from Debian on my VPS using b this script. Very impressive!

    Thanked by 1lala_th
Sign In or Register to comment.