7 posts / 0 new
Last post
rvempati
Sudo Command execution from Dev Account

How to execute Sudo Command from Dev Account to configure interface files

rchoubey
Sudo Command execution from Dev Account

sudo command is enabled for 'dev' account. Could you share what configuration are you trying to make. What is the error which you are getting ? Please share relevant error logs and screenshot.

In case you are trying to use router in client mode, before you proceed with the configuration you need to issue below command to enable client mode :-

sudo edgerouter -m client

To get back the router into IOT Edge Router mode :-
:-
sudo edgerouter -m edge

To install / uninstall snaps you may use syntax in below format:-

sudo snap install --dangerous --devmode starfish-sensortag-app_0.3_armhf.snap

sudo snap remove starfish-sensortag-app_0.3_armhf.snap

For details on setup, you may refer to the link:-

https://developer.ssni.com/iot-edge-router-getting-started-guide

rvempati
Sudo Command execution from Dev Account

I’d like to reconfigure the interface of IoT Router. The error messages is “Sorry, user dev is not allowed to execute ‘/usr/bin/vi interfaces’ as root on local host.

praghunath
Sudo Command execution from Dev Account

Reconfiguration of interface files is not supported as changes to interface files may make it unsuitable for portability to core snappy, the environment it is designed to work.

Is there a specific requirement to edit this file ? Can you give us more details.

Not all root functions are supported by dev account ( using sudo). Let us know if there is any particular purpose for which this is required.  
 

rvempati
Sudo Command execution from Dev Account

I’d like to connect the IoT Router to existing network to communicate with multiple sensors which are connected with Raspberry Pi. To configure local network, I’d like to handle the interfaces file. Please let me know how to configure local network using IoT router.

rchoubey
Sudo Command execution from Dev Account

kinldy use the command from the path /usr/local/bin/

cd /usr/local/bin/

Check if edgerouter binary is available in this path. If it is there then execute from that path:-

sudo edgerouter -m client  

or 

sudo /usr/local/bin/edgerouter -m client

Let me know your observations and whether this works for you.

rvempati
Sudo Command execution from Dev Account

Great !! this works fine for me. Thanks