Jump to content

Installing OpenWRT on a mini PC (Protectli on this example)


Recommended Posts

Imaging your Protectli Device With OpenWRT

Download the following images (OpenWRT x86-64 and Ubuntu Desktop) to image the SSD/NVMe connected to your Protectli device:


1.     https://ubuntu.mirror.shastacoe.net/ubuntu-releases/22.04.1/ubuntu-22.04.1-desktop-amd64.iso

2.     https://downloads.openwrt.org/releases/22.03.0/targets/x86/64/openwrt-22.03.0-x86-64-generic-ext4-combined-efi.img.gz


Download an imager software to write the Ubuntu Desktop image on a USB Drive, I recommend using Rufus:


·       https://github.com/pbatard/rufus/releases/download/v3.20/rufus-3.20p.exe


Run the rufus-3.20p.exe program, click on SELECT and choose the ubuntu-22.04.1-desktop-amd64.iso file you Downloaded:




Use all default options and click on START.


Once done, create a new folder at the root of the USB Driver called openwrt and save the image there:





Connect your USB Drive to your Protectli device and boot from it (Press F11 during Boot):




Then select “Try or Install Ubuntu”:





Wait for the OS to boot up completely. Select Try Ubuntu on this page:




Open a Terminal:




Once it is open, unplug and plug the USB Drive into the Protectli device so it can be mounted automatically (if you don’t do that you have to manually mount the USB drive, this is the fastest way to mount it). Then run the following:


gunzip /media/ubuntu/UBUNTU\ 22_0/openwrt/openwrt-21.02.3-x86-64-generic-ext4-combined-efi.img.gz

cd /media/ubuntu/UBUNTU\ 22_0/openwrt


Identify disk with lsblk (to replace sdX in the next command): 






Run the following to write the image at the disk:


 sudo dd if=openwrt-22.03.0-x86-64-generic-ext4-combined-efi.img bs=1M of=/dev/sdX


Replacing the “sdX” with the actual drive path (sda in my example).





To use the entire disk, we must now resize the main OpenWRT partition. Open GParted:




Accept the fixes GParted prompts you so you can see the disk partition table. Select the disk you just imaged, (sda in my case):




Right click on the ext4 rootfs partition and resize it to the maximum allowed:




Click on Apply All Operations icon:




Once done, shutdown the system, remove the USB Drive and turn your Protectli device on, booting up from your internal SSD/NVMe drive.


If you need assistance to configure OpenWRT follow their instructions to access the router and configure everything: https://openwrt.org/docs/guide-quick-start/walkthrough_login


To install the Domotz Pro Agent please follow the instructions from our Help Center: https://help.domotz.com/user-guide/installing-domotz-agent-openwrt/ 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...