Difference between revisions of "Execute as a root"
From youBot wiki
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | The youBot Driver needs access to the raw ethernet device | + | The youBot Driver needs access to the raw ethernet device, which Under Linux a normal user does not have. You can grand this capability to a program by the tool setcap. |
− | To provide a program with raw access to a ethernet device use: | + | To provide a program with raw access to a ethernet device use: |
− | <pre> sudo setcap cap_net_raw+ep | + | <pre> sudo setcap cap_net_raw+ep <path_to_your_program_executable>/<name_of_your_program_executable> |
+ | sudo ldconfig <path_to_your_program_executable> | ||
</pre> | </pre> | ||
+ | |||
+ | If the program is compiled with catkin_make the executables are created in folder <your catkin workspace>/devel/lib/<your program name>. | ||
+ | |||
+ | If you are installing from debian packages the executables can be found in /opt/ros/hydro/lib/ folder. | ||
+ | |||
+ | Go back to [[Technical Support Software | Technical Support Software]] | ||
+ | |||
+ | ''Corrections, suggestions, and new documentation should be posted to the [http://www.youbot-store.com/forum/ Forum].'' |
Latest revision as of 12:10, 12 February 2015
The youBot Driver needs access to the raw ethernet device, which Under Linux a normal user does not have. You can grand this capability to a program by the tool setcap.
To provide a program with raw access to a ethernet device use:
sudo setcap cap_net_raw+ep <path_to_your_program_executable>/<name_of_your_program_executable> sudo ldconfig <path_to_your_program_executable>
If the program is compiled with catkin_make the executables are created in folder <your catkin workspace>/devel/lib/<your program name>.
If you are installing from debian packages the executables can be found in /opt/ros/hydro/lib/ folder.
Go back to Technical Support Software
Corrections, suggestions, and new documentation should be posted to the Forum.