In order to use localhost:631 to manage CUPS, the pi user needs to be in the lp and lpadmin groups.
% sudo usernmod -a -G lp,lpadmin pi
Probably need to logout/login again.
The CUPS web login will prompt user username/password. Use the pi user and your pi password.
Wednesday, April 30, 2014
Thursday, April 3, 2014
Adding New Scanner to Raspberry Pi
More notes on getting scan working on Raspberry Pi running NOOBs (Debian).
A"permission denied" problem is usually the first stumbling block using libusb to directly talk to scanner. SANE will automatically configure the scanner to be read/writeable by the user.
SANE (http://www.sane-project.org/) is awesome sauce. But it doesn't support the weird scanners I get to handle.
To add a new scanner, add the vid/pid to /lib/udev/rules.d/60-libsane.rules after LABEL="libsane_usb_rules_begin" (towards start of file) and before LABEL="libsane_rules_end".
SANE's udev rules finish by calling /bin/setfacl to set permissions on the USB devnode. Just adding the scanner's vid/pid to the sane udev rules used to be enough (Ubuntu 12.04). Not so anymore.
The Raspberry Pi Debian has a "scanner" group. The scanner dev node is created rw on that group. So I needed to add the user 'pi' to the scanner group with usermod.
I don't know if the scanner group is a new feature of SANE or something in the newer Debians. (I'm running an older Ubuntu on my laptop). But I can now talk to my scanner without being root.
A"permission denied" problem is usually the first stumbling block using libusb to directly talk to scanner. SANE will automatically configure the scanner to be read/writeable by the user.
SANE (http://www.sane-project.org/) is awesome sauce. But it doesn't support the weird scanners I get to handle.
To add a new scanner, add the vid/pid to /lib/udev/rules.d/60-libsane.rules after LABEL="libsane_usb_rules_begin" (towards start of file) and before LABEL="libsane_rules_end".
SANE's udev rules finish by calling /bin/setfacl to set permissions on the USB devnode. Just adding the scanner's vid/pid to the sane udev rules used to be enough (Ubuntu 12.04). Not so anymore.
The Raspberry Pi Debian has a "scanner" group. The scanner dev node is created rw on that group. So I needed to add the user 'pi' to the scanner group with usermod.
I don't know if the scanner group is a new feature of SANE or something in the newer Debians. (I'm running an older Ubuntu on my laptop). But I can now talk to my scanner without being root.
Changing Console Keyboard on Raspberry Pi
I'm ramping up on using Raspberry Pi as a scanner development machine. As such, I'm installing all the usual suspects: sane, libusb, PIL, matplotlib, and numpy.
The default console keyboard isn't "us". As a US keyboard user, I found things like | (pipe) weren't working for me.
The console keyboard is configured in /etc/default/keyboard. See also keyboard(5). I changed KBDLAYOUT="gb" to KBDLAYOUT="us" and rebooted. Voila! My keyboard now works.
The default console keyboard isn't "us". As a US keyboard user, I found things like | (pipe) weren't working for me.
The console keyboard is configured in /etc/default/keyboard. See also keyboard(5). I changed KBDLAYOUT="gb" to KBDLAYOUT="us" and rebooted. Voila! My keyboard now works.
Subscribe to:
Posts (Atom)