Author Topic: Sane driving me insane  (Read 6654 times)

0 Members and 1 Guest are viewing this topic.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #30 on: April 25, 2013, 02:56:28 pm »
did you ever add that udev rule ?

what's the output from:
Code: [Select]
ls -a /etc/udev/rules.d
« Last Edit: April 25, 2013, 02:59:38 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #31 on: April 25, 2013, 02:58:33 pm »
Quote
did you ever add that udev rule ?

Yes but I didn't make the corrections to the idVendor & idProduct

EDIT

Here's the output

Code: [Select]
graeme@Linux3 ~ $ ls -a /etc/udev/rules.d
.   70-persistent-cd.rules   90-scanner.rules   README
..  70-persistent-net.rules  90-scanner.rules~
graeme@Linux3 ~ $
« Last Edit: April 25, 2013, 03:00:05 pm by Emegra »
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #32 on: April 25, 2013, 03:03:13 pm »
a) that udev rule may not be necessary .. and may even be getting in the way.

b) you'd have to restart udev for the changes to apply
Code: [Select]
sudo service udev restart



Ever considered adding a REALLY strict static password to Teamviewer, then setting it to autostart at bootup ;)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #33 on: April 25, 2013, 03:11:07 pm »
delete those 2 files:
Code: [Select]
sudo rm -v /etc/udev/rules.d/90-scanner.rules
and
Code: [Select]
sudo rm -v /etc/udev/rules.d/90-scanner.rules~
restart udev
Code: [Select]
sudo service udev restart

Now what's the output from:
Code: [Select]
groups saned

now let's check again if saned has permission to access the scanner ..run:
Code: [Select]
sudo -s
then
Code: [Select]
su -s /bin/bash saned
then
Code: [Select]
scanimage -L
What's the output from that last command ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #34 on: April 25, 2013, 03:16:55 pm »
I'm happy to delete the udev rule if you thinks it's really not necessary, but if you think I should keep it do you want me to correct the syntax re idProduct & idVendor ?
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #35 on: April 25, 2013, 03:20:51 pm »
see above :)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #36 on: April 25, 2013, 03:21:50 pm »
Code: [Select]
graeme@Linux3 ~ $ groups saned
saned : saned lp
graeme@Linux3 ~ $


Code: [Select]
saned@Linux3 /home/graeme $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
saned@Linux3 /home/graeme $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #37 on: April 25, 2013, 03:26:53 pm »
what's the output from:
Code: [Select]
lsusb
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #38 on: April 25, 2013, 03:33:31 pm »
Code: [Select]
graeme@Linux3 ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 006: ID 058f:6377 Alcor Micro Corp. Multimedia Card Reader
Bus 002 Device 002: ID 04b8:0005 Seiko Epson Corp. Printer
Bus 002 Device 003: ID 1d57:32da 
Bus 003 Device 002: ID 05d8:4002 Ultima Electronics Corp. Artec Ultima 2000 (GT6801 based)/Lifetec LT9385/ScanMagic 1200 UB Plus Scanner
Bus 001 Device 007: ID 03f0:3807 Hewlett-Packard
graeme@Linux3 ~ $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #39 on: April 25, 2013, 03:48:48 pm »
OK, let's try putting it back with the correct permissions.

Run:
Code: [Select]
sudo gedit /etc/udev/rules.d/90-scanner.rules
and make it read:-
Code: [Select]
SUBSYSTEMS=="usb", ATTRS{idVendor}==”05d8″, ATTRS{idProduct}==”4002″, ENV{libsane_matched}="yes",
MODE=”0660″, OWNER=”root”, GROUP=”saned”
(that's all one line, so copy/paste)

now reload udev:
Code: [Select]
sudo service udev restart

now let's check again if saned has permission to access the scanner ..run:
Code: [Select]
sudo -s
then
Code: [Select]
su -s /bin/bash saned
then
Code: [Select]
scanimage -L
What's the output from that last command ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #40 on: April 25, 2013, 03:53:29 pm »
Code: [Select]
graeme@Linux3 ~ $ sudo gedit /etc/udev/rules.d/90-scanner.rules
[sudo] password for graeme:
graeme@Linux3 ~ $ sudo service udev restart
udev stop/waiting
udev start/running, process 7371
graeme@Linux3 ~ $ sudo -s
Linux3 ~ # su -s /bin/bash saned
saned@Linux3 /home/graeme $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
saned@Linux3 /home/graeme $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #41 on: April 25, 2013, 04:03:33 pm »
Hmm .. this is definitely a permission problem.

saned doesn't appear to have the correct permissions to access the scanner.

For the time being, lets' remove the udev rule again .. then I need to go do some homework on udev rules:
Code: [Select]
sudo rm -v /etc/udev/rules.d/90-scanner.rules
then
Code: [Select]
sudo service udev restart
then post the output from:
Code: [Select]
ls -a /etc/udev/rules.d
and
Code: [Select]
scanimage -L
and
Code: [Select]
sudo scanimage -L
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #42 on: April 25, 2013, 04:07:19 pm »
Code: [Select]
graeme@Linux3 ~ $ sudo rm -v /etc/udev/rules.d/90-scanner.rules
[sudo] password for graeme:
removed `/etc/udev/rules.d/90-scanner.rules'
graeme@Linux3 ~ $ sudo service udev restart
udev stop/waiting
udev start/running, process 7768
graeme@Linux3 ~ $ ls -a /etc/udev/rules.d
.  ..  70-persistent-cd.rules  70-persistent-net.rules  README
graeme@Linux3 ~ $ scanimage -L
device `gt68xx:libusb:003:002' is a Mustek BearPaw 1200 CU flatbed scanner
graeme@Linux3 ~ $ sudo scanimage -L
device `gt68xx:libusb:003:002' is a Mustek BearPaw 1200 CU flatbed scanner
graeme@Linux3 ~ $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 13779
  • Karma: 342
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Sane driving me insane
« Reply #43 on: April 25, 2013, 04:15:40 pm »
OK, one more go at a udev rule:
Code: [Select]
sudo gedit /etc/udev/rules.d/90-scanner.rules

make it read:
Code: [Select]
ATTRS{idVendor}=="05d8", ATTRS{idProduct}=="4002", MODE="0664", GROUP="saned", ENV{libsane_matched}="yes"
(thats a single line)
SAVE the file, then reload udev:
Code: [Select]
sudo service udev restart

now try seeing if saned has permission for the scanner .. as above.

ie. -

Code: [Select]
sudo -s
then
Code: [Select]
su -s /bin/bash saned
then
Code: [Select]
scanimage -L
What's the output from that last command ?
« Last Edit: April 25, 2013, 04:17:53 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Emegra

  • Hero Member
  • *****
  • Posts: 2658
  • Karma: 54
  • Gender: Male
  • Devilishly Handsome
    • View Profile
    • Awards
Re: Sane driving me insane
« Reply #44 on: April 25, 2013, 04:19:27 pm »
Code: [Select]
graeme@Linux3 ~ $ sudo gedit /etc/udev/rules.d/90-scanner.rules
[sudo] password for graeme:
graeme@Linux3 ~ $ sudo service udev restart
udev stop/waiting
udev start/running, process 7994
graeme@Linux3 ~ $ sudo -s
Linux3 ~ # su -s /bin/bash saned
saned@Linux3 /home/graeme $ scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
saned@Linux3 /home/graeme $
If you can keep your head while all around are losing theirs, then you're not quite grasping the situation

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal