Advanced Setup Guides

Automatic Installation of MikroTik Router OS (MikroTik CHR)

8min

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

  1. Once installed, turn off the VPS.
  2. Access the KVM Settings in the server management interface: • Change the Disk Driver to IDE. • Set the Network Driver to E100.
  3. Apply the changes and restart the VPS.



  1. Note: Changes to KVM settings require a shutdown and power cycle to take effect.
    Note: Changes to KVM settings require a shutdown and power cycle to take effect.
    







Running the Installation Script

Create the Script File

Open a terminal and create a script file:

Bash




Copy and paste the following script into the file

Bash


Press CTRL+O to save your changes, then exit by pressing CTRL+X.

Set Script Permissions

Set the script execution rights:

Bash


Run the Script

Bash


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:

1. Download and Install Winbox from the MikroTik website.

2. 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.

  1. Document image
    

3. During the first login, you’ll be prompted to set a new password for added security.

Document image


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.