Install openSUSE on your VPS, no matter what the current OS is
Find a file
2023-12-05 18:39:36 +03:00
.github/ISSUE_TEMPLATE Update issue templates 2022-02-06 18:00:36 +08:00
LICENSE Initial commit 2021-05-27 12:09:26 +08:00
README.md Reverted shortlink 2023-11-27 19:07:08 +03:00
vps2suse Merging changes to main after testing (#1) 2023-11-27 17:38:44 +03:00

VPS2SUSE

Install openSUSE on your VPS, no matter what the current OS is.

Usage

  1. Install curl with your current package manager

  2. Run this script

$ curl -OL https://raw.githubusercontent.com/U2FsdGVkX1/vps2suse/main/vps2suse # or use https://cdn.jsdelivr.net/gh/U2FsdGVkX1/vps2suse@main/vps2suse
$ chmod +x vps2suse
$ sudo ./vps2suse #[OPTIONS]
  1. Sync data and reboot
$ sudo $SHELL -c 'sync && reboot -f'
  1. Connect to server after about 3 minutes.
# the root password from the original system (or by using vps2suse as password if no root password was set).
$ ssh root@your-server-ip
  1. Change your root password
passwd

Options

-h Show help messages.
-s Set OS version, For example "-s Leap-15.3" (Default: Tumbleweed).
-c Set architecture type for the container image (Default: auto detect).
-m Set mirror address (Default: https://download.opensuse.org).

Notes

The script adds a systemd unit to copy the route to gateway by default. It can be disabled using

sudo systemctl disable setup-gateway.service

Credits

This project is based on vps2arch

License

GNU General Public License 3.0