Creates a ~90MB ISO image for installing a custom OS onto a VPS.
- Build image with your SSH keys integrated.
- SCP the ISO image to your VPS.
- Use
dd
to write it to your VPS's main disk. - Force reboot the VPS with
reboot -f
. - SSH into the VPS on port 8022.
- Overwrite the disk and install whatever you want.
Most distributions have guides on how to do step #6.
For other distributions, it usually goes like this:
- Download a rootfs of your favorite distro.
- Partition your VPS's disk.
- Create filesystems for root (and swap).
- Extract the rootfs to the newly created filesystem.
- Use
chroot
to configure the system. - Unmount everything and run
sync
. - Reboot into the distro.
- Automatic network configuration.
- SSH configured on port 8022.
- Just enough to install whatever you want.
- Based on Alpine Linux.
- Runs entirely from system RAM.
cat ~/.ssh/*.pub > authorized_keys
sudo ./build.sh