Installing the remoteit package on OpenWrt

 

Notice

remoteit for OpenWrt is in beta test at this time.  Please report any problems to support@remote.it.

 

In this example we will be using the GL-iNet GL-MT300N-V2 mini router.  The procedure should be similar for other OpenWrt based devices as well.

Connection

Connect the router's WAN port to an active internet connection using a CAT-5 cable.  The internet connection can either be the RJ-45 jack on your cable modem, or a LAN port on your existing router, if you happen to be using a different router already.

Connect your PC to the MT-300's ethernet LAN port, or connect wirelessly.

By default, the IP address of the router as seen from its LAN is 192.168.8.1.

SSH to the router's console using its username and password.  By default, these are root and password, respectively.

ssh -l root 192.168.8.1

 

Installing remoteit

At the console, run the following commands:

wget https://downloads.remote.it/openwrt/preview/remoteit.ipk
opkg update
opkg install ./remoteit.ipk

Sample output is shown below.

root@MT300N-V2:~# wget https://downloads.remote.it/openwrt/preview/remoteit.ipk
Downloading 'https://downloads.remote.it/openwrt/preview/remoteit.ipk'
Connecting to 13.226.254.23:443
Redirected to /openwrt/v0.0.9/remoteit.ipk on downloads.remote.it
Writing to 'remoteit.ipk'
remoteit.ipk 100% |*******************************| 10240 0:00:00 ETA
Download completed (10240 bytes)
root@MT300N-V2:~# opkg update
Downloading https://fw.gl-inet.com/releases/kmod-3.1/ramips/mt76x8/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_core
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/base/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_base
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/gli_pub/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_gli_pub
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_packages
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_luci
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_routing
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_telephony
Downloading https://fw.gl-inet.com/releases/packages-3.x/ramips/glinet/Packages.gz
Updated list of available packages in /var/opkg-lists/glinet_glinet
root@MT300N-V2:~# opkg install ./remoteit.ipk
Installing remoteit (0.0.9) to root...
Configuring remoteit.

--------------------- Claim this device ---------------------

Use the code TL3B46NC to register this device to your account

--------------------- Claim this device ---------------------

root@MT300N-V2:~#

Take note of the displayed code, which you will need to copy to the remoteit Desktop application.

Trouble downloading the installation package?

If following the instructions above fails, you may not have SSL support enabled for wget.  You may see the error shown below or something similar.

root@device:~# wget https://downloads.remote.it/openwrt/preview/remoteit.ipk
wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.

If this happens, we recommend that you use the curl command instead.  This will also require SSL support to be installed.

Run the following commands:

opkg update
opkg install ca-certificates
opkg install curl
curl -Lo remoteit.ipk https://downloads.remote.it/openwrt/latest/remoteit.ipk
opkg install ./remoteit.ipk

Uninstalling remoteit

To uninstall remoteit, in the event you don't wish to use it any more, or to start over from scratch, run the following.

opkg remove remoteit
rm -rf /etc/remoteit /usr/share/remoteit

In the event you wish to download a new version of the remoteit.ipk file, be sure to remove the older one first, or else wget will fail.

 

 

Was this article helpful?
0 out of 0 found this helpful