Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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)

2

Comments

  • its good i tried it on dedicated server and its better and easier than ipmi to reinstall any operating system

    Thanked by 1vicaya
  • ChunkserveChunkserve Member, Patron Provider

    @bin456789 said:
    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

    Looks awesome! Keep up the good work :)
    Maybe some option to preinstall services on Linux would be a cool feature for the enduser? (like. webserver, FTP server or hosting panels)?

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

    i can even install windows 11 ltsc. awesome script for sure.

  • I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

  • @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    it may not work on dedicated server because the vary of network card driver

  • @bin456789 said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    it may not work on dedicated server because the vary of network card driver

    Is it possible to set up custom variables like RAID0/RAID1/LVM?

  • @lala_th said:

    @bin456789 said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    it may not work on dedicated server because the vary of network card driver

    Is it possible to set up custom variables like RAID0/RAID1/LVM?

    no. because i dont use them

  • So cool!!

  • @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    Can you get a consol to see what happened?

  • @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    Have you checked novnc ? If provided

  • Great job man. worked perfectly on Digitalocean

    Thanked by 1GPoe
  • @R4ain said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    Have you checked novnc ? If provided

    I cant access anything after, no ssh no rdp, i need to reinstall it from ovh panel.

  • @Quicky said:

    @R4ain said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    Have you checked novnc ? If provided

    I cant access anything after, no ssh no rdp, i need to reinstall it from ovh panel.

    To check vnc : https://support.us.ovhcloud.com/hc/en-us/articles/360002208690-How-to-Access-a-Public-Cloud-Instance-via-VNC

    Hope this helps

  • @R4ain said:

    @Quicky said:

    @R4ain said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    Have you checked novnc ? If provided

    I cant access anything after, no ssh no rdp, i need to reinstall it from ovh panel.

    To check vnc : https://support.us.ovhcloud.com/hc/en-us/articles/360002208690-How-to-Access-a-Public-Cloud-Instance-via-VNC

    Hope this helps

    Kimsufi does not offer that

  • is it suitable for digitalocean?

  • @fengzheng said:
    is it suitable for digitalocean?

    Yes, even @alifya confirmed that few posts behind.

  • kevindskevinds Member, LIR

    @bin456789 said: Alpine, Debian, Kali, Ubuntu, CentOS, Anolis, RedHat, AlmaLinux, Rocky, OpenCloudOS, Oracle Linux, Fedora, openEuler, openSUSE, NixOS, Arch Linux, Gentoo

    Raspbian?

  • @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    add --iso 'iso.url' manually

  • @budi1413 said:

    @Quicky said:
    I tried on kimsufi and don't seem to work?

    i downloaded reinstall.sh

    than

    bash reinstall.sh windows --image-name 'Windows 11 Pro' --lang en-us

    it said

    windows
    Username: administrator

    Reboot to start the installation.

    i did reboot and after few hours RDP and SSH does not work. Did i miss something?

    add --iso 'iso.url' manually

    Tried and same result.

  • dev_vpsdev_vps Member
    edited January 2025

    @Quicky said:

    I tried on kimsufi and don't seem to work?

    How to Install Windows Server OS on OVH, Kimsufi, & SoYouStart Dedicated Server
    https://alstonantony.com/install-windows-on-server/

  • YassGamesYassGames Member
    edited January 2025

    This is awesome, thanks much for sharing it. The only one had trouble installing it on is from ihostart.

    bash reinstall.sh ubuntu 24.04 --minimal

    Works on my boxes from hosthatch, hostbrr, racknerd, servarica, greencloud, hostthebest, and aquatis.

    Not sure why they don't work with the ihostart ones. The vnc shows it installing and everything working properly until it reboots and then it just reports a kernel panic and unable to mount root fs

    Thanked by 1servarica_hani
  • tsusutsusu Member
    edited January 2025

    How does this sorcery work? I thought you needed an external device to install a new OS?

  • @tsusu said:
    How does this sorcery work? I thought you needed an external device to install a new OS?

    It's a bash shell script so the sorcery is completely open to inspection and modification.

  • @tsusu said:
    How does this sorcery work? I thought you needed an external device to install a new OS?

    In the case of Ubuntu, it boots into an Alpine (ramdisk) live image via netboot.xyz and uses that to download an Ubuntu cloud image that it writes onto the disk and configures the OS.

  • massgrave.dev has some images to try as well :D

  • kevindskevinds Member, LIR
    edited January 2025

    @tsusu said:
    How does this sorcery work? I thought you needed an external device to install a new OS?

    Yes.. But http(s) servers can count as an external device.

    VPS providers where you have console access are easy to replace the OS on.. Others that you are not given a console (VNC or text) are a little more challenging. Amount of RAM in the system matters too depending on the OS you are trying to install.

    For any system you have console access you can copy netboot.xyz to and install a new system.

    I even had a script that would reinstall Raspbian (and enable SSHd) but it stopped working when they changed some partition sizes, now need to download, extract, mount, add the customization, unmount and dd the image overtop the existing OS, force reboot and it should work.

    Always more challenging to reinstall an OS on remote bare-metal systems without IPMI haha

  • kevindskevinds Member, LIR

    @dlman_1999 said:
    massgrave.dev has some images to try as well :D

    With the hard-stance against 'nulled' plugins on LET, I'm going to guess that link isn't allowed to be recommended either.

  • @kevinds said:

    @dlman_1999 said:
    massgrave.dev has some images to try as well :D

    With the hard-stance against 'nulled' plugins on LET, I'm going to guess that link isn't allowed to be recommended either.

    and pretty serious security risk

  • Is it possible to install Linux Mint desktop using this script?

  • @maxexx said:
    Is it possible to install Linux Mint desktop using this script?

    bash script for debian 11

    #!/bin/bash
    
    # Ensure the script is run as root
    if [ "$EUID" -ne 0 ]; then
      echo "Please run as root"
      exit
    fi
    
    # Backup current sources.list
    cp /etc/apt/sources.list /etc/apt/sources.list.bak
    
    # Add Linux Mint repositories
    echo "deb http://packages.linuxmint.com uma main upstream import backport" > /etc/apt/sources.list.d/linuxmint.list
    echo "deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse" > /etc/apt/sources.list.d/ubuntu.list
    echo "deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.list
    echo "deb http://archive.ubuntu.com/ubuntu focal-security main restricted universe multiverse" >> /etc/apt/sources.list.d/ubuntu.list
    
    # Import Linux Mint GPG key
    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3EE67F3D0FF405B2
    
    # Update package list
    apt-get update
    
    # Install Linux Mint base packages
    apt-get install --yes --no-install-recommends mint-meta-cinnamon
    
    # Optionally, install additional packages
    # apt-get install --yes mint-meta-codecs
    
    # Clean up
    apt-get autoremove --yes
    apt-get clean
    
    # Reboot the system
    echo "Installation complete. Rebooting..."
    reboot
    
Sign In or Register to comment.