Skip to content

Commit

Permalink
- updates Yocto udev rule to restrict it to users of group sudo and a…
Browse files Browse the repository at this point in the history
…djust the udev related documentation in the Installation.md on the Wiki

- adds -deb-no-default-config-files option to deb package creation to resolve an issue on re-installation of Artisan complaining about overwriting existing udev rules config file
  • Loading branch information
MAKOMO committed Apr 7, 2018
1 parent d84cbbd commit 407028b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ flavor." \

# Allow FPM to write some temporary files
sudo chmod o+w .
fpm -s dir -t deb -n artisan --license GPL3 -m "Marko Luther <[email protected]>" -p .. \
fpm --deb-no-default-config-files -s dir -t deb -n artisan --license GPL3 -m "Marko Luther <[email protected]>" -p .. \
--vendor "Artisan GitHub" \
--no-auto-depends \
--url "https://github.com/artisan-roaster-scope/artisan" \
Expand Down
2 changes: 1 addition & 1 deletion src/debian/etc/udev/rules.d/99-artisan.rules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# udev rule to allow write access to all users for Aillio USB devices
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5741", MODE="0660", GROUP="sudo"
# udev rule to allow write access to all users for Yoctopuce USB devices
SUBSYSTEM=="usb", ATTR{idVendor}=="24e0", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="24e0", MODE="0666" GROUP="sudo"
17 changes: 2 additions & 15 deletions wiki/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ After this command you might need to logout and login again. Try
that your account was successful added to the dialout group.


Note that for apps running by non-root users access to Phidgets or Yoctopuce devices require the installation of corresponding udev rules. Check the [Phidgets](https://www.phidgets.com/docs/OS_-_Linux#Advanced_Information) and [Yoctopuce](https://www.yoctopuce.com/EN/article/how-to-begin-with-yoctopuce-devices-on-linux) platform installation notes.
Note that for apps running by non-root users access to Phidgets or Yoctopuce devices require the installation of corresponding udev rules. Check the [Phidgets](https://www.phidgets.com/docs/OS_-_Linux#Advanced_Information) and [Yoctopuce](https://www.yoctopuce.com/EN/article/how-to-begin-with-yoctopuce-devices-on-linux) platform installation notes. Those rules are installed automatically by Artisan, but require the users to be in the `sudo` group for security considerations.



Expand Down Expand Up @@ -128,17 +128,4 @@ Artisan uses one decimal point. You have to manually configure your pid so that

## Aillio Bullet R1

On Linux, Artisan needs read/write access to the USB device.
The easiest way to make sure permissions are always setup is to create
a udev rule.

Create a file in `/etc/udev/rules.d` named `60-aillio-r1.rules` containing
the following line:

```
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="5741", MODE="0660", GROUP="you-group-name"
```

Make sure GROUP is set correctly based on your group. Most of the
time your group name matches your user name, but you can confirm that
by running `id` on a terminal.
On Linux, Artisan needs read/write access to the USB device. Corresponding udev rules are automatically installed along Artisan in `/etc/udev/rules.d`. However, those require the users to be in the `sudo` group for security considerations.

0 comments on commit 407028b

Please sign in to comment.