(I wasn't monitoring the forum the last couple of weeks so this is a bit late)
@isdxman: To get access to the /dev/usb* devices you should add yourself to the group with access to the serial devices. This is much better than executing as root. So, what you do is to
- plug in kryoflux (this will make the correct /dev/usb* device appear)
- You may enter 'dmesg' (without quotes) to see the name of the device that appeared. It lists the kernel messages, and the last ones are at the end.
- Do 'ls -l /dev/ttyUSB0' (or whatever usb it is, and without the 'quotes')
- Check which group it is. On my system (Debian) it's 'dialout', something like:
Code: Select all
crw-rw---T 1 root dialout [...] /dev/ttyUSB0
(On some distros that would be 'uucp', i.e. 'root uucp')
- Add your own account to the group (dialout or uucp or whatever). It appears that you're on a variant Ubuntu distribution, if so then it's easy: Execute the command
adduser your-name dialout
as root, e.g.
- If you're on an RPM-based distro like SuSE or RedHat, the command 'adduser' doesn't exist. The easiest way (will even work on Ubuntu/Debian/Unix too) is to manually edit the file /etc/group and add yourself to the right group. On my system it's 'dialout' and it looks like this (my account is 'tor'):
Code: Select all
$ grep dialout /etc/group
- Log completely out of your computer
- Log in again. Open a shell. Enter 'id' (without quotes). It will list what groups you're a member of. 'dialout' should now be one of them (if that was a group).
- You now have user access to /dev/ttyUSB0 (or whatever).
- That same procedure works for /dev/audio (for access to sound), /dev/video0 (webcam), cdrom, (group cdrom), floppy etc. You shouldn't need root access for any of them, just add yourself to a group with access.
Lastly, all of the above group management can probably be done with one of those desktop system GUI features, but a) I don't use them so I don't know them, b) they'll be different for every distro or desktop, and c) the command line procedure I described will work on all distros, and even other Unix and Unix-like systems.