How to Install CHR In Linux

Introduction
I write this article because my friend request tutorial how to convert ubuntu server to CHR (Mikrotik), He have VPS but can't customize the ISO file, and the solution is reinstall use dd command .
Prerequisites
- Ubuntu/Any Linux Distros
- Git
- Internet Connection
Setup and Running Script
Clone my repository on github
git clone https://github.com/aryapramudika/linux-chr.git
and then run the script, define chr version and disk path
cd linux-chr
chmod +x linux-chr.sh
bash linux-chr.sh -v 7.13.3 -p securepass -d /dev/sda
Details how to use this script.
Usage: linux-chr.sh [OPTIONS]
Install MikroTik RouterOS (CHR)
Options:
-v, --version VERSION CHR version to install (default: 7.13.3)
-p, --password PASSWORD Set admin password (default: admin)
-d, --device DEVICE Target disk device (default: /dev/vda)
-h, --help Show this help message
Example:
linux-chr.sh -v 7.13.3 -p mypassword -d /dev/vda