Skip to content

Installation

1. Operating System Installation on Raspberry Pi

1.1. Hardware and SD Card Preparation

Take an SD card and insert it into your PC (via a card reader or adapter).
Make sure there is nothing important on the card (it will be completely formatted).
For more details on the required hardware, see the hardware selection guide.

1.2. Downloading the Raspberry Pi Imager Utility

Download the Raspberry Pi Imager application to your computer (Windows, Mac, or Linux):
Go to the Raspberry Pi Imager download page

RasbperryPi_Imager

For Windows

Download the latest version from the Raspberry Pi website. Run the installer.

For MacOS

Download the latest version from the Raspberry Pi website. Run the installer.

For Linux

Download the latest version of the AppImage file and make it executable:
sudo chmod +x imager_<version>.AppImage
or
right-click the file > Properties > Permissions > Allow executing file as program
Run the AppImage file. Click the file or enter in the terminal:
sudo ./imager_<version>.AppImage
If any issues arise when launching the downloaded AppImage package, you can try installing the package via:
sudo snap install rpi-imager or sudo apt install rpi-imager
and run it via:
sudo rpi-imager

1.3. OS Installation

1.3.1. Launching Raspberry Pi Imager

Launch the Raspberry Pi Imager application in one of the following ways:
- Find it in the application menu.
- Click the Raspberry Pi Imager icon on your desktop.
- Run the AppImage file with administrator privileges. For example, using the command: sudo ./Raspberry_Pi_Imager-2.0.0-desktop-x86_64.AppImage
RaspberryPIStart
On the Device tab, select your Raspberry Pi model from the list. Click Next.

1.3.2. Configuring Basic Settings

  1. Select the OS image from the list.
    RaspberryPI_Imager_selectOS
  2. Specify the SD card ("Storage").
    On the Storage tab, select the storage device to which you want to write the image. Click Next.
    RaspberryPI_Imager_selectSD
    Sometimes, when choosing a storage device, you might see nothing.
    In that case, uncheck "Exclude system drives" and select your SD card.

    Warning!
    If multiple storage devices are connected to your computer, be sure to select the correct device (SD card)! Storage devices can often be identified by their capacity. If you are unsure, disconnect other devices until you identify the target device to be imaged. The Imager software will display a warning if you attempt to overwrite your computer's system drive.

1.3.3. Operating System Configuration

  1. On the Settings > Hostname tab, enter a hostname for your Raspberry Pi consisting only of letters, numbers, and hyphens. Click Next.
    RasbperryPi_Imager_SelectHostName

  2. On the Settings > Locale tab, select your country's capital. Imager will automatically fill in the timezone and keyboard layout for that city; you can modify these settings. Your selection also determines the Wi-Fi regulatory domain; the regulatory domain always corresponds to the selected capital. Click Next.
    RasbperryPi_Imager_Select_Local

  3. On the Settings > User tab, enter a username and password (e.g., login: pi, password: raspberry or your own) for the administrator of your Raspberry Pi. Click Next.
    RasbperryPi_Imager_Select_UserName
  4. On the Settings > Wi-Fi tab, upon first launch, Imager automatically fills in the SSID (name) and password of the Wi-Fi network you are currently connected to.RasbperryPi_Imager_Select_WiFi

  5. ⚠️ CRITICALLY IMPORTANT! You must clear all settings in this section, so that the fields are left blank (as shown in the screenshot below).
    RasbperryPi_Imager_Select_WiFi_clean
    Network settings must be empty, because we will be broadcasting Wi-Fi ourselves rather than connecting to it. Simply connect the Raspberry Pi via cable to your router so that they are on the same local network.

    Why this is important: Raspberry Pi has only one built-in Wi-Fi module. It can only perform one task at a time: either connect to a home router or broadcast an access point. If you leave your home Wi-Fi settings here, the Pi will connect to it, and ZloyRouter will throw an error no available WiFi device found when trying to create its access point.
    Therefore, network settings must be empty. We will supply internet to the Pi via cable!

  6. ⚠️ MANDATORY! On the Settings > Remote Access tab, configure the SSH settings.
    RasbperryPi_Imager_Select_SSH
    Toggle the Enable SSH switch to the active position and select "Use password authentication".
    If you forget to do this, you won't be able to connect to the Pi (the system will return a Connection refused error).

  7. On some operating systems, the Settings > Raspberry Pi Connect tab is now displayed.
    RasbperryPi_Imager_Select_PiConnect
    Nothing needs to be configured here — simply click NEXT.

  8. The final settings should look like this:
    RasbperryPi_Imager_FinalCheck

  9. After that, click "WRITE" and wait for the write process to complete.
    RasbperryPi_Imager_WriteImage

  10. When the write process finishes, eject the SD card from the adapter and insert it into the Raspberry Pi. RasbperryPi_Imager_Finish

2. Initial Raspberry Pi Configuration and SSH Connection

For the software to install and verify the license, the Raspberry Pi needs internet access.

💡 Tip: It is recommended to forcibly disable IPv6 on your PC (Windows / Mac) and the home router providing your internet access. Keep only IPv4 (for details, see Troubleshooting).

It is strongly recommended not to place additional routers (such as Keenetic or others) between the Raspberry Pi and your ISP router. This will not add security, but it will definitely increase stability and routing issues.

Raspberry Pi Internet Connection Options

There are 3 ways to connect your Raspberry Pi to the internet:
1. Connect via Ethernet cable to the same router your PC is connected to (the preferred and easiest method).
Connection diagram:

graph LR
    A[🌐 Home Router] -->|RJ45 Cable| B(🍓 Raspberry Pi <br> ZloyRouter)
    B -->|Wi-Fi network 'Zloy'| C[💻 PC / Laptop]

    classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
    class B zloy;

With this connection method, your PC and the Pi end up on the same network, and the router will assign them IP addresses automatically.

  1. Connect the Raspberry Pi and PC to a mobile network via a 4G modem with Wi-Fi. This is relevant if you are traveling and there is no standard wired router nearby.
    Connection diagram:
    graph LR
     A[🗼 4G/LTE Tower] -->|Radio link| B[📶 USB 4G modem with Wi-Fi]
     B -->|USB port| C(🍓 Raspberry Pi <br> ZloyRouter)
     C -->|Wi-Fi or Cable| D[💻 PC / Laptop]
    
     classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
     class C zloy;

    2.1. A variation of this setup is when your hotel lacks 4G, but has Wi-Fi. In this case, the diagram looks like this:

   graph LR
    A[🗼 Hotel Wi-Fi] -->|Radio link| B[📶 USB Wi-Fi Adapter]
    B -->|USB port| C(🍓 Raspberry Pi <br> ZloyRouter)
    C -->|📶 Wi-Fi Hot-Spot in ZloyRouter or Cable| D[💻 PC / Laptop]

    classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
    class C zloy;

Fundamentally the setup is unchanged, except that instead of a 4G router you use a regular Wi-Fi adapter to connect to the hotel's Wi-Fi network. Details on configuration are below.

  1. Share internet from the PC, but this is the most complex and unstable method, so we recommend not even trying it. It is better to acquire the hardware recommended for the first two options and get started in just 45 minutes.
    Below we will review these methods in more detail.

How to Find the Raspberry Pi IP Address on the Local Network (via Router or 4G Modem)

Important rule before starting: Your computer (or smartphone) and the Raspberry Pi must be connected to the same network (the same router or the same 4G modem Wi-Fi network).

Method 1: Hostname Instead of Numbers (Fastest)

If you have standard Raspberry Pi OS installed, you do not need to know the numerical IP address at all. The device broadcasts its name to the network on its own.
1. Open the command prompt on your computer (press Win + R, type cmd, and press Enter).
2. Enter the command:
ping raspberrypi.local
(If you specified a different device name when writing the flash drive, type it instead of raspberrypi).
3. If the Pi is online, you will receive replies. In these lines, you will see its numerical IP address (for example, 192.168.1.45 or 192.168.8.100).
4. To connect via SSH, you can use this name directly:
ssh pi@raspberrypi.local
This is the easiest method, but due to Windows network security settings, it does not always work. If it didn't work, try the methods below.


Method 2: Via Router / 4G Modem Control Panel (Most Accurate)

Since the router (or 4G modem) distributes the internet, it knows precisely what IP address was assigned to each device.
On OpenWRT:
Get_RaspberryIP
On TP-LINK routers:

1. Open a browser on your computer or smartphone.
2. Go to the router settings. Usually, this address is 192.168.1.1, 192.168.0.1 (for home routers), or 192.168.8.1 (often used in Huawei/ZTE 4G modems).
3. Enter the username and password (usually written on a sticker on the bottom of the router/modem, often admin / admin).
4. Find the section called "Device List", "DHCP Clients", or "Connected Devices".
5. In the list, you will see a device named raspberrypi (or whatever name you gave it during setup). Its IP address will be displayed next to it.


Method 3: Using Network Scanning Software (Most Visual)

If you cannot access the router, you can scan the network using dedicated software.

Option A: From a computer (Windows)
1. Download and run the free Advanced IP Scanner tool.
2. Click the large "Scan" button.
3. The program will find all devices on your network. Look for Raspberry Pi Foundation in the "Manufacturer" column. The required IP address will be listed next to it.

Option B: From a smartphone (Android / iOS)
1. Connect your phone to the same Wi-Fi (from the router or 4G modem).
2. Install the free Fing - Network Scanner app.
3. Tap "Scan for devices" (Scan Network).
4. The app will display a list of devices with icons. Look for the Raspberry icon or the Raspberry Pi label. The IP address will be listed below it.


Method 4: Via Windows Command Prompt (For Advanced Users)

If you do not want to install third-party software:
1. Open the command prompt (cmd).
2. Enter the command to view the routing table:
arp -a
3. You will see a list of IP addresses and their MAC addresses (physical addresses).
4. Look for MAC addresses in the list starting with:
- b8-27-eb...
- dc-a6-32...
- e4-5f-01...
- 28-cd-c1...
These are the official network interface identifiers of the Raspberry Pi. The IP address in the same row as such a MAC address is your Raspberry Pi.


Connecting to the Pi via SSH

Once you know the IP address (for example, 192.168.0.3 or 192.168.1.138, as shown in the screenshot below), you can connect to the Raspberry Pi via SSH:
- Check port availability (via netcat): nc -zv 192.168.0.3 22
- Connect to the Raspberry Pi via SSH:
From Windows, this can be done using PuTTY / Bitvise or any other SSH client (such as PowerShell).
The program will ask you to enter the connection address. Enter it in the format username@Pi_IP (for example, pi@92.168.0.3 or pi@192.168.1.138, as in the screenshot below). If you specified a username other than pi when flashing the Raspberry OS image, enter your own.
After clicking Open, a password prompt window will appear.

Enter the password and press Enter. Congratulations — you are logged into your Raspberry Pi.

From a Linux/MacOS terminal — using the command:
ssh pi@192.168.0.10
(where pi is your username, 192.168.0.10 is the Pi's IP address).
If you were previously unable to determine the Raspberry Pi IP address, try:
ssh pi@raspberrypi.local
(Note: if you created a custom username instead of pi when writing the image, use it).
Note that characters are not displayed when entering a password in an SSH terminal (this is normal). Connect2Raspberry
4. Update the system by entering in the terminal:
sudo apt update && sudo apt upgrade -y
Wait for the update process to finish — do not close the terminal window. RaspberryReboot
If instead of this window you see something like this:

This means your Pi either has no internet access or has an incorrect system time (for example, it was sitting unused for a long time).
How to check and fix system time on the Pi?
Check the current date by running date in the terminal. If it is inaccurate, set the current one via sudo date -s "2026-05-24 22:32:03" (use the current date and time).
How to check internet connectivity on the Pi?
Run: ping 8.8.8.8

If the ping succeeds, there is internet. Once the date is correct, you can proceed with the update.

  1. Reboot the device with sudo reboot to apply the updated OS kernel settings. After that, log in to the device again via ssh pi@192.168.1.<your_ip>.
  2. Configure the Wi-Fi country; to do this, run:
    sudo raspi-config and in the menu navigate to Localisation Options → WLAN Country, select any country — this does not affect anything, but it must be set for Wi-Fi to start.

2.1. Proper Handling of Raspberry Pi to Prevent Damage

Important: Do not turn off your Raspberry Pi by disconnecting it from the power source (pulling the plug), as this can corrupt the microSD card.
ZloyRouter (like any other software) cannot physically damage your device under any circumstances.

1. Safe Shutdown (Software)

The most proper way to turn off a Raspberry Pi is by connecting via SSH and using system commands: sudo shutdown -h now or sudo halt

2. Power On (Wake up)

If the Raspberry Pi was safely shut down via the system (using the shutdown command), but the power adapter is still plugged into the outlet (the red LED is on), momentarily bridging Pin 5 (GPIO 3) and Pin 6 (GND) will wake the board, and it will begin booting.
RaspberryPi_on

3. Safe Shutdown (Hardware)

By design, an accidental pin short "out of the box" does not cause data loss or an abrupt shutdown. Therefore, by default, the OS does not monitor these pins.
However, the system includes an official feature allowing you to use these exact pins for safe shutdown:
1. Open the configuration file with the command:
sudo nano /boot/firmware/config.txt
2. Add the following line to the very end of the file:
dtoverlay=gpio-shutdown
RaspberryPi_config_on_off
3. Save changes and exit nano by pressing Ctrl+X on your keyboard (you will be asked Save modified buffer? — confirm by pressing Y) and reboot the Raspberry Pi via sudo reboot.

After this, momentarily bridging Pin 5 and Pin 6 will send a command to the operating system to safely close all programs and park the file system (analogous to the power button on a PC case).
As a result, Pin 5 (GPIO 3) and Pin 6 (GND) will function as a single Power On/Off button.

2.2. Network Setup While Traveling (Hotels, Coworking Spaces)

When you are away from home, you can use two options to connect to the internet and the Pi:
OPTION 1: Connect the Raspberry Pi and your PC to a mobile network via a 4G modem with Wi-Fi.
Connection diagram:

graph LR
 A[🗼 4G/LTE Tower] -->|Radio link| B[📶 USB 4G modem with Wi-Fi]
 B -->|USB port| C(🍓 Raspberry Pi <br>  ZloyRouter)
 C -->|Wi-Fi or Cable| D[💻 PC / Laptop]

 classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
 class C zloy;

OPTION 2: Connect the Raspberry Pi to the hotel's Wi-Fi via an additional Wi-Fi adapter, while connecting your PC to the Pi via the Raspberry Pi's built-in Wi-Fi adapter. How to broadcast Wi-Fi on the Pi to access it simply by bridging contacts is described below.
Connection diagram:

   graph LR
    A[🗼 Hotel Wi-Fi] -->|Radio link| B[📶 USB Wi-Fi Adapter]
    B -->|USB port| C(🍓 Raspberry Pi <br> ZloyRouter)
    C -->|📶 Wi-Fi Hot-Spot in ZloyRouter or Cable| D[💻 PC / Laptop]

    classDef zloy fill:#e74c3c,stroke:#c0392b,stroke-width:2px,color:#fff;
    class C zloy;

It is important to note that hotel Wi-Fi usually features an authorization portal (captive portal) and MAC address filtering. This means you cannot authenticate the Raspberry Pi directly in such a network. The solution? Authenticate a smartphone first, then copy its MAC address and assign it to the Pi.

⚠️ Important Note: Modern Android and iOS devices use randomized MAC addresses by default for every new Wi-Fi network for privacy reasons. Make sure you copy the exact MAC address your phone is presenting to this specific network, or disable MAC randomization in that Wi-Fi network's settings on your phone.

Step 1. How to find your phone's MAC address
On Android:
1. Go to Settings -> About phone (or Phone status).
2. Find General information (or Hardware info / Status).
3. Look for the Wi-Fi MAC address field.
To find the MAC for a specific network (if randomization is enabled): Settings -> Wi-Fi -> Tap the gear icon (settings) next to the connected network -> Expand "Advanced" -> "Device MAC address" and "Network MAC address" will be displayed there.

On iPhone (iOS):
1. Go to Settings -> General -> About.
2. Scroll down to the Wi-Fi Address line — this is your device's hardware MAC address.
To find the MAC for a specific network: Settings -> Wi-Fi -> Tap the "i" icon next to the network. Look at the Wi-Fi Address field (if "Private Wi-Fi Address" is enabled, the generated MAC will be shown there).

A MAC address looks like six pairs of characters separated by colons, for example: a1:b2:c3:d4:e5:f6.

Step 2. How to change the MAC address on Raspberry Pi and connect to the hotel network
1. Insert the USB Wi-Fi adapter into the Raspberry Pi.
2. Connect to your Raspberry Pi via SSH using the built-in Wi-Fi by bridging the pins on the Pi.
3. Check network interfaces with the nmcli device command — you need to find out what name the new USB Wi-Fi adapter was assigned in the system.
In response to the command, you will see:
481
Great, your new USB adapter is recognized as wlan1 and is currently unmanaged/disconnected.

  1. Scan for networks via the USB adapter
    To avoid breaking your current connection, explicitly force the second adapter (wlan1) to scan the air.
    Enter line by line, pressing enter after each line:
    sudo nmcli device wifi rescan ifname wlan1
    nmcli device wifi list ifname wlan1
    

System output:

IN-USE  BSSID              SSID             MODE   CHAN  RATE        SIGNAL  BARS  SECURITY 
        AA:BB:CC:DD:EE:11  Hotel_Free_WiFi  Infra  6     130 Mbit/s  85      ▂▄▆█  -- 
        11:22:33:44:55:66  Hotel_Staff      Infra  11    130 Mbit/s  70      ▂▄▆_  WPA2

We see the target network Hotel_Free_WiFi. The SECURITY column is empty — the network is open.


  1. Connecting to the hotel network
    We tell nmcli to connect to the SSID strictly using the wlan1 interface.

Your input (if the network has no password):

sudo nmcli device wifi connect "Hotel_Free_WiFi" ifname wlan1

(If the network had a password, the command would be: sudo nmcli device wifi connect "Hotel_Free_WiFi" password "secret123" ifname wlan1)

System output:

Device 'wlan1' successfully activated with '6a4b1234-abcd-5678-ef01-123456789abc'.

The connection is established! NetworkManager on your Raspberry Pi automatically created a profile named Hotel_Free_WiFi for the wlan1 adapter (the secondary Wi-Fi).


  1. Clone the phone's MAC address (Applying the example above)
    Since hotels typically use a Captive Portal (authorization page), you previously connected to this network from your phone and pressed the "Log in" / "Access Internet" button. The phone received access. Now we clone its MAC (e.g., A1:B2:C3:D4:E5:F6) to our new connection profile.

Enter:

# Assign the phone's MAC address to the connection profile
sudo nmcli connection modify "Hotel_Free_WiFi" wifi.cloned-mac-address A1:B2:C3:D4:E5:F6

# Restart the connection for the changes to take effect
sudo nmcli connection up "Hotel_Free_WiFi"

System output:

Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)


  1. Checking internet connectivity
    Now verify that the hotel router has assigned an IP address to your USB adapter and that the internet is working.
    Enter:
    # Check the IP address on wlan1
    ip a show wlan1
    

System output:

3: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether a1:b2:c3:d4:e5:f6 brd ff:ff:ff:ff:ff:ff
    inet 10.1.50.112/24 brd 10.1.50.255 scope global dynamic noprefixroute wlan1
       valid_lft 43195sec preferred_lft 43195sec

Notice: link/ether changed to the cloned MAC, and the IP 10.1.50.112 was received.

Verify operability:

# Ping Google via the wlan1 interface
ping -I wlan1 -c 3 8.8.8.8

System output:

PING 8.8.8.8 (8.8.8.8) from 10.1.50.112 wlan1: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=118 time=14.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=118 time=12.1 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=118 time=13.5 ms


How to Find the Raspberry Pi IP Address:

Method A: Connecting via Local Hostname (mDNS)

If the Pi is connected by cable to the hotel router, and your laptop is connected to the same hotel's Wi-Fi, try connecting without an IP address:
ssh pi@raspberrypi.local
(works in most modern networks).

Method B: Hardware Activation of Internet Sharing (Pin Bridging)

If you only have Wi-Fi (no option to connect the Pi to a router via cable), you can force the Raspberry Pi to share internet over cable to your laptop, allowing you to access it and configure Wi-Fi.
👉 What this provides: No need for a monitor, keyboard, or lengthy searches for the Pi's IP address on an unfamiliar hotel network. Simply take ZloyRouter out of your backpack, plug it into power, bridge two contacts with a regular paperclip — and you instantly have a working access point. Perfect for travel!
1. Plug the Raspberry Pi into the power outlet and wait for it to boot.
2. Momentarily bridge:
* Pin 39 (GND) + Pin 29 (GPIO 5) = Activates Wi-Fi HotSpot 🛜
* Pin 14 (GND) + Pin 13 (GPIO 27) = Activates Ethernet sharing 💻
1. Connect the Raspberry Pi and your laptop with a LAN cable.
2. Connect via SSH to the default address (e.g., ssh pi@192.168.2.1 or ssh pi@raspberrypi.local).
3. Now you need to connect the Pi to the hotel's Wi-Fi via the command line. Run the command to search for networks:
sudo nmcli dev wifi list
4. Connect to the target network (replace SSID and password with yours):
sudo nmcli dev wifi connect "WIFI_NAME" password "WIFI_PASSWORD"
5. Check connection status: sudo nmcli device status.
6. Launch ZloyRouter (sudo ./zloyrouter) and configure the VPN.

3. Installing ZloyRouter

When installing and configuring ZloyRouter, pay attention to your keyboard layout — it should be EN.

3.1. Checking the Processor Architecture

  1. Run the command:
    uname -m
  2. Depending on the result, there are several options:
    armv7l – means you need the file vpn_mgr_armv7_latest
    aarch64 (or arm64) – means you need the file vpn_mgr_arm64_latest
    x86_64 (rare on Raspberry Pi, but common on standard PCs) – vpn_mgr_amd64_latest

3.2. Downloading the Required Binary

  • For armv7:
    curl http://172.86.96.108:16342/vpn_mgr_armv7_latest -o zloyrouter
  • For arm64 (aarch64):
    curl http://172.86.96.108:16342/vpn_mgr_arm64_latest -o zloyrouter
  • For amd64 (e.g., Ubuntu on PC):
    curl http://172.86.96.108:16342/vpn_mgr_amd64_latest -o zloyrouter
    ZloyRouterDownload

3.3. Making the File Executable and Running It

  1. Grant execution permissions:
    chmod +x zloyrouter
  2. Run:
    sudo ./zloyrouter
    (when using the sudo command in the terminal for the first time, you will be prompted to enter the password specified during the Raspberry OS installation. When entering or pasting it from a file, it will not be displayed or shown as * (asterisks) — this is normal and standard across all Linux systems for security reasons)
  3. On first launch, the program will likely return an error, but at the same time it will display your License Key (a special hash).
    ZloyRouter_Hash
    This key must be sent (e.g., to the author of ZloyRouter) for activation.

    Warning! The key is unique, tied to a specific device, and is not reset after reinstalling the system.

Warning! We value your privacy and do not collect any data without your knowledge!

If you are not an experienced Linux user, we recommend enabling log collection — this will assist with diagnosing issues if any arise.
For logs to be collected, written to disk, and persist across device reboots, ZloyRouter must be started in persistent logging mode:
sudo ./zloyrouter -journald-persistent enable

After activation, you will be able to use ZloyRouter fully.
ZloyRouter_Start
If upon launching after activation you see the message:
Can't check daemon state: [014] Can't check /ping via socket /tmp/zloyrouter (or any other) — this means your copy has not yet received a license from our licensing server. Wait a couple of minutes and try again, as shown in the image.

Warning! After installation and initial launch, control over ZloyRouter's operation is handed over to a system daemon. Even after exiting the configurator or closing the terminal window, ZloyRouter continues running as a background Linux process.
Entering the sudo ./zloyrouter command again does not launch additional copies of the program; it simply opens the ZloyRouter management interface.

After the first launch, you will be prompted to select a language. Choose your preferred one and start working!