JI
Jipok/void-infect
Install Void linux over the existing OS on VPS
Void Linux VPS Installer
Script for replacing existing Linux system with Void Linux on VPS servers.
Tested with Debian, Ubuntu and CentOS
Tested on VDSina.com, FirstByte.pro
Prerequisites
- Root access
- SSH keys in
/root/.ssh/authorized_keys(or provide GitHub username) - Installation time: ~2 minutes
Usage
wget https://raw.githubusercontent.com/Jipok/void-infect/master/void-infect.sh
chmod +x void-infect.sh
./void-infect.sh
# or
./void-infect.sh GithubUsernameThe script automatically:
- Downloads and configures Void Linux rootfs
- Imports SSH keys from GitHub (if username provided) or preserves existing ones
- Installs essential packages and Cute-bash
- Tune sysctl
- Replaces existing OS and reboots
No manual intervention required. Just run and wait for the reboot.
Home Server Edition
For installing Void Linux on a physical home server, use the alternative script:
wget https://raw.githubusercontent.com/Jipok/void-infect/master/void-install.sh
chmod +x void-install.sh
nano void-install.sh # Change settings in file header
./void-install.sh /dev/sdX GithubUsername # Replace with your target disk and username
# or
./void-install.sh /dev/sdX "ssh-ed25519 AAAA..."Note: This script must be run from a LiveUSB environment or when installing to a secondary disk that's not currently hosting the running system.

