# Onion omega2S remote.it (OpenWRT)

**URL:** https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148
**Category:** 3rd party integrations
**Created:** [March 14, 2020, 12:38pm UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148 "2020-03-14T12:38:30Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Nagarjuna4520](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Nagarjuna4520](https://forum.remote.it/u/Nagarjuna4520)
#### Post date: [March 14, 2020, 12:38pm UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/1 "2020-03-14T12:38:30Z")

</div>

How to install remote.it package in onion omega2S. that is having the openwrt linux operating system.  
Omega firmware: v0.3.2 b232  
onion-os - 1.0.6-1

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [March 16, 2020, 6:56pm UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/2 "2020-03-16T18:56:46Z")

</div>

Try the instructions given here.

[https://link.remote.it/docs/device-package/installation](https://link.remote.it/docs/device-package/installation)

There are some additional steps to take to get it fully working on OpenWRT. I have only tested OpenWRT 19.07 on Raspberry Pi at the moment.

I found it necessary to run the following commands prior to following the instructions above:

```
opkg update
opkg install curl
```

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [March 21, 2020, 2:31am UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/3 "2020-03-21T02:31:49Z")

</div>

The connectd 2.4.26 package assumes that the target operating system uses systemd for startup and shutdown of services. However, OpenWRT uses init.d instead. To make services installed onto init.d based systems such as OpenWRT, create the following file:

**/etc/init.d/connectd**

Copy and paste these lines into the blank file, then save it.

```
#!/bin/sh /etc/rc.common
# connectd startup script for init.d based systems

START=90
STOP=10

start() {       
 echo starting connectd
 /usr/bin/connectd_start_all
/usr/bin/connectd_schannel start
}               

stop() {         
 echo stopping connectd
 /usr/bin/connectd_stop_all
/usr/bin/connectd_schannel stop
}

```

Make the file executable, e.g.

`chmod +x /etc/init.d/connectd`

Finally, enable the command to run at startup:

`/etc/init.d/connectd enable`

```
The remote.it Services should start at boot time, and should shut down when you issue either a reboot or poweroff command.
```

---

<div class="post-metadata">

### Author: ![Nagarjuna4520](https://avatars.discourse-cdn.com/v4/letter/n/9de0a6/32.png) [@Nagarjuna4520](https://forum.remote.it/u/Nagarjuna4520)
#### Post date: [March 21, 2020, 8:27am UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/4 "2020-03-21T08:27:36Z")

</div>

I tried even though its not working. Should i make it connectd.sh or connectd file.

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [March 21, 2020, 1:07pm UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/5 "2020-03-21T13:07:31Z")

</div>

**/etc/init.d/connectd**

should be the name of the file.

You should make it executable using

**chmod +x /etc/init.d/connectd**

You can test it on the command line with:

**/etc/init.d/connectd start**

and

**/etc/init.d/connectd stop**

e.g.

> root@OpenWrt:~# /etc/init.d/connectd start  
> starting connectd  
> Connectd daemon start/stop script Version: 2.4.26  
> Connectdrmt365535 is already started  
> Connectd daemon start/stop script Version: 2.4.26  
> Connectdssh22 is already started  
> Connectd daemon start/stop script Version: 2.4.26  
> Connectdweb80 is already started  
> remote.it server channel daemon start/stop script Version: 2.4.26  
> connectd\_schannel.arm-android\_static is already started

[in that case, they were already running]

> root@OpenWrt:~# /etc/init.d/connectd stop  
> stopping connectd  
> Connectd daemon start/stop script Version: 2.4.26  
> Stopping Connectdrmt365535…  
> Connectd daemon start/stop script Version: 2.4.26  
> Stopping Connectdssh22…  
> Connectd daemon start/stop script Version: 2.4.26  
> Stopping Connectdweb80…  
> remote.it server channel daemon start/stop script Version: 2.4.26  
> Stopping connectd\_schannel.arm-android\_static…

[the services were running, and we stopped them]

> root@OpenWrt:~# /etc/init.d/connectd start  
> starting connectd  
> Connectd daemon start/stop script Version: 2.4.26  
> Starting Connectdrmt365535…  
> Connectd daemon start/stop script Version: 2.4.26  
> Starting Connectdssh22…  
> Connectd built Apr 19 2019 at 16:45:48 Now Starting Up  
> Version 4.6 - (c)2019 remot3.it, Inc. All Rights Reserved  
> Built with ALIGN BCASTER MALLOC\_POOL LINUX RESOLVE BIGBUF pool=524288  
> config file //etc/connectd/services/Connectdssh22.conf  
> Starting up as daemon  
> PID file specified as /var/run/Connectdssh22.pid  
> setting web config port to dest\_server\_port 80  
> primary local ip = 192.168.1.135  
> Connectd daemon start/stop script Version: 2.4.26  
> Starting Connectdweb80…  
> remote.it server channel daemon start/stop script Version: 2.4.26  
> Starting connectd\_schannel.arm-android\_static…  
> server\_channel\_handler built Jan 7 2019 at 16:56:40  
> Version 0.5 - (c)2019 remot3.it, Inc. All Rights Reserved  
> Starting up as daemon  
> root@OpenWrt:~#

[the services were stopped, and we started them]

Your output might be little different depending on which remote.it Services you configured.

Do you have a file **/etc/rc.common**?

Please send the result of the command:

**uname -a**

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [March 24, 2020, 12:40am UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/6 "2020-03-24T00:40:16Z")

</div>

I just bought one of these and there are a couple other things you’ll need to know.

#1 curl is not installed by default, so you can’t run auto-install.sh until you do the following (after the Onion board is connected to the internet):

opkg update  
opkg install curl

#2 The web UI for this board doesn’t appear to work properly with a remote.it web connection, although SSH works fine.

#3 They also include “shellinabox” which is a way to get a console in your web browser. To access this, set up a web connection on port 4200.

---

<div class="post-metadata">

### Author: ![gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@gary](https://forum.remote.it/u/gary)
#### Post date: [March 24, 2020, 3:44pm UTC](https://forum.remote.it/t/onion-omega2s-remote-it-openwrt/148/7 "2020-03-24T15:44:03Z")

</div>

Sorry, I left out an important step:

**/etc/init.d/connectd enable**
