Thread: LRF output
View Single Post
Old 05-07-2007, 01:06 PM   #48
yargoflick
Enthusiast
yargoflick is on a distinguished road
 
yargoflick's Avatar
 
Posts: 31
Karma: 60
Join Date: Mar 2007
Device: Sony Reader
Quote:
Originally Posted by allovertheglobe
Ok, I've started to play around some more with prs500 et al. I'm using a recently updated Ubuntu install (Feisty Fawn). I installed the tools as per the instructions on Kovid's page, without any notable problems. (Unlike my attempt to get it to work in Edgy Eft by using a (botched) Python2.5 install)

As in my previous post, I need to SUDO all commands to work properly, but I think there are still some serious Permissions issues since everything seems to default to root ownership, which is frowned upon in normal use from what I understand.

...

Add: I found out about a rather dangerous stunt, turning myself into root using sudo su, then running prs500-gui, that didn't work either.

Ok, you should NOT have to run prs500 as root...
did you follow the instructions to set up udev and add your user to the group plugdev?

Put the following code into /etc/udev/rules.d/z90-prs500.rules

BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="66

Add yourself to the plugdev group

gpasswd -a username plugdev

you can either reboot completely or just restart udev and relogin

to restart udev:
sudo /etc/init.d/udev restart

then log out completely and log back in again
open a terminal and type 'id', you should have plugdev as a group you belong to.
plug your reader in to the usb port and check that the node belongs to the group plugdev.
On my debian machine:

ls -l /dev/bus/usb/001/
outputs:
crw-rw-r-- 1 root root 189, 0 2007-05-07 13:18 001
crw-rw---- 1 root plugdev 189, 4 2007-05-07 14:30 005

id
outputs:
uid=1001(xxx) gid=1001(xxx) 20(dialout),25(floppy),29(audio),46(plugdev),100(u sers),107(fuse),1001(xxx)

I can now run prs500 and prs500-gui without being root.
The library.db that prs500-gui creates is owned by me.

Hope that helps,
Lee
yargoflick is offline   Reply With Quote