Skip to content

Instantly share code, notes, and snippets.

@bartprokop
Last active September 7, 2025 19:02
Show Gist options
  • Save bartprokop/7a7d05e4412cac1377db197d533936bc to your computer and use it in GitHub Desktop.
Save bartprokop/7a7d05e4412cac1377db197d533936bc to your computer and use it in GitHub Desktop.
Installing Orb on OpenWRT

Notes from installing Orb on OpenWRT

How I have installed Orb.

root@rt-mro:~# wget -qO- https://pkgs.orb.net/install.sh | sh
Installing Orb for openwrt 24, using method opkg
Found opkg config at /etc/opkg/customfeeds.conf
Found opkg keys directory at /etc/opkg/keys
+ grep -q orb_packages /etc/opkg/customfeeds.conf
+ echo 'src/gz orb_packages https://pkgs.orb.net/stable/openwrt/mipsel_24kc'
+ tee -a /etc/opkg/customfeeds.conf
src/gz orb_packages https://pkgs.orb.net/stable/openwrt/mipsel_24kc
+ '[' 1 -eq 1 ]
+ echo 'Found opkg keys directory at /etc/opkg/keys'
Found opkg keys directory at /etc/opkg/keys
+ curl -fsSL https://pkgs.orb.net/stable/openwrt/key.pub
+ tee /etc/opkg/keys/744a82bfef3c5690
untrusted comment: public key 744a82bfef3c5690
RWR0SoK/7zxWkIXYjPH5go3M9nEwcbwjoFdFVTHHMieDFd9KXxhwA0Uj
+ opkg update
Downloading https://pkgs.orb.net/stable/openwrt/mipsel_24kc/Packages.gz
Updated list of available packages in /var/opkg-lists/orb_packages
Downloading https://pkgs.orb.net/stable/openwrt/mipsel_24kc/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/targets/ramips/mt7621/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/24.10.0/targets/ramips/mt7621/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/targets/ramips/mt7621/kmods/6.6.73-1-3abe85def815b59c6c75ac1f92135cb6/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading https://downloads.openwrt.org/releases/24.10.0/targets/ramips/mt7621/kmods/6.6.73-1-3abe85def815b59c6c75ac1f92135cb6/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
+ opkg install orb
Installing orb (1.2.2) to root...
Downloading https://pkgs.orb.net/stable/openwrt/mipsel_24kc/orb_1.2.2_mipsel_24kc.ipk
Installing micrond (1-r2) to root...
Downloading https://downloads.openwrt.org/releases/24.10.0/packages/mipsel_24kc/packages/micrond_1-r2_mipsel_24kc.ipk
Configuring micrond.
Configuring orb.
+ set +x
Orb Sensor installed successfully!
Orb Sensor is running as root.
You can link your Orb Sensor to your Orb account using the following command:
 orb link
Executing:
2025/09/07 14:05:28 ERROR Error: Unable to find orb configuration. If orb is already running, run the 'orb link' command as the same user as the orb sensor. If orb is not configured, please start the orb service so it registers with Orb Cloud.
root@rt-mro:~#
root@rt-mro:/etc/profile.d# cat orb.sh
# https://www.reddit.com/r/orbforge/comments/1navtyl/openwtr_flash_wear/
export ORB_DATA_DIR=/tmp
export ORB_FIRSTHOP_DISABLED=1

Then it was necessary to link it to my account:

root@rt-mro:~# orb link
2025/09/07 14:10:03 INFO Orb ID orbID=*********************
2025/09/07 14:10:04 WARN https://core.orb.net/api/v1/webauth took: 1.09 seconds
To link your device, visit the following URL in a web browser and log into your Orb account:
Device link: https://orb.net/************* (expires Sep 08 14:10)

# Before installing Orb
root@rt-mro:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                   121.6M    436.0K    121.2M   0% /tmp
/dev/ubi0_1             212.2M      3.1M    204.4M   2% /overlay
overlayfs:/overlay      212.2M      3.1M    204.4M   2% /

# After installing Orb
root@rt-mro:~# df -H
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                   121.6M      1.4M    120.2M   1% /tmp
/dev/ubi0_1             212.2M     10.6M    196.9M   5% /overlay
overlayfs:/overlay      212.2M     10.6M    196.9M   5% /

# After restart
root@rt-mro:~# df -H
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                   121.6M    324.0K    121.3M   0% /tmp
/dev/ubi0_1             212.2M     10.7M    196.8M   5% /overlay
overlayfs:/overlay      212.2M     10.7M    196.8M   5% /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment