title: unable to start ONOS SDN controller from root user
body: <p>I'm doing a POC on SDN using miniedit (UI of mininet) and ONOS as a SDN controller, I want to invoke ONOS from miniedit when we run the topology so used the following line of code in python </p>
  
  <pre><code>os.system("gnome-terminal -e 'bash -c \"/home/paxterra/onos/tools/dev/bin/onos-karaf; exec bash\"' &amp;")
  </code></pre>
  
  <p>this invokes ONOS if i execute it as a normal user, but throws error since this code present in miniedit.py and I'm running miniedit.py as super user.</p>
  
  <pre><code>Error : /home/paxterra/onos/tools/dev/bin/onos-karaf: line 7: onos-setup-karaf: command not found
  </code></pre>
  
  <p>I tried to set environment variable <code>PATH="/home/paxterra/onos/tools/dev/bin/"</code> and then tried the command again, it gives the same error.</p>
  
  <p>Can anyone please help me to solve this issue. ?</p>