fix file permissions issue openhab execbinding

i have experienced permission issue while trying to use openhab with exec binding
first of all you can always check the permissions by “sudo -u”.
For example

sudo -u openhab /usr/bin/python /home/pi/

to guarantee fixing the permissions issue of openhab, i did a couple thing, all of them were needed
you should also do these steps

1-) copy your scripts to /etc/openhab2 folder, and use them there if possible
2-) grant scripts permissions like this

sudo chown openhab
sudo chmod 777
sudo chmod a+x

3-) edit config file and change user and usergroup to root from openhab

sudo nano /etc/default/openhab2

4-) add openhab user to sudoers

sudo adduser openhab sudo

5-) open this file with

sudo visudo

and edit this like the example below

openhab ALL = NOPASSWD: /usr/bin/python, /usr/bin/sh

6-) restart openhab service after all these steps

sudo service openhab2 restart

Orangepi Zero pyA20 Installation Error

I was trying to install pyA20 python module for orange pi zero (ubuntu server os)
i had this error

python arm-linux-gnueabihf-gcc exit status 1 orangepi

and people always say “you should install python-dev” on all the forums
i had damn python-dev installed 🙂 it was so annoying to see a non-working solution everywhere
anyway, i wanned to share my solution

For me removing the libi2c-dev package solved the problem.

sudo apt-get remove libi2c-dev

There was a child.

And the child was alone,

In a crowded but a lonely world.

The child didn’t scare,

Cause you gotta have someone to scare,


You must have something,

That would save you from silence,

The child knew that,

The real scary thing was the silence itself

The child didn’t scare

Cause you gotta have someone to scare,

Someone to take you away

Someone to speak,

Someone to fear,

Someone to make you feel,

Someone to save you.

The child was alone,

In a crowded but a lonely world.

A crowded, quiet world.