Template:PT3 C LNX GCC: Difference between revisions
From Phidgets Support
No edit summary |
No edit summary |
||
Line 36: | Line 36: | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<h2>Setting UDev Rules | <h2>Setting UDev Rules</h2> | ||
<p> | <p> | ||
Line 45: | Line 45: | ||
<div class="phd-command-line"><code>sudo ./HelloWorld</code></div> | <div class="phd-command-line"><code>sudo ./HelloWorld</code></div> | ||
<p>To avoid having to use sudo every time, you can set up a rules file to allow it automatically using the vendor code for Phidget USB devices. | <p> | ||
To avoid having to use sudo every time, you can set up a rules file to allow it automatically using the vendor code for Phidget USB devices. Create a text file | |||
called <b>99-libphidget22.rules</b> containing the following line: | |||
</p> | |||
<div class="phd-command-line"><code>SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="06c2", ATTRS{idProduct}=="00[3-a][0-f]", MODE="666"</code></div> | <div class="phd-command-line"><code>SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="06c2", ATTRS{idProduct}=="00[3-a][0-f]", MODE="666"</code></div> |