Skip to main content

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

Open a terminal and create a script file:
Copy and paste the following script into the file
Script
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.

Install settings manually in RouterOS

  1. Login to your VPS Management Portal
  2. Locate your VPS from the Services tab
  3. Enable VNC Server
  4. Open the noVNC or connect by VNC client
  5. Login to the Router OS using admin account and blank password (no password)
  6. Setup new password for admin account
  7. Show the name of interfaces:

Check name of interface

Check name of interface in RouterOS
  1. Check your Network Information in the billing panel. Configure your IP address of the server (192.168.1.100 - IP address of the server & ether1 - name of interface):
  1. Configure gateway(192.168.1.1 - IP address of gateway):
  1. Configure DNS:
After you have finished configuring Router OS in VNC, connect to MikroTik Router OS using Winbox.

Connecting to server 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 Enter the Password that you installed before. • Click Connect. Install MikroTik RouterOS
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.
Last modified on June 8, 2026