Script for replacing existing Linux system with Void Linux on VPS servers.
Tested with Debian, Ubuntu and CentOS
Tested on VDSina.com, FirstByte.pro
- Root access
- SSH keys in
/root/.ssh/authorized_keys
- Installation time: ~2 minutes
wget https://raw.githubusercontent.com/Jipok/void-infect/refs/heads/master/void-infect.sh
chmod +x void-infect.sh
./void-infect.sh
The script automatically:
- Downloads and configures Void Linux rootfs
- Installs essential packages and Cute-bash
- Tune sysctl
- Replaces existing OS and reboots
No manual intervention required. Just run and wait for the reboot.
For installing Void Linux on a physical home server, use the alternative script:
wget https://raw.githubusercontent.com/Jipok/void-infect/refs/heads/master/void-install.sh
chmod +x void-install.sh
nano void-install.sh # Change settings in file header
./void-install.sh /dev/sdX # Replace with your target disk
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.