Automatic Installation of MikroTik Router OS (MikroTik CHR)
Learn how to install MikroTik Router OS (CHR) on your VPS with an automated script. Step-by-step instructions for setup, configuration, and connecting via Winbox.
Introduction
This guide simplifies the process of installing MikroTik Router OS on a VPS. By automating the installation with a script, there’s no need to manually enter commands in the MikroTik CLI console. Once complete, you’ll have a fully operational VPS running MikroTik Router OS.
Getting Started: Prerequisites and VPS Preparation
-
Install Ubuntu 22.04 on VPS
-
Once installed, turn off the VPS.
-
Access the KVM Settings in the server management interface:
• Change the Disk Driver to IDE.
• Set the Network Driver to E100.
-
Apply the changes and restart the VPS.
Running the Installation Script
Create the Script File
Connect to the server via SSH
Open a terminal and create a script file:
Copy and paste the following script into the file
Press CTRL+O
to save your changes, then exit by pressing CTRL+X
.
Set Script Permissions
Set the script execution rights:
Run the Script
The VPS will reboot automatically once the installation completes.
Connecting to Server Using Winbox
After the VPS reboots, connect to MikroTik Router OS using Winbox:
-
Download and Install Winbox from the MikroTik website.
-
Open Winbox and create a new connection:
• Enter your VPS IP address.
• Use admin for the Login field and leave the Password field blank.
• Click Connect.
-
During the first login, you’ll be prompted to set a new password for added security.
Congratulations! MikroTik Router OS is now successfully installed and operational on your VPS. With the automated script, accessing and managing Mikrotik CHR via Winbox is quick and efficient. After securing your credentials and testing the setup, your infrastructure setup is ready for seamless network management.
Was this page helpful?