libmonome | makes writing applications for Monomes
kandi X-RAY | libmonome Summary
kandi X-RAY | libmonome Summary
makes writing applications for Monomes easy.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of libmonome
libmonome Key Features
libmonome Examples and Code Snippets
Community Discussions
Trending Discussions on libmonome
QUESTION
I wrote a Nix package to install the libmonome software for manipulating a monome, which connects to the computer via USB. My libmonome
Nix package (that's a permanent link to the current unsatisfactory version) cannot access the device unless I use sudo
:
ANSWER
Answered 2020-Jan-28 at 09:33This is likely caused by the user that the application is running as not having permission to access the USB device. The clue is failed to open /dev/ttyUSB0
You may think that you have usb access because you can use printers and usb sticks, but these are accessed by daemons that do not run as your uid
To fix this, obtain the group of the USB device by running ls -l /dev/ttyUSB0
(replace with the name of your USB if different) and add this group to the list of secondary groups for the user that needs to access the device. You will need to log out and in for this modification to take effect.
There are security implications of this, since any USB can now be written, but its certainly a lot better than running the program via root via sudo. Consider the use of setgid
on the executible that performs the access if many users will need to run this, though this has other security issues.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install libmonome
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page