Install Alpinelinux on your VPS, no matter what the current OS is.
-
Install curl with your current package manager
-
Run this script
$ curl -OL https://raw.githubusercontent.com/SekaiMoe/vps2alpine/main/vps2alpine
$ chmod +x vps2alpine
$ sudo ./vps2alpine #[OPTIONS]
- Sync data and reboot
$ sudo $SHELL -c 'sync && reboot -f'
- Connect to server after about 3 minutes.
# the root password from the original system (or by using vps2alpine as password if no root password was set).
$ ssh root@your-server-ip
- Change your root password
passwd
-h Show help messages.
-s Set OS version, For example "-s Leap-15.3" (Default: Tumbleweed).
-a Set default zone (Default: 'Asia/ShangHai').
-m Set mirror address (Default: http://dl-cdn.alpinelinux.org/alpine).
This project is based on vps2arch
GNU General Public License 3.0