Re: [sane-devel] Who do I submit a How To for saned?

2018-03-22 Thread ToddAndMargo

On 03/22/2018 11:54 AM, John Oliver wrote:

Err... if anything, it's the opposite.  Fedora is the FOSS upstream for
RHEL.  It has a very short, bleeding-edge lifecycle of about six months.
RHEL and CentOS get long in the tooth, sure, but what you can expect
from them is anything but "riddled with bugs and incompatibilities".



I was with RHEL clones since CentOS 5 all the way to Scientific
Linux 7.5.  My choice was based on all the above stuff you stated.

RHEL is "minimally" maintained.  (No flame wars here, I said
"minimally" not "NOT" maintained.)  In order to maintain stability,
RHEL is deliberately "out-of-date".  This means the OS is locked
down and frozen in place.  "Supposedly" this is to keep instabilities
from creeping in.

What sounds wonderful is not always the reality.  I learned this
the EXTREME HARD WAY.  Bugs that are reported are NOT fixed, or
if they are fixed it takes up to SIX YEARS.

The two straws that broke my back were the bug in Osmo
were my business' contacts got wiped when I shutdown.
Mind you Osmo had fixed this, but could do nothing for
me as Scientific Linux was so miserably out of date.

And the other one was that RHEL and Friends no longer
supports modern motherboards (bug 1353423) and has
no intention of remedying the issue, even though
Supermicro has a program to provide Red Hat with all
the hardware they need.  1353423 cost me over $1000
in free consulting to figure out.  I had even tested
the motherboard with a Live USB before install natively.
"Pissed" does not begin to describe it!

Since all my customers are now on the more stable
Fedora servers do to 1353423, I ripped out Scientific
Linux and installed Fedora on my own machines so I
could match my customers.  I did this in December.  It
has been joy ever since to see all the improvements
and bug fixes in the various software package I run
in my business.  And Osmo no longer eats my business
contacts (good thing I am a backup whore).

And my USB2 is now four to five times faster (bugs
1333582, 1333583, 1224498).

So, in my experience, I do not recommend RHEL for anything
other than a set and forget appliance.  And you can
do that with any Linux by turning off the updates.

Now for a Fedora example, the above mentioned motherboard
that RHEL won't even run on (1353423) had a problem
rebooting and shutting down (bug 1537845).

Reported: 2018-01-23
Reported as resolved after a weeks testing: 2018-03-19

Beats the hell out of six years to NEVER.

Fedora is a Kaisen OS (constant improvement); RHEL is
by nature a non-kaisen OS.

RHEL is NOT more stable.  Fedora is a joy to use and work
on.  RHEL ALMOST DROVE ME INSANE !!!

The irony that RHEL could not fix all the various issues
with qemu-kvm because as RHEL was too out of date and kvm
being a Red Hat project is not lost on me (bug 1518387).




--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Who do I submit a How To for saned?

2018-03-22 Thread ToddAndMargo
On Sat, Mar 10, 2018 at 4:49 PM, ToddAndMargo <toddandma...@zoho.com 
<mailto:toddandma...@zoho.com>> wrote:


Hi All,

I wrote up an very in depth How To on saned and Fedora.
It included all the annoying, missing steps you
get when your google how to do this.

Who would I submit it to get get in evaluated for
inclusion to Sane's How To's?

Many thanks,
-T


On 03/21/2018 07:47 PM, Steven Santos wrote:
I am about to install SANE on a fresh CENTOS 7 system.  Any chance I 
could get a copy of this howto?




RHEL is riddled with bugs and incompatibilities, so the HOWTO
is specifically written for Fedora (where things work).  But,
this is close enough to RHEL that you should be able to
adapt it.  Basically, some of the back end rpms are rolled
together in RHEL.  Systemd is the same.

Qoppa took the howto and posted it.  Fedora showed some interest, so
I will eventually posted it with Fedora too.  Other than you,
sane showed no interest.

Good luck!

https://kbpdfstudio.qoppa.com/how-to-set-up-your-scanner-to-work-with-sane-and-pdf-studio-under-fedora-27-linuxs-systemd/

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Who do I submit a How To for saned?

2018-03-10 Thread ToddAndMargo

Hi All,

I wrote up an very in depth How To on saned and Fedora.
It included all the annoying, missing steps you
get when your google how to do this.

Who would I submit it to get get in evaluated for
inclusion to Sane's How To's?

Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] [solved] Re: Saned and root privileges ????

2018-03-10 Thread ToddAndMargo

On 03/10/2018 01:01 PM, ToddAndMargo wrote:

On 03/10/2018 12:44 PM, ToddAndMargo wrote:

On 03/10/2018 12:23 PM, ToddAndMargo wrote:

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:



On 10/03/18 11:17, ToddAndMargo wrote:

On 03/10/2018 03:06 AM, Andrew Goodbody wrote:

On 10/03/18 04:59, ToddAndMargo wrote:

On 03/09/2018 12:53 PM, ToddAndMargo wrote:

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T


I just caught this:

$ ps -eo pid,user,group,args --sort user | grep cups
  5005 root root /usr/sbin/cupsd -l

CUPS "is" running as root.  So is it okay to add
saned to root's group?


No, of course not, that's a huge security hole. Just because cups 
does it is no indication that saned should.


The problem could well be that the user saned does not have access 
to your scanner. So check that saned is a member of whichever 
group can access your scanner device. This may be 'scanner'.


Andrew


find /dev -iname \*scanner\*



Please keep this on the list.

What do the commands

lsusb -s 001:007

and

ls -l /dev/bus/usb/001/007

return?

Andrew


$ scanimage -L
device `epkowa:interpreter:001:007' is a Epson Perfection V300 
flatbed scanner


$ lsusb -s 001:007
Bus 001 Device 007: ID 04b8:0131 Seiko Epson Corp. GT-F720 
[GT-S620/Perfection V30/V300 Photo]


$ ls -l /dev/bus/usb/001/007
crw-rw-r--+ 1 root root 189, 6 Mar 10 12:03 /dev/bus/usb/001/007

$ ls -l /usr/lib/udev/rules.d | grep -i sane
-rw-r--r--. 1 root root   3934 Mar  9 12:21 65-sane-backends.rules

The following temporarily fixes the issue (saned removed from
root and a test to verify `xsane net:localhost` crashes before
throwing the following):

    # chown saned.saned ls -l /dev/bus/usb/001/007

But the scanner does not always mount on 001:007.
Power it off and back on and it mounts on 001:008, etc.


Does this lead us to a fix?

Many thanks,
-T


Now it has decided to give the list precedence!

Over on

https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8

   2. Permissions must be given to the saned user to access scanners.
   I don't have any scanners to test, but the following should work:

   # /usr/lib/udev/rules.d/70-saned.rules
   ACTION=="add", ENV{libsane_matched}=="yes", GROUP="saned", 
MODE="0660"



Is this something I should add to
 /usr/lib/udev/rules.d/65-sane-backends.rules
?



And that worked.

# rpm -qf /usr/lib/udev/rules.d/65-sane-backends.rules
sane-backends-1.0.27-12.fc27.x86_64

Ah Ha!

I just opened
https://bugzilla.redhat.com/show_bug.cgi?id=1554032

to fix this.

I have been trouybleshooting this since November
 AAH! 

Thank you all for all your help and patience with this!

-T





Note: you have to reboot to get this to take:

$ scanimage -L
device `epkowa:interpreter:001:003' is a Epson Perfection V300 flatbed 
scanner
device `net:localhost:epkowa:interpreter:001:003' is a Epson Perfection 
V300 flatbed scanner


$ xsane net:localhost
worked

Unplugging and replugging the scanner:
$ scanimage -L
device `epkowa:interpreter:001:008' is a Epson Perfection V300 flatbed 
scanner
device `net:localhost:epkowa:interpreter:001:008' is a Epson Perfection 
V300 flatbed scanner


$ xsane net:localhost
worked


--
~~~
Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
~~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] [solved] Re: Saned and root privileges ????

2018-03-10 Thread ToddAndMargo

On 03/10/2018 12:44 PM, ToddAndMargo wrote:

On 03/10/2018 12:23 PM, ToddAndMargo wrote:

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:



On 10/03/18 11:17, ToddAndMargo wrote:

On 03/10/2018 03:06 AM, Andrew Goodbody wrote:

On 10/03/18 04:59, ToddAndMargo wrote:

On 03/09/2018 12:53 PM, ToddAndMargo wrote:

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T


I just caught this:

$ ps -eo pid,user,group,args --sort user | grep cups
  5005 root root /usr/sbin/cupsd -l

CUPS "is" running as root.  So is it okay to add
saned to root's group?


No, of course not, that's a huge security hole. Just because cups 
does it is no indication that saned should.


The problem could well be that the user saned does not have access 
to your scanner. So check that saned is a member of whichever group 
can access your scanner device. This may be 'scanner'.


Andrew


find /dev -iname \*scanner\*



Please keep this on the list.

What do the commands

lsusb -s 001:007

and

ls -l /dev/bus/usb/001/007

return?

Andrew


$ scanimage -L
device `epkowa:interpreter:001:007' is a Epson Perfection V300 flatbed 
scanner


$ lsusb -s 001:007
Bus 001 Device 007: ID 04b8:0131 Seiko Epson Corp. GT-F720 
[GT-S620/Perfection V30/V300 Photo]


$ ls -l /dev/bus/usb/001/007
crw-rw-r--+ 1 root root 189, 6 Mar 10 12:03 /dev/bus/usb/001/007

$ ls -l /usr/lib/udev/rules.d | grep -i sane
-rw-r--r--. 1 root root   3934 Mar  9 12:21 65-sane-backends.rules

The following temporarily fixes the issue (saned removed from
root and a test to verify `xsane net:localhost` crashes before
throwing the following):

    # chown saned.saned ls -l /dev/bus/usb/001/007

But the scanner does not always mount on 001:007.
Power it off and back on and it mounts on 001:008, etc.


Does this lead us to a fix?

Many thanks,
-T


Now it has decided to give the list precedence!

Over on

https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8

   2. Permissions must be given to the saned user to access scanners.
   I don't have any scanners to test, but the following should work:

   # /usr/lib/udev/rules.d/70-saned.rules
   ACTION=="add", ENV{libsane_matched}=="yes", GROUP="saned", 
MODE="0660"



Is this something I should add to
     /usr/lib/udev/rules.d/65-sane-backends.rules
?



And that worked.

# rpm -qf /usr/lib/udev/rules.d/65-sane-backends.rules
sane-backends-1.0.27-12.fc27.x86_64

Ah Ha!

I just opened
https://bugzilla.redhat.com/show_bug.cgi?id=1554032

to fix this.

I have been trouybleshooting this since November
 AAH! 

Thank you all for all your help and patience with this!

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] bug in mailing list

2018-03-10 Thread ToddAndMargo

On 03/10/2018 12:04 PM, ToddAndMargo wrote:

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:
 > Please keep this on the list.


This is caused by the following missing header in the eMail message:

Precedence: list

Currently, without this, Thunderbird thinks these messages are
regular conversations and gives the Reply All button precedence.
So, you wind up send out a lot of message to private addresses,
rather than the list's address or both.


Many thanks,
-T


Apparently, sometimes it does and sometimes it does not.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Saned and root privileges ????

2018-03-10 Thread ToddAndMargo

On 03/10/2018 12:23 PM, ToddAndMargo wrote:

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:



On 10/03/18 11:17, ToddAndMargo wrote:

On 03/10/2018 03:06 AM, Andrew Goodbody wrote:

On 10/03/18 04:59, ToddAndMargo wrote:

On 03/09/2018 12:53 PM, ToddAndMargo wrote:

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T


I just caught this:

$ ps -eo pid,user,group,args --sort user | grep cups
  5005 root root /usr/sbin/cupsd -l

CUPS "is" running as root.  So is it okay to add
saned to root's group?


No, of course not, that's a huge security hole. Just because cups 
does it is no indication that saned should.


The problem could well be that the user saned does not have access 
to your scanner. So check that saned is a member of whichever group 
can access your scanner device. This may be 'scanner'.


Andrew


find /dev -iname \*scanner\*



Please keep this on the list.

What do the commands

lsusb -s 001:007

and

ls -l /dev/bus/usb/001/007

return?

Andrew


$ scanimage -L
device `epkowa:interpreter:001:007' is a Epson Perfection V300 flatbed 
scanner


$ lsusb -s 001:007
Bus 001 Device 007: ID 04b8:0131 Seiko Epson Corp. GT-F720 
[GT-S620/Perfection V30/V300 Photo]


$ ls -l /dev/bus/usb/001/007
crw-rw-r--+ 1 root root 189, 6 Mar 10 12:03 /dev/bus/usb/001/007

$ ls -l /usr/lib/udev/rules.d | grep -i sane
-rw-r--r--. 1 root root   3934 Mar  9 12:21 65-sane-backends.rules

The following temporarily fixes the issue (saned removed from
root and a test to verify `xsane net:localhost` crashes before
throwing the following):

    # chown saned.saned ls -l /dev/bus/usb/001/007

But the scanner does not always mount on 001:007.
Power it off and back on and it mounts on 001:008, etc.


Does this lead us to a fix?

Many thanks,
-T


Now it has decided to give the list precedence!

Over on

https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8

  2. Permissions must be given to the saned user to access scanners.
  I don't have any scanners to test, but the following should work:

  # /usr/lib/udev/rules.d/70-saned.rules
  ACTION=="add", ENV{libsane_matched}=="yes", GROUP="saned", 
MODE="0660"



Is this something I should add to
/usr/lib/udev/rules.d/65-sane-backends.rules
?



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Saned and root privileges ????

2018-03-10 Thread ToddAndMargo

one more:

$ grep lp /etc/group
lp:x:7:saned


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Saned and root privileges ????

2018-03-10 Thread ToddAndMargo

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:



On 10/03/18 11:17, ToddAndMargo wrote:

On 03/10/2018 03:06 AM, Andrew Goodbody wrote:

On 10/03/18 04:59, ToddAndMargo wrote:

On 03/09/2018 12:53 PM, ToddAndMargo wrote:

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T


I just caught this:

$ ps -eo pid,user,group,args --sort user | grep cups
  5005 root root /usr/sbin/cupsd -l

CUPS "is" running as root.  So is it okay to add
saned to root's group?


No, of course not, that's a huge security hole. Just because cups 
does it is no indication that saned should.


The problem could well be that the user saned does not have access to 
your scanner. So check that saned is a member of whichever group can 
access your scanner device. This may be 'scanner'.


Andrew


find /dev -iname \*scanner\*



Please keep this on the list.

What do the commands

lsusb -s 001:007

and

ls -l /dev/bus/usb/001/007

return?

Andrew


$ scanimage -L
device `epkowa:interpreter:001:007' is a Epson Perfection V300 flatbed 
scanner


$ lsusb -s 001:007
Bus 001 Device 007: ID 04b8:0131 Seiko Epson Corp. GT-F720 
[GT-S620/Perfection V30/V300 Photo]


$ ls -l /dev/bus/usb/001/007
crw-rw-r--+ 1 root root 189, 6 Mar 10 12:03 /dev/bus/usb/001/007

$ ls -l /usr/lib/udev/rules.d | grep -i sane
-rw-r--r--. 1 root root   3934 Mar  9 12:21 65-sane-backends.rules

The following temporarily fixes the issue (saned removed from
root and a test to verify `xsane net:localhost` crashes before
throwing the following):

   # chown saned.saned ls -l /dev/bus/usb/001/007

But the scanner does not always mount on 001:007.
Power it off and back on and it mounts on 001:008, etc.


Does this lead us to a fix?

Many thanks,
-T



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] bug in mailing list

2018-03-10 Thread ToddAndMargo

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:
> Please keep this on the list.


This is caused by the following missing header in the eMail message:

Precedence: list

Currently, without this, Thunderbird thinks these messages are
regular conversations and gives the Reply All button precedence.
So, you wind up send out a lot of message to private addresses,
rather than the list's address or both.


Many thanks,
-T



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Bug in mailing list

2018-03-10 Thread ToddAndMargo

On 03/10/2018 09:22 AM, Andrew Goodbody wrote:

Please keep this on the list.



This is caused by the following missing header in the eAmil message:

Precedence: list

Currently, without this, Thunderbird thinks these messages are
regular conversations and gives the Reply All button precedence.
So, you wind up send out a lot of message to private addresses,
rather than the list's address or both.


Many thanks,
-T



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] net.conf bug

2018-03-09 Thread ToddAndMargo

Hi All,

The comment section of /etc/sane.d/net.conf, state

## saned hosts
# Each line names a host to attach to.

This is confusing, if not inaccurate.  It should say

# List the name or IP of the server that the scanner
# to be shared is attached to

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1546433#c15

Many thanks,
-T







--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Saned and root privileges ????

2018-03-09 Thread ToddAndMargo

On 03/09/2018 12:53 PM, ToddAndMargo wrote:

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T


I just caught this:

$ ps -eo pid,user,group,args --sort user | grep cups
 5005 root root /usr/sbin/cupsd -l

CUPS "is" running as root.  So is it okay to add
saned to root's group?




--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Epson Perfection V300 and the backend

2018-03-09 Thread ToddAndMargo

On 03/09/2018 02:35 AM, Olaf Meeuwissen wrote:

Hi Todd,

ToddAndMargo writes:


On 03/08/2018 03:09 AM, Olaf Meeuwissen wrote:


# Better quoting would be appreciated :-)


looking at
krarc:/home/CDs/Linux/Epson/iscan-gt-f720-bundle-1.0.1.x64.rpm/data/iscan-data-1.36.0-1.noarch.rpm/usr/share/iscan-data/device/

I only find an XML for the Perfection V800.


The presence of an XML file for your device is not a hard requirement,
IIRC.  The fact that scanimage lists your V300 would be proof of that.
If you can actually scan with scanimage even more so.  If you can scan
with scanimage then the V300 _is_ supported by the epkowa backend.

If, on the same machine and with the same permissions, saned is not able
to detect the device, then there is something wrong with your saned
configuration iself or with the way saned is started by, I presume,
systemd.


Figured it out.  I had to add saned to root in /etc/group.  I
made a separate posting on this to find out the ramifications
and if there is a way around it.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Saned and root privileges ????

2018-03-09 Thread ToddAndMargo

Hi All,

Okay, now this is "scary".

Both xsane and Simple Scan work locally.

I can not get saned to work, UNLESS, I edit /etc/group
and add the following to root

root:x:0:saned

Without it, I get

$ xsane net:localhost:epkowa:interpreter:001:007
Access to resource has been denied

Now what am I doing wrong?  Must saned have root privileges?

Many thanks,
-T



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Epson Perfection V300 and the backend

2018-03-08 Thread ToddAndMargo

On 03/08/2018 03:09 AM, Olaf Meeuwissen wrote:

looking at 
krarc:/home/CDs/Linux/Epson/iscan-gt-f720-bundle-1.0.1.x64.rpm/data/iscan-data-1.36.0-1.noarch.rpm/usr/share/iscan-data/device/


I only find an XML for the Perfection V800.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Epson Perfection V300 and the backend

2018-03-08 Thread ToddAndMargo

On 03/08/2018 03:09 AM, Olaf Meeuwissen wrote:

You are of course looking at the saned output from a saned that runs on
the machine to which your V300 is connected, right?


yes


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Epson Perfection V300 and the backend

2018-03-08 Thread ToddAndMargo

On 03/08/2018 03:09 AM, Olaf Meeuwissen wrote:

Hi Todd,

ToddAndMargo writes:


Hi All,

Fedora 27
iscan-gt-f720-bundle-1.0.1.x64.rpm

By change is the Epson Perfection V300 included in
the rpm's front end, but not its back end?


I just remembered I wrote a section about the network configuration for
iscan a decade or so ago.  Have a look at

   http://download.ebz.epson.net/man/linux/iscan_e.html#sec7

and see if some of that helps.


I will look on Friday when I get some more office time.
Thank you!





Scanimage can find it,

$ scanimage -L
device `epkowa:interpreter:001:008' is a Epson Perfection V300 flatbed
scanner

but saned cannot.

saned[16940]: [net] sane_init: done
saned[16940]: [dll] init: backend `net' is version 1.0.27
saned[16940]: [net] sane_get_devices: local_only = 1
saned[16940]: [dll] sane_get_devices: found 0 devices
saned[16940]: saned exiting

If not, how do I get the V300 into the back end?


Does saned's dll load the epkowa backend?  I think you can check by
running it in standalone mode and get the dll backend to output the
debug info with

   sudo SANE_DEBUG_DLL=128 saned -d128

You are of course looking at the saned output from a saned that runs on
the machine to which your V300 is connected, right?


Looking at

   # journalctl -efx -t saned > /home/temp/saned.log.epson4.txt

After running `xsane net:localhost`, it seems like I
have hundreds of "epkowa" entries, but nothing with a
"300" in it.

This is why I am suspicious of the V300 not being
supported in the back end.



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Epson Perfection V300 and the backend

2018-03-08 Thread ToddAndMargo

Hi All,

Fedora 27
iscan-gt-f720-bundle-1.0.1.x64.rpm


By change is the Epson Perfection V300 included in
the rpm's front end, but not its back end?

Scanimage can find it,

$ scanimage -L
device `epkowa:interpreter:001:008' is a Epson Perfection V300 flatbed 
scanner


but saned cannot.

saned[16940]: [net] sane_init: done
saned[16940]: [dll] init: backend `net' is version 1.0.27
saned[16940]: [net] sane_get_devices: local_only = 1
saned[16940]: [dll] sane_get_devices: found 0 devices
saned[16940]: saned exiting

If not, how do I get the V300 into the back end?

Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-20 Thread ToddAndMargo

On 02/18/2018 07:16 PM, ToddAndMargo wrote:

On 02/18/2018 12:14 AM, Olaf Meeuwissen wrote:

The SANE_DEBUG_BJNP setting was a dead giveaway


Hi Olaf,

Do you have a link to a list of these?


Many thanks,
-T


Olaf?


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-18 Thread ToddAndMargo

On 02/18/2018 12:14 AM, Olaf Meeuwissen wrote:

The SANE_DEBUG_BJNP setting was a dead giveaway


Hi Olaf,

Do you have a link to a list of these?


Many thanks,
-T

--

Yesterday it worked.
Today it is not working.
Windows is like that.



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-17 Thread ToddAndMargo

On 02/17/2018 05:48 PM, Richard Ryniker wrote:

libsane-imagescan.so.1 is in the rpm package at:

   
http://ftp.gwdg.de/pub/opensuse/repositories/home:/zhonghuaren/Fedora_27/x86_64/imagescan-3.32.0-8.1.x86_64.rpm

but I have only looked to see this file is there.  I have not tried it.
Perhaps it will offer you a path forward.  I suspect the package
referenced above originates from:

 https://github.com/utsushi/imagescan



Hi Richard,

Tears!  :'(

  # dnf repoquery --whatprovides */imagescan
  Last metadata expiration check: 0:03:36 ago on Sat 17
  Feb 2018 11:33:23 PM PST.
  


  # dnf repoquery --whatprovides */libsane-imagescan
  Last metadata expiration check: 0:03:45 ago on Sat 17
  Feb 2018 11:33:23 PM PST.
  


Sanity check:
 # dnf repoquery --whatprovides firefox
 Last metadata expiration check: 0:07:08 ago on Sat 17
 Feb 2018 11:33:23 PM PST.
 firefox-0:57.0-0.8.fc27.x86_64
 firefox-0:58.0.1-1.fc27.x86_64


I will look in the opensuse repo probably sometime tomorrow.  I
may have to rebuild the SRPM.

Thank you for the help!

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-17 Thread ToddAndMargo

On 02/17/2018 04:47 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi All,

found 0 devices

What is this all about?


How are we supposed to know?  


But, but, but, I thought you knew all and see all!!!
I should have put the question at the bottom of the post,
instead of the top.



What did you do?  What did you expect to
happen?  What happened?


I was unable to scan with saned.  I posted a link
to the full error log below.


Please provide details.  We weren't shoulder-surfing at your place when
this happened and we have neither extra-sensory perception capabilities
nor crystal balls.


If you look at the bug report posted below, the two
attachments give tons of details.


Fedora 26 x 64
Xfce 4.12

sane-backends-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.i686
sane-backends-daemon-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.x86_64

I am trying to get xsane to work with systemd and saned.  When I run
  $ xsane net:localhost

I get the following error pop up:
 Error: Failed to open device `net:localhost': Error during device I/0

In saned@.service, I have debug set to the following:
Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5
SANE_DEBUG_NET=128

And this error pops up in my debug log:
# journalctl -efx -t saned > saned.log.txt

 996: 032]: [dll] load: searching backend `imagescan' in
`/usr/lib64/sane'
Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load: trying to
load `/usr/lib64/sane/libsane-imagescan.so.1'
 Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load:
couldn't open `/usr/lib64/sane/libsane-imagescan.so.1' (No such file or
directory)
 Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load:
couldn't find backend `imagescan' (No such file or directory)
 Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll]
sane_get_devices: found 0 devices
 Feb 17 02:59:14 rn4.rent-a-nerd.local saned[4032]: saned exiting


The dll backend not being able to load a backend should not prevent
saned from detect locally connected devices at large.  Looks like you
expect to find a device supported by the pixma backend.  If that's the
case, you may safely remove/purge any imagescan package that you seem to
have picked up from who knows where (EPSON's download site, perhaps?).

Hope this helps,



Hi Olaf,

Where did you see pixma being call out?  Maybe???

Here is some more detailed information:

My scanner is an Epson Perfection V300

I installed iscan-gt-f720-bundle-1.0.1.x64.rpm from

https://epson.com/Support/Scanners/Perfection-Series/Epson-Perfection-V19-Photo/s/SPT_B11B231201?review-filter=Linux

I am able to scan with both xsane and simple-scan, which
both use the front end.

I am not able to scan from the back end using saned
with either "xsane net:localhost" or PDF Studio,
which only uses saned.

I am able to manually start saned and scan with
PDF Studio and "xsane net:localhost".  Well, some
of the time.

An unlimited trial of PDF Studio can be downloaded from
https://www.qoppa.com/pdfstudio/

From the error log, it looks like saned tried to contact
the scanners three times and failed because it could not
find libsane-imagescan.so.1

For the full error log, see
https://bugzilla.redhat.com/show_bug.cgi?id=1546433

Error log: https://bugzilla.redhat.com/attachment.cgi?id=1397367
configuration: https://bugzilla.redhat.com/attachment.cgi?id=1397368

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-17 Thread ToddAndMargo

On 02/17/2018 06:13 AM, Richard Ryniker wrote:

Does Olaf Meeuwissen's post at
https://www.mail-archive.com/sane-devel@lists.alioth.debian.org/msg33846.html
help?  It describes imagescan as an Epson product.



Hi Richard,

My scanner is an Epson Perfection V300

I installed iscan-gt-f720-bundle-1.0.1.x64.rpm from

https://epson.com/Support/Scanners/Perfection-Series/Epson-Perfection-V19-Photo/s/SPT_B11B231201?review-filter=Linux

I am able to scan with both xsane and simple-scan, which
both use the front end.

I am not able to scan from the back end using saned
with either "xsane net:localhost" of PDF Studio.

I am able to manually start saned and scan with
PDF Studio, which always uses saned.

From Olag's post, it seems that he is saying
that there is a different driver for the front end
and the back end.  But, if I can manually start saned,
it would seems that I have both in place.

From the error log, I do believe I am missing
libsane-imagescan.so.1

For the full error log, see
https://bugzilla.redhat.com/show_bug.cgi?id=1546433

Error log: https://bugzilla.redhat.com/attachment.cgi?id=1397367
configuration: https://bugzilla.redhat.com/attachment.cgi?id=1397368

From the error log, it looks like saned tried to contact
the scanners three times and failed because it could not
find libsane-imagescan.so.1

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] libsane-imagescan.so.1' (No such file or directory)

2018-02-17 Thread ToddAndMargo

Hi All,

found 0 devices

What is this all about?

Fedora 26 x 64
Xfce 4.12

sane-backends-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.i686
sane-backends-daemon-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.x86_64

I am trying to get xsane to work with systemd and saned.  When I run
$ xsane net:localhost

I get the following error pop up:
   Error: Failed to open device `net:localhost': Error during device I/0

In saned@.service, I have debug set to the following:
Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255 
SANE_DEBUG_BJNP=5

SANE_DEBUG_NET=128

And this error pops up in my debug log:
# journalctl -efx -t saned > saned.log.txt

   996: 032]: [dll] load: searching backend `imagescan' in 
`/usr/lib64/sane'
Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load: trying to 
load `/usr/lib64/sane/libsane-imagescan.so.1'
   Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load: 
couldn't open `/usr/lib64/sane/libsane-imagescan.so.1' (No such file or 
directory)
   Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] load: 
couldn't find backend `imagescan' (No such file or directory)
   Feb 17 02:59:12 rn4.rent-a-nerd.local saned[4032]: [dll] 
sane_get_devices: found 0 devices

   Feb 17 02:59:14 rn4.rent-a-nerd.local saned[4032]: saned exiting


Many thanks,
-T



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Bug report: man page StandardInput=

2018-02-06 Thread ToddAndMargo

On 02/05/2018 12:29 PM, Louis Lagendijk wrote:

On Sat, 2018-02-03 at 01:44 -0800, ToddAndMargo wrote:

Hi All,

Bug report:

In the man page, under the section for
  /usr/lib/systemd/system/saned@.service

It states:
185:   StandardInput=null

The correct setting is:
 StandardInput=socket

"Without this the socket is passed in the wrong spot.[1]"

Please correct this.

Many thanks,
-T

Reference:
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8



I guess you missed the part above that description: it says that this
works for Saned with systemd support compiled in.There is a second
example that shows the .service file for the case where systemd support
is NOT compiled inAnd it looks as if your version does not have
support compiled in.
Louis




No I did not miss it.

1) the typically user has NO CLUE what that means or
   if support is compiled in.

2) "null" did not work for me and I have Fedora 27, which
   "Supposedly" has systemd support compiled in.

3) since "socket" works for both, use "socket" instead
   of letting the users figure things out the hard way.

This should have only taken me 30 minutes to set up.
Not three months


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Bug report: localhost

2018-02-04 Thread ToddAndMargo

Hi All,

One more bug report to go.

You would think that programs residing on the same machine
as the scanner would use Sane Frontend, but those that
are intended for the Enterprise will often use Sane Backends.
It other words, they expect to network to sane.  PDF Studio is
an example of such a program

So an really easy fix is to insert
localhost
into the default installation of /etc/sane.d/saned.conf

And into sample configuration file of "man saned"

This will save those enterprise software user who
are using their scanner on the same machine as
their scanner ACRES and ACRES of frustration.

And it won't cause any harm to ANYONE else.

Many thanks,
-T

p.s. 127.0.0.1 does not work, but that is a story
for another day.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] My Fedora 27 Saned Systemd Tutorial

2018-02-03 Thread ToddAndMargo

Use at your own risk

Feel free to reproduce it.


On 02/03/2018 01:48 AM, ToddAndMargo wrote:

Hi All,

Thank you for all the help you gave me to get this working!

Here is my tutorial:

-T


  How to set up your scanner to work with
  Sane and PDF Studio under Fedora 27 Linux's systemd

References:
SaneDaemonTutorial <https://help.ubuntu.com/community/SaneDaemonTutorial>
sand systemd manual page 
<https://www.mankier.com/8/saned#Systemd_configuration_for_saned_with_systemd_support_compiled_in>
RHEL: saned systemd support 
<https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8>
SaneOverNetwork 
<https://wiki.debian.org/SaneOverNetwork#Client_Configuration>



/*Background:*

*systemd*/ uses "sockets" to replace the defunct /xinetd/.
*systemd* will listen on port 6566 tcp and use /saned.socket/ to start 
an instance of /saned@.service/ for each request to port 6566 tcp


*Prerequisites:*

/saned's/ daemons are required to be installed.
*Fedora 27:*

|su root -c "dnf install sane-backends sane-backends-daemon" |

*Redhat Enterprise Linux and Clones (CentOS, Scientific Linux):*
Note: sane-backends is not support under Enterprise Linux due to 
Enterprise Linux's deliberate out of date nature as needed patches can 
not be installed


*Systemd Scripts:*
For the systemd configuration we need to add 2 configuration files 
called /*saned.socket*/ and /*saned@saned.service*/ in 
/*/etc/systemd/system*/ with:


ownership of /*root.root*/, and
permissions of /*755*/

/*saned.socket*/

|[Unit] Description=saned incoming socket [Socket] ListenStream=6566 
Accept=yes MaxConnections=1 connect_timeout=60 [Install] 
WantedBy=sockets.target |



/*saned@saned.service*/

|[Unit] Description=Scanner Service Requires=saned.socket [Service] 
ExecStart=/usr/sbin/saned User=saned Group=saned StandardInput=null 
StandardOutput=syslog StandardError=syslog # 
Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255 |



To create the daemon's user and group accounts:

|/su root -c "useradd saned" su root -c "useradd -g saned saned"/ |


To set ownership and permissions of these two file:

|/su root -c "chown root.root /etc/systemd/system/saned.service 
/etc/systemd/system/saned.socket" su root -c "chmod 644 
/etc/systemd/system/saned.service /etc/systemd/system/saned.socket"/ |



Add you local host name to /etc/sane.d/saned.conf.
For Example (substitute your actual network for the one shown):

|# The hostname matching is not case-sensitive. 192.168.255.0/24 localhost |


Add your local hostname resolved in /etc/hosts (get your host name from 
the "hostname" command).

For Example:

|127.0.0.1 foo.bar.local foo localhost localhost.localdomain localhost4 
localhost4.localdomain4 |



Add the following entry to /etc/services.

|sane-port 6566/tcp # SANE network scanner daemon |


To active these services at boot:

|/su root -c "systemctl enable saned.socket" su root -c "useradd -g saned 
saned"/ |



To manually start the sand service:

|/su root -c "systemctl start saned.socket"/|


SELinux on Fedora 27:

|/SELinux Policy must 3.13.1-283.21 or later To check your version 
SELinux Policy: rpm -qa selinux-policy To update SELinux Policy: su root 
-c "dnf upgrade selinux-policy" su root -c "ausearch -c 'systemd' --raw 
| audit2allow -M my-systemd" su root -c "semodule -X 300 -i 
my-systemd.pp" /|


To test the sand service ("$" means to test as a standard user):

|/*$ nmap -p 6566 192.168.255.10* /Starting Nmap 7.60 ( https://nmap.org 
) at 2018-02-03 01:26 PST Nmap scan report for rn1.rent-a-nerd.local 
(192.168.255.10) Host is up (0.00025s latency). PORT STATE SERVICE 
6566/tcp open sane-port Nmap done: 1 IP address (1 host up) scanned in 
0.06 seconds/ *$ xsane net:192.168.255.10*/|











--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Bug report: man page omission

2018-02-03 Thread ToddAndMargo

Dear Sane,

On your man page for saned.socket, under the [Socket]
section, you forgot to add

connect_timeout=60

Many thanks,
-T

Don't suppose these is any chance of changing the
sane project name to Common Unix Scanning System
to match the Common Unix Printing System (CUPS)
method?  It would also have a great abbreviation!
Never mind.  I think I am funny.  Forget I asked.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] My Fedora 27 Saned Systemd Tutorial

2018-02-03 Thread ToddAndMargo

  
  
Hi All,

Thank you for all the help you gave me to get this working!

Here is my tutorial:

-T



  
How to set up your scanner to work with
Sane and PDF Studio under Fedora 27 Linux's systemd


  References:
     SaneDaemonTutorial
     sand
systemd manual page
     RHEL:
saned systemd support
     SaneOverNetwork
  
  


Background:

systemd uses "sockets" to replace the defunct xinetd.
  systemd will listen on port 6566 tcp and use saned.socket
  to start an instance of saned@.service for each request
  to port 6566 tcp
  
  


  Prerequisites:
  
  saned's daemons are required to be installed.
  Fedora 27:

  su root -c "dnf install sane-backends sane-backends-daemon"



  Redhat Enterprise Linux and Clones (CentOS, Scientific Linux):
  Note: sane-backends is not support under Enterprise Linux due to
  Enterprise Linux's deliberate out of date nature as needed patches
  can not be installed
  


  Systemd Scripts:
  For the systemd configuration we need to add 2 configuration files
  called saned.socket and saned@saned.service
  in
  /etc/systemd/system with:


  ownership of root.root, and
  permissions of 755
  

saned.socket

  [Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1
connect_timeout=60

[Install]
WantedBy=sockets.target

  

saned@saned.service

  [Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
ExecStart=/usr/sbin/saned
User=saned
Group=saned
StandardInput=null
StandardOutput=syslog
StandardError=syslog
# Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255

  

To create the daemon's user and group accounts:

  su root -c "useradd saned"
su root -c "useradd -g saned saned"

  

To set ownership and permissions of these two file:

  su root -c "chown root.root /etc/systemd/system/saned.service /etc/systemd/system/saned.socket"
su root -c "chmod 644 /etc/systemd/system/saned.service /etc/systemd/system/saned.socket"

  

Add you local host name to /etc/sane.d/saned.conf.
  For Example (substitute your actual network for the one shown):

  # The hostname matching is not case-sensitive. 
192.168.255.0/24
localhost

  

Add your local hostname resolved in /etc/hosts (get your host
  name from the "hostname" command).
  For Example:

  127.0.0.1   foo.bar.local foo localhost localhost.localdomain localhost4 localhost4.localdomain4

  

Add the following entry to /etc/services.

  sane-port 6566/tcp # SANE network scanner daemon

  

To active these services at boot:

  su root -c "systemctl enable saned.socket"
su root -c "useradd -g saned saned"

  

To manually start the sand service:

  su root -c "systemctl start saned.socket"

  

SELinux on Fedora 27:

  
SELinux Policy must 3.13.1-283.21 or later
To check your version SELinux Policy:
   rpm -qa selinux-policy
   
To update SELinux Policy:
   su root -c "dnf upgrade selinux-policy"
   
su root -c "ausearch -c 'systemd' --raw | audit2allow -M my-systemd"
su root -c "semodule -X 300 -i my-systemd.pp"



To test the sand service ("$" means to test as a standard user):

  $ nmap -p 6566 192.168.255.10

Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-03 01:26 PST
Nmap scan report for rn1.rent-a-nerd.local (192.168.255.10)
Host is up (0.00025s latency).

PORT STATE SERVICE
6566/tcp open  sane-port

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds


$ xsane net:192.168.255.10

  




  



-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] Bug report: man page StandardInput=

2018-02-03 Thread ToddAndMargo

Hi All,

Bug report:

In the man page, under the section for
/usr/lib/systemd/system/saned@.service

It states:
185:   StandardInput=null

The correct setting is:
   StandardInput=socket

"Without this the socket is passed in the wrong spot.[1]"

Please correct this.

Many thanks,
-T

Reference:
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] net.conf

2018-02-01 Thread ToddAndMargo
Am 01.02.2018 12:58 nachm. schrieb "ToddAndMargo" <toddandma...@zoho.com 
<mailto:toddandma...@zoho.com>>:


Hi All,

If you are using systemd, do you need an
 /etc/sane.d/net.conf   ??


Many thanks,
-T




On 02/01/2018 10:56 AM, Jörn-Ingo Weigert wrote:

Just my 2c,
there is something like a manual which you can read. I'm not a Dev but I 
would be annoyed by the frequent questions, which are already answered 
in man-pages, hundred tutorials and Step-by-Step articles. Those 
questions are not really dev-relevant, more how do I...-kind of.


The net.conf you need to tell saned which servers to ask for populated 
scanner, this may be a already configured Sane-Server or a Scanner which 
support the Sane-protocol to populate themself.


Regards,

Ingo Weigert


Hi Ingo,

   There are and they stink: they are not very
helpful at all.  They only half answer questions
and you have to have several side by side to fill
in the missing blanks.  Also the man page has errors
and omissions in it.

   If and when I get saned to work with Fedora, I
will create bug reports on the various problems
I have come across.

   I will definitely post back here what I find.

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-31 Thread ToddAndMargo

On 01/31/2018 03:28 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi Olaf,

What is this comment inside /etc/sane.d/saned.conf?

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

Why would I need both to get the saned daemon to work?


If you run saned from systemd, ignore the comment.

If you run saned from inetd or xinetd (please read the inetd(8) or
xinetd(8) manual pages or have a look a their Wikipedia entries for what
these daemons do), the usual setup refers to a sane-port "service" in
their configuration file, the number of which service is normally
defined in /etc/services.

BTW, all of this is also documented in the saned(8) manual page, pointed
to in the comment itself and the documentation for the files mentioned,
which the comment points you to as well, and only a quick search engine
request away.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
  Support Free Softwarehttps://my.fsf.org/donate
  Join the Free Software Foundation  https://my.fsf.org/join



Thank you!

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-30 Thread ToddAndMargo

On 01/29/2018 12:33 PM, ToddAndMargo wrote:

On 01/27/2018 03:18 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi All,

When configuring saned, what is the difference between the access
list in

/etc/sane.d/saned.conf

and

/etc/saned.conf


By default, saned looks for saned.conf in the directory that was
specified at build time.  For most Linux distributions this will be
/etc/sane.d, the result of passing a --configdir=/etc option to the
configure script (which tags the /sane.d part on by itself).

Using the *normal* build and install procedures that are part of
sane-backends, there is *no* way you would get an /etc/saned.conf.
Any chance you put this there yourself?

If you really want to use /etc/saned.conf, you need to use

   SANE_CONFIG_DIR=/etc saned ...

As far as file contents is concerned, both are processed in the same
way.  It only a matter of which one is used and, as said, the default
is to use the first.

Hope this helps,


Hi Olaf,

What is this comment inside /etc/sane.d/saned.conf?

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

Why would I need both to get the saned daemon to work?

-T


Anyone?


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-29 Thread ToddAndMargo

On 01/27/2018 03:18 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi All,

When configuring saned, what is the difference between the access
list in

/etc/sane.d/saned.conf

and

/etc/saned.conf


By default, saned looks for saned.conf in the directory that was
specified at build time.  For most Linux distributions this will be
/etc/sane.d, the result of passing a --configdir=/etc option to the
configure script (which tags the /sane.d part on by itself).

Using the *normal* build and install procedures that are part of
sane-backends, there is *no* way you would get an /etc/saned.conf.
Any chance you put this there yourself?

If you really want to use /etc/saned.conf, you need to use

   SANE_CONFIG_DIR=/etc saned ...

As far as file contents is concerned, both are processed in the same
way.  It only a matter of which one is used and, as said, the default
is to use the first.

Hope this helps,


Hi Olaf,

What is this comment inside /etc/sane.d/saned.conf?

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

Why would I need both to get the saned daemon to work?

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] hosts.resolv ???

2018-01-27 Thread ToddAndMargo

Hi All,

Fedora 27

$ rpm -qa sane\*
sane-backends-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.i686
sane-backends-daemon-1.0.27-9.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-9.fc27.i686
sane-backends-libs-1.0.27-9.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-9.fc27.x86_64

What I am trying to do is to allow everyone of
   192.168.255.0/24   and
   127.0.0.1

to access saned

as such I have /etc/sane.d/saned.conf (comments removed):

192.168.255.0/24
127.0.0.1

Have I done things correct so far?

Confusion:  in the saned man page, it states:

FILES
   /etc/hosts.equiv
   The  hosts listed in this file are permitted to
   access all local SANE devices.  Caveat: this
   file imposes serious security risks and its
   use is not recommended.

No fooling not recommended!

Why do I need hosts.equiv to allow access to all SANE
devices?  I though I just did that in saned.conf?

Yours in confusion,
-T

--

Yesterday it worked.
Today it is not working.
Windows is like that.



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-27 Thread ToddAndMargo

On 01/27/2018 03:18 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi All,

When configuring saned, what is the difference between the access
list in

/etc/sane.d/saned.conf

and

/etc/saned.conf


By default, saned looks for saned.conf in the directory that was
specified at build time.  For most Linux distributions this will be
/etc/sane.d, the result of passing a --configdir=/etc option to the
configure script (which tags the /sane.d part on by itself).

Using the *normal* build and install procedures that are part of
sane-backends, there is *no* way you would get an /etc/saned.conf.
Any chance you put this there yourself?

If you really want to use /etc/saned.conf, you need to use

   SANE_CONFIG_DIR=/etc saned ...

As far as file contents is concerned, both are processed in the same
way.  It only a matter of which one is used and, as said, the default
is to use the first.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
  Support Free Softwarehttps://my.fsf.org/donate
  Join the Free Software Foundation  https://my.fsf.org/join




Thank you!  I will remove the /etc/saned one.

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-27 Thread ToddAndMargo

On 01/27/2018 03:18 AM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


Hi All,

When configuring saned, what is the difference between the access
list in

/etc/sane.d/saned.conf

and

/etc/saned.conf


By default, saned looks for saned.conf in the directory that was
specified at build time.  For most Linux distributions this will be
/etc/sane.d, the result of passing a --configdir=/etc option to the
configure script (which tags the /sane.d part on by itself).

Using the *normal* build and install procedures that are part of
sane-backends, there is *no* way you would get an /etc/saned.conf.
Any chance you put this there yourself?

If you really want to use /etc/saned.conf, you need to use

   SANE_CONFIG_DIR=/etc saned ...

As far as file contents is concerned, both are processed in the same
way.  It only a matter of which one is used and, as said, the default
is to use the first.

Hope this helps,


Hi Olaf,

What is this comment inside /etc/sane.d/saned.conf?

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).

Why would I need both to get the saned daemon to work?

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] /etc/sane.d/saned.conf vs /etc/saned.conf?

2018-01-27 Thread ToddAndMargo

Hi All,

When configuring saned, what is the difference between the access
list in

/etc/sane.d/saned.conf

and

/etc/saned.conf


Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] I need SELinux help

2018-01-05 Thread ToddAndMargo

On 12/22/2017 02:19 PM, ToddAndMargo wrote:

Hi All,

Fedora Core 27

# rpm -qa sane\*
sane-backends-libs-1.0.27-8.fc27.i686
sane-backends-1.0.27-8.fc27.x86_64
sane-backends-daemon-1.0.27-8.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-8.fc27.i686
sane-backends-libs-1.0.27-8.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-8.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-8.fc27.i686
sane-backends-drivers-cameras-1.0.27-8.fc27.x86_64

I am trying to run

# systemctl start saned.socket

And SELinux is taking a shine to it. The commands that it
says to run
     # ausearch -c 'systemd' --raw | audit2allow -M my-systemd
     # semodule -X 300 -i my-systemd.pp
do not work and the same SELinux error keeps appearing

Permission denied in the journalctl message

# systemctl [re]start saned.socket

starts perfectly with "setenforce Permissive" and nothing shows
up in the "SELinux Alert Browser".

Turn SELinux back on and the original problem comes back.

Many thanks,
-T


This is the SELinux error:


SELinux is preventing systemd from listen access on the tcp_socket port 
None.


*  Plugin catchall (100. confidence) suggests 
**


If you believe that systemd should be allowed listen access on the port 
None tcp_socket by default.

Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Context    system_u:system_r:init_t:s0
Target Context    system_u:system_r:unconfined_service_t:s0
Target Objects    port None [ tcp_socket ]
Source    systemd
Source Path   systemd
Port  
Host  rn4.xxx.local
Source RPM Packages
Target RPM Packages
Policy RPM    selinux-policy-3.13.1-283.18.fc27.noarch
Selinux Enabled   True
Policy Type   targeted
Enforcing Mode    Enforcing
Host Name rn4.xx.local
Platform  Linux rn4.xxx.local 4.14.7-300.fc27.x86_64
   #1 SMP Mon Dec 18 16:06:12 UTC 2017 
x86_64 x86_64

Alert Count   5
First Seen    2017-12-20 13:35:43 PST
Last Seen 2017-12-20 13:35:46 PST
Local ID  0e806a1d-c379-4c0e-993b-286c5828ef2b

Raw Audit Messages
type=AVC msg=audit(1513805746.614:968): avc:  denied  { listen } for 
pid=1 comm="systemd" lport=6566 scontext=system_u:system_r:init_t:s0 
tcontext=system_u:system_r:unconfined_service_t:s0 tclass=tcp_socket 
permissive=0



Hash: systemd,init_t,unconfined_service_t,tcp_socket,listen



My systemctl scripts:

saned.socket

[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target


saned@saned.service

[Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
ExecStart=/usr/sbin/saned
User=saned
Group=saned
StandardInput=socket
StandardOutput=syslog
StandardError=syslog
# Environment=SANE_CONFIG_DIR=/etc/sane.d
Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255 
SANE_DEBUG_BJNP=5 SANE_DEBUG_NET=128



[Install]
Also=saned.socket



What am I missing?




This is suppose to fix it.  I have not verified it yet.

https://bugzilla.redhat.com/show_bug.cgi?id=1366968
https://koji.fedoraproject.org/koji/buildinfo?buildID=1013233


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] I need SELinux help

2017-12-22 Thread ToddAndMargo

Hi All,

Fedora Core 27

# rpm -qa sane\*
sane-backends-libs-1.0.27-8.fc27.i686
sane-backends-1.0.27-8.fc27.x86_64
sane-backends-daemon-1.0.27-8.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-8.fc27.i686
sane-backends-libs-1.0.27-8.fc27.x86_64
sane-backends-drivers-scanners-1.0.27-8.fc27.x86_64
sane-backends-drivers-cameras-1.0.27-8.fc27.i686
sane-backends-drivers-cameras-1.0.27-8.fc27.x86_64

I am trying to run

# systemctl start saned.socket

And SELinux is taking a shine to it. The commands that it
says to run
# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp
do not work and the same SELinux error keeps appearing

Permission denied in the journalctl message

# systemctl [re]start saned.socket

starts perfectly with "setenforce Permissive" and nothing shows
up in the "SELinux Alert Browser".

Turn SELinux back on and the original problem comes back.

Many thanks,
-T


This is the SELinux error:


SELinux is preventing systemd from listen access on the tcp_socket port 
None.


*  Plugin catchall (100. confidence) suggests 
**


If you believe that systemd should be allowed listen access on the port 
None tcp_socket by default.

Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'systemd' --raw | audit2allow -M my-systemd
# semodule -X 300 -i my-systemd.pp

Additional Information:
Source Contextsystem_u:system_r:init_t:s0
Target Contextsystem_u:system_r:unconfined_service_t:s0
Target Objectsport None [ tcp_socket ]
Sourcesystemd
Source Path   systemd
Port  
Host  rn4.xxx.local
Source RPM Packages
Target RPM Packages
Policy RPMselinux-policy-3.13.1-283.18.fc27.noarch
Selinux Enabled   True
Policy Type   targeted
Enforcing ModeEnforcing
Host Name rn4.xx.local
Platform  Linux rn4.xxx.local 4.14.7-300.fc27.x86_64
  #1 SMP Mon Dec 18 16:06:12 UTC 2017 
x86_64 x86_64

Alert Count   5
First Seen2017-12-20 13:35:43 PST
Last Seen 2017-12-20 13:35:46 PST
Local ID  0e806a1d-c379-4c0e-993b-286c5828ef2b

Raw Audit Messages
type=AVC msg=audit(1513805746.614:968): avc:  denied  { listen } for 
pid=1 comm="systemd" lport=6566 scontext=system_u:system_r:init_t:s0 
tcontext=system_u:system_r:unconfined_service_t:s0 tclass=tcp_socket 
permissive=0



Hash: systemd,init_t,unconfined_service_t,tcp_socket,listen



My systemctl scripts:

saned.socket

[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target


saned@saned.service

[Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
ExecStart=/usr/sbin/saned
User=saned
Group=saned
StandardInput=socket
StandardOutput=syslog
StandardError=syslog
# Environment=SANE_CONFIG_DIR=/etc/sane.d
Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255 
SANE_DEBUG_BJNP=5 SANE_DEBUG_NET=128



[Install]
Also=saned.socket



What am I missing?


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Everyone!

2017-11-27 Thread ToddAndMargo

On 11/26/2017 12:04 AM, ToddAndMargo wrote:

On 11/25/2017 09:42 PM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:


On 11/25/2017 01:02 AM, Olaf Meeuwissen wrote:

Straight from the saned manual page in the CONFIGURATION section

  ^

There is no "man saned.conf" manual page.  Which one are you
referring to?  "man saned"?


I thought I was being clear enough.



Thank you.


If you are curious, this is the manual I have been using:

https://www.mankier.com/8/saned#Systemd_configuration_for_saned_with_systemd_support_compiled_in

So far, I do believe I have uncovered an error, but I
will wait till I get this dog to hunt before mentioning
it.

Red Hat found a booboo in its RPM:
https://bugzilla.redhat.com/show_bug.cgi?id=1512252#c20



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] need network syntax for saned.conf

2017-11-26 Thread ToddAndMargo

On 11/26/2017 12:39 AM, ToddAndMargo wrote:

Which was my complaint with "192.168.2.12/29" which only refers
to one IP address, not all the IPs in its mask (not the block).



okay, I am not making any sense here.  What I was
complaining about was 192.168.2.14, not .12, which
is correct.  I am looking around trying to find where
I saw .14.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] need network syntax for saned.conf

2017-11-26 Thread ToddAndMargo

On 11/26/2017 12:39 AM, ToddAndMargo wrote:


I have to go and find where I got the misunderstanding.  One of
the pains-in-the -neck of RHEL is that EVERYTHING is deliberately 
out-of-date.  Man pages are often wrong.


Not finding it so far, but I did find the example in
/etc/sane.d/saned.config

#192.168.0.1
#192.168.0.1/29

That should be  192.168.0.0/29, not 1/29

Maybe I was on an outdated man page?



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] need network syntax for saned.conf

2017-11-26 Thread ToddAndMargo

On 11/25/2017 09:48 PM, Olaf Meeuwissen wrote:

Hi,

ToddAndMargo writes:



Le samedi 25 novembre 2017, 01:38:56 ToddAndMargo a écrit :

Hi All,

In saned.conf,

what is the proper syntax to allow all IP from a particular network:

 192.168.100.0/24

and what is the syntax allow a range of networks:

 192.168.100.0/24 through 192.168.105.0/24


Many thanks,
-T




On 11/25/2017 02:05 AM, e.m...@orange.fr wrote:
  > Hello Sir,
  >
  > I'm not a specialist of sane but my search engine with "man
saned.conf" gave
  > me the following page
  > https://linux.die.net/man/8/saned
  > where I see an example
  >  # Access list
  >  scan-client.somedomain.firm
  >  # this is a comment
  >  192.168.0.1
  >  192.168.2.12/29
  >  [::1]
  >  [2001:7a8:185e::42:12]/64
  >
  > Is it clear enough?
  >
  > Have a nice Saturday
  >
  > Regards


Actually no.

I had found that portion, but got frustrated with them
calling "hostnames" as "IP addresses".  Not the same
thing.  Hostname is before the IP address is resolved.


You're right that host names and IP addresses are not the same thing,
but the saned manual page says:

   The access list is a list of host names, IP addresses or IP subnets
   (CIDR notation)

It doesn't say they are the same thing.  It just says that you can use
whatever combination of these three is most convenient for you.


I have to go and find where I got the misunderstanding.  One of
the pains-in-the -neck of RHEL is that EVERYTHING is deliberately 
out-of-date.  Man pages are often wrong.





And "192.168.2.12/29" which only gives you a single IP
address with its subnet mask.


Using that would allow access from all eight IPv4 addresses that have
the same 29 initial bits as 192.168.2.12.  Please note that the CIDR
notation was introduced exactly to allow addressing on arbitrary bit
boundaries.

See https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing


From the above link:

 For example:

192.168.100.14/24 represents the IPv4 address 192.168.100.14
and its associated routing prefix 192.168.100.0, or
equivalently, its subnet mask 255.255.255.0, which has 24
leading 1-bits.

the IPv4 block 192.168.100.0/22 represents the 1024 IPv4
addresses from 192.168.100.0 to 192.168.103.255.

Which was my complaint with "192.168.2.12/29" which only refers
to one IP address, not all the IPs in its mask (not the block).

If you wanted everyone in 29's mask (the block), it would have
been written as 29's broadcast address, not a member of the mask:
192.168.100.12/29
meaning 192.168.100.12 to 15




The above line shows that
you do not need the subnet mask.  xxx.xxx.xxx.0/24
tells you  all the IP's from xxx.xxx.xxx.1 to 255

Can I get away with 192.168.222.0/23?  That would
be 192.168.222 to 223. 1 to 255


Yes.

Hope this helps,


Yes it does!  Thank you!

Are you able to look at my error log over on
"[sane-devel] where is my socket error?"

This dog (PDF Studio) don't hunt (read saned)!


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Everyone!

2017-11-25 Thread ToddAndMargo
Em sáb, 25 de nov de 2017 07:24, ToddAndMargo <toddandma...@zoho.com 
<mailto:toddandma...@zoho.com>> escreveu:


On 11/25/2017 01:02 AM, Olaf Meeuwissen wrote:
 > A
 >   line containing the single character ``+'' is
interpreted to
 >   match any hostname


My firewall blocks everything from the Internet.

"A line containing the single character ``+'' is
interpreted to match any hostname"

Not sure what that means.  Any IP or any host name?
Jut use a "+" on a blank line?




On 11/25/2017 03:55 AM, Luiz Angelo Daros de Luca wrote:

Yes


Thank you.  I was overthinking it.

I wish the man page would stop using "hostname" in place
of IP address.


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] need network syntax for saned.conf

2017-11-25 Thread ToddAndMargo


Le samedi 25 novembre 2017, 01:38:56 ToddAndMargo a écrit :

Hi All,

In saned.conf,

what is the proper syntax to allow all IP from a particular network:

192.168.100.0/24

and what is the syntax allow a range of networks:

192.168.100.0/24 through 192.168.105.0/24


Many thanks,
-T




On 11/25/2017 02:05 AM, e.m...@orange.fr wrote:
> Hello Sir,
>
> I'm not a specialist of sane but my search engine with "man 
saned.conf" gave

> me the following page
> https://linux.die.net/man/8/saned
> where I see an example
># Access list
>scan-client.somedomain.firm
># this is a comment
>192.168.0.1
>192.168.2.12/29
>[::1]
>[2001:7a8:185e::42:12]/64
>
> Is it clear enough?
>
> Have a nice Saturday
>
> Regards


Actually no.

I had found that portion, but got frustrated with them
calling "hostnames" as "IP addresses".  Not the same
thing.  Hostname is before the IP address is resolved.

And "192.168.2.12/29" which only gives you a single IP
address with its subnet mask.  The above line shows that
you do not need the subnet mask.  xxx.xxx.xxx.0/24
tells you  all the IP's from xxx.xxx.xxx.1 to 255

Can I get away with 192.168.222.0/23?  That would
be 192.168.222 to 223. 1 to 255

Thank you for helping anyway.

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] need network syntax for saned.conf

2017-11-25 Thread ToddAndMargo

Hi All,

In saned.conf,

what is the proper syntax to allow all IP from a particular network:

  192.168.100.0/24

and what is the syntax allow a range of networks:

  192.168.100.0/24 through 192.168.105.0/24


Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] saned@service environment question

2017-11-25 Thread ToddAndMargo

On 11/25/2017 01:09 AM, Olaf Meeuwissen wrote:

Hi ToddAndMargo,

ToddAndMargo writes:


Dear list,

In the man page, the script for saned@.service shows:


# OK, you are reading the documentation, just rather selectively ;-)


Environment=SANE_CONFIG_DIR=/etc/sane.d
# If you need to debug your configuration uncomment the next line and
# change it as appropriate to set the desired debug options
# Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5

https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8
also adds:

#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128

Question:
Do you un-comment the all, or only uncomment one of them?


You add the SANE_DEBUG_* variables for the backends you want to debug.
In your case, you probably want to look at least at SANE_DEBUG_DLL and
SANE_DEBUG_NET and the backend that supports your particular scanner.


Question:

Should it not be?

Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5 SANE_DEBUG_NET=128

all run togther with spaces as the demlimier?


Please read the systemd documentation.  I vaguely seem to remember all
the Environment "assignments" are run together by systemd, though.

# Disclaimer: I no longer use systemd.


Questions:

What is
SANE_CONFIG_DIR=/etc/sane.d


An environment variable that tells the dll (and most other backends)
where to look for their configuration.  See sane-dll(5).


SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5, and
SANE_DEBUG_NET=128


Environment variables that tell each of the backend how much to log.
Larger values produce more output.  What and how much exactly differs
between backends.

Hope this helps,


Not really, but thank you for trying.

What systemd documentation are you speaking of?


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Everyone!

2017-11-25 Thread ToddAndMargo

On 11/25/2017 01:02 AM, Olaf Meeuwissen wrote:

A
  line containing the single character ``+'' is interpreted to
  match any hostname



My firewall blocks everything from the Internet.

"A line containing the single character ``+'' is
interpreted to match any hostname"

Not sure what that means.  Any IP or any host name?
Jut use a "+" on a blank line?



--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] where is my socket error?

2017-11-24 Thread ToddAndMargo

Dear List,

This is a systemd question:

I have saned.socket and saned@.service configured.

When I put a trace on journalctl (-efx) and fire up PDF Creator,
I get the following.  Please note that the crypographic stuff
only happens when I press the scan button on PDF Creator.  I
duplicated it three times.  This computer is luks encrypted.

Where is the error?


Many thanks,
-T


Nov 24 19:09:44 foo.bar.local systemd[1]: Started Scanner Service 
(127.0.0.1:54998).
-- Subject: Unit saned@3-127.0.0.1:6566-127.0.0.1:54998.service has 
finished start-up

-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit saned@3-127.0.0.1:6566-127.0.0.1:54998.service has finished 
starting up.

--
-- The start-up result is done.
Nov 24 19:09:44 foo.bar.local systemd[1]: Starting Scanner Service 
(127.0.0.1:54998)...
-- Subject: Unit saned@3-127.0.0.1:6566-127.0.0.1:54998.service has 
begun start-up

-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit saned@3-127.0.0.1:6566-127.0.0.1:54998.service has begun 
starting up.
Nov 24 19:09:44 foo.bar.local systemd[1]: Starting Cryptography Setup 
for lin-bak...

-- Subject: Unit systemd-cryptsetup@lin\x2dbak.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-cryptsetup@lin\x2dbak.service has begun starting up.
Nov 24 19:09:44 foo.bar.local saned[9893]: saned (AF-indep+IPv6) from 
sane-backends 1.0.24 starting up
Nov 24 19:09:44 foo.bar.local saned[9893]: check_host: access by remote 
host: localhost
Nov 24 19:09:44 foo.bar.local saned[9893]: init: access by host 
localhost denied

Nov 24 19:09:44 foo.bar.local saned[9893]: saned exiting
Nov 24 19:09:44 foo.bar.local systemd-cryptsetup[9894]: crypt_load() 
failed on device /dev/sdb1.
Nov 24 19:09:44 foo.bar.local systemd-cryptsetup[9894]: Failed to 
activate: Invalid argument
Nov 24 19:09:44 foo.bar.local systemd[1]: 
systemd-cryptsetup@lin\x2dbak.service: main process exited, code=exited, 
status=1/FAILURE
Nov 24 19:09:44 foo.bar.local systemd[1]: Failed to start Cryptography 
Setup for lin-bak.

-- Subject: Unit systemd-cryptsetup@lin\x2dbak.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-cryptsetup@lin\x2dbak.service has failed.
--
-- The result is failed.
Nov 24 19:09:44 foo.bar.local systemd[1]: Dependency failed for 
dev-mapper-lin\x2dbak.device.

-- Subject: Unit dev-mapper-lin\x2dbak.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dev-mapper-lin\x2dbak.device has failed.
--
-- The result is dependency.
Nov 24 19:09:44 foo.bar.local systemd[1]: Job 
dev-mapper-lin\x2dbak.device/start failed with result 'dependency'.
Nov 24 19:09:44 foo.bar.local systemd[1]: Unit 
systemd-cryptsetup@lin\x2dbak.service entered failed state.
Nov 24 19:09:44 foo.bar.local systemd[1]: 
systemd-cryptsetup@lin\x2dbak.service failed.

Nov 24 19:10:01 foo.bar.local systemd[1]: Started Session 42 of user root.
-- Subject: Unit session-42.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-42.scope has finished starting up.
--
-- The start-up result is done.
Nov 24 19:10:01 foo.bar.local systemd[1]: Starting Session 42 of user root.
-- Subject: Unit session-42.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-42.scope has begun starting up.
Nov 24 19:10:01 foo.bar.local CROND[9912]: (root) CMD (/usr/lib64/sa/sa1 
1 1)






--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Everyone!

2017-11-24 Thread ToddAndMargo
Em sex, 24 de nov de 2017 09:47, ToddAndMargo <toddandma...@zoho.com 
<mailto:toddandma...@zoho.com>> escreveu:


On 11/24/2017 03:44 AM, ToddAndMargo wrote:
 > Hi All,
 >
 > What to I do to saned.conf to tell it I want EVERYONE to
 > be able to access it?
 >
 > Many thanks,
 > -T
 >
 >


Both network users and all users in general



On 11/24/2017 05:26 PM, Luiz Angelo Daros de Luca wrote:

Add a single + in a line.


I do not understand.

I should have said I was speaking of
/etc/sane.d/saned.conf

I am look at how to add all users and all networks.  I want
everyone to be able to access the scanner.



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] saned@service environment question

2017-11-24 Thread ToddAndMargo

Dear list,

In the man page, the script for saned@.service shows:

Environment=SANE_CONFIG_DIR=/etc/sane.d
# If you need to debug your configuration uncomment the next line and
# change it as appropriate to set the desired debug options
# Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5

https://bugzilla.redhat.com/show_bug.cgi?id=1091566#c8
also adds:

#Environment=SANE_DEBUG_DLL=128 SANE_DEBUG_NET=128

Question:
Do you un-comment the all, or only uncomment one of them?

Question:

Should it not be?

Environment=SANE_CONFIG_DIR=/etc/sane.d SANE_DEBUG_DLL=255 
SANE_DEBUG_BJNP=5 SANE_DEBUG_NET=128


all run togther with spaces as the demlimier?

Questions:

What is
  SANE_CONFIG_DIR=/etc/sane.d
  SANE_DEBUG_DLL=255
  SANE_DEBUG_BJNP=5, and
  SANE_DEBUG_NET=128



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Everyone!

2017-11-24 Thread ToddAndMargo

On 11/24/2017 03:44 AM, ToddAndMargo wrote:

Hi All,

What to I do to saned.conf to tell it I want EVERYONE to
be able to access it?

Many thanks,
-T





Both network users and all users in general


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Everyone!

2017-11-24 Thread ToddAndMargo

Hi All,

What to I do to saned.conf to tell it I want EVERYONE to
be able to access it?

Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] How do I test saned.socket?

2017-11-24 Thread ToddAndMargo

Hi All,

This is a systemd question.

I have both saned.socket and saned@.service install and enabled.

How do I test if saned.socket is spawning saned properly
when requested by a client?

My goal is to be able to scan using PDF Studio.  PDF Studio
can not find saned either on localhost, 127.0.0.1 or my IP address.

PDF Studio has an unlimited trial, if anyone wants to reproduce
what I am looking at:

https://www.qoppa.com/pdfstudio/


Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] any rhel rpms for 1.0.27 out there?

2017-11-23 Thread ToddAndMargo

On 11/23/2017 09:54 PM, Simon Matter wrote:

On 11/23/2017 09:38 AM, Louis Lagendijk wrote:

On Wed, 2017-11-22 at 19:42 -0800, ToddAndMargo wrote:

Dear List,

Anyone know of a source of RPMs out there for
RHEL and Clones (CentOS, etc.)?  RHEL is
stuck on 1.0.24 and does not include sane-backends-daemon


Many thanks,
-T



No, I don;t know of a repo that has it. but you may try to rebuild the
Fedora SRPM... Just fetch the SRPM and do a rpmbuild --rebuild 
most likely does the job.
BR, Louis



$ rpmbuild --rebuild sane-backends-1.0.27-5.fc27.src.rpm
Installing sane-backends-1.0.27-5.fc27.src.rpm
error: sane-backends-1.0.27-5.fc27.src.rpm cannot be installed


That's all output you get? If so, maybe it's because the RPM format has
changed. You should be able to extract the files from the RPM with
rpm2cpio, then move them to the correct SOURCE + SPEC dir ein build from
there.

Regards,
Simon



They have change a ton of stuff.  I can extract it, but then again,
I'd have to know what I was doing to reassemble it.


Fedora 27 has so far out paced RHEL it is not funny.  I haven't
been able to rebuild Fedora rpms for over a year.  RHEL
is minimally maintained to support stability.  It is basically
a really old, frozen version of Fedora, with amendments.






--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] any rhel rpms for 1.0.27 out there?

2017-11-23 Thread ToddAndMargo

On 11/23/2017 09:38 AM, Louis Lagendijk wrote:

On Wed, 2017-11-22 at 19:42 -0800, ToddAndMargo wrote:

Dear List,

Anyone know of a source of RPMs out there for
RHEL and Clones (CentOS, etc.)?  RHEL is
stuck on 1.0.24 and does not include sane-backends-daemon


Many thanks,
-T



No, I don;t know of a repo that has it. but you may try to rebuild the
Fedora SRPM... Just fetch the SRPM and do a rpmbuild --rebuild 
most likely does the job.
BR, Louis



$ rpmbuild --rebuild sane-backends-1.0.27-5.fc27.src.rpm
Installing sane-backends-1.0.27-5.fc27.src.rpm
error: sane-backends-1.0.27-5.fc27.src.rpm cannot be installed

Fedora 27 has so far out paced RHEL it is not funny.  I haven't
been able to rebuild Fedora rpms for over a year.  RHEL
is minimally maintained to support stability.  It is basically
a really old, frozen version of Fedora, with amendments.



--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] What compiler switch for systemd support?

2017-11-23 Thread ToddAndMargo

On 11/21/2017 03:11 AM, ToddAndMargo wrote:

Dear List,

Anyone know what the compiler switch is to compile
in explicit systemd support?

Many thanks,
-T




Followup:

Red Hat Enterprise Linux (RHEL) and Friends (CentOS, Scientific
Linux, etc.) does not compile in the daemon support.  And
Fedora 27 separates the daemon from the backup end.  I have
requested the daemon for RHEL:

RFE: please include sane-backends-daemon
https://bugzilla.redhat.com/show_bug.cgi?id=1517029

-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] any rhel rpms for 1.0.27 out there?

2017-11-22 Thread ToddAndMargo

Dear List,

Anyone know of a source of RPMs out there for
RHEL and Clones (CentOS, etc.)?  RHEL is
stuck on 1.0.24 and does not include sane-backends-daemon


Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] What compiler switch for systemd support?

2017-11-22 Thread ToddAndMargo

On 11/21/2017 05:47 AM, Olaf Meeuwissen wrote:

Hi ToddAndMargo,

ToddAndMargo writes:


Dear List,

Anyone know what the compiler switch is to compile
in explicit systemd support?


   $ ./configure --help | grep systemd
 --with-systemd  enable systemd support [default=yes]

So, --with-systemd would be the configure time option to use.
Of course, you will need the systemd development packages installed
(probably libsystemd-dev or similar).

With the flag, configure will abort with an error if the requirements to
build in systemd support are not satisfied.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
  Support Free Softwarehttps://my.fsf.org/donate
  Join the Free Software Foundation  https://my.fsf.org/join



That explains a lot.  Thank you!


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] What compiler switch for systemd support?

2017-11-21 Thread ToddAndMargo

Dear List,

Anyone know what the compiler switch is to compile
in explicit systemd support?

Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Saned systemd issues

2017-11-21 Thread ToddAndMargo

On 11/18/2017 02:48 AM, ToddAndMargo wrote:

Hi All,

Scientific Linux 7.4 (RHEL Clone based on CentOS)

# rpm -qa sane-backends
sane-backends-1.0.24-9.el7.x86_64


I can start /usr/sbin/saned from the command line:

/usr/sbin/saned -a saned -d128; echo $?; ps ax | grep -i [s]aned
0
29857 ?    Ss 0:00 /usr/sbin/saned -a saned -d128

But not from my systemd scripts, which I picked up from
"man saned".

Note that I can use the name saned\@.service name due to
a very long standing bug:

'systemctl' does not not properly run the 'start', 'restart' or 'status' for 
a .service file containing an '@'

https://bugzilla.redhat.com/show_bug.cgi?id=1142369

In my case it gives:
     Failed to start saned@.service: Unit name saned@.service is
     missing the instance name.


So I called 'saned\@.service" "saned\@sane.service"


[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target




[Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
RemainAfterExit=yes
ExecStart=/usr/sbin/saned -a saned -s
User=saned
Group=saned
# User=root
# Group=root
StandardInput=null
StandardOutput=syslog
StandardError=syslog
Environment=SANE_CONFIG_DIR=/etc/sane.d
# If you need to debug your configuration uncomment the next line and
# change it as appropriate to set the desired debug options
Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5

[Install]
Also=saned.socket


Error message is

# systemctl daemon-reload; systemctl stop saned.socket; systemctl stop 
saned\@sane.service;  systemctl start saned.socket; systemctl start 
saned\@sane.service; systemctl -l status saned\@sane.service; ps ax | 
grep [s]aned

● saned@sane.service - Scanner Service
    Loaded: loaded (/etc/systemd/system/saned@sane.service; indirect; 
vendor preset: disabled)

    Active: active (exited) since Sat 2017-11-18 02:42:54 PST; 46ms ago
   Process: 31110 ExecStart=/usr/sbin/saned (code=exited, status=0/SUCCESS)
  Main PID: 31110 (code=exited, status=0/SUCCESS)

Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Started Scanner Service.
Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Starting Scanner 
Service...
Nov 18 02:42:54 rn4.rent-a-nerd.local saned[31110]: saned 
(AF-indep+IPv6) from sane-backends 1.0.24 starting up



ps command is empty

How do I troubleshoot this?

Why did it succeed and exit?

And were are the logs for 'Environment=SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5"?


Many thanks,
-T




Followup:

saned\@.service was the correct name

I was starting the wrong service.  I should have started:

# systemctl   enable saned.socket   (one time only)
# systemctl -l start saned.socket

Plus, my version of sane-backends, does not have systemd
support compiled in.



--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Saned systemd issues

2017-11-18 Thread ToddAndMargo

On 11/18/2017 02:48 AM, ToddAndMargo wrote:

Note that I can use the name saned\@.service name due to
a very long standing bug:


that should have been "can not"

:'(



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Saned systemd issues

2017-11-18 Thread ToddAndMargo

Hi All,

Scientific Linux 7.4 (RHEL Clone based on CentOS)

# rpm -qa sane-backends
sane-backends-1.0.24-9.el7.x86_64


I can start /usr/sbin/saned from the command line:

/usr/sbin/saned -a saned -d128; echo $?; ps ax | grep -i [s]aned
0
29857 ?Ss 0:00 /usr/sbin/saned -a saned -d128

But not from my systemd scripts, which I picked up from
"man saned".

Note that I can use the name saned\@.service name due to
a very long standing bug:

'systemctl' does not properly run the 'start', 'restart' or 'status' for 
a .service file containing an '@'

https://bugzilla.redhat.com/show_bug.cgi?id=1142369

In my case it gives:
Failed to start saned@.service: Unit name saned@.service is
missing the instance name.


So I called 'saned\@.service" "saned\@sane.service"


[Unit]
Description=saned incoming socket

[Socket]
ListenStream=6566
Accept=yes
MaxConnections=1

[Install]
WantedBy=sockets.target




[Unit]
Description=Scanner Service
Requires=saned.socket

[Service]
RemainAfterExit=yes
ExecStart=/usr/sbin/saned -a saned -s
User=saned
Group=saned
# User=root
# Group=root
StandardInput=null
StandardOutput=syslog
StandardError=syslog
Environment=SANE_CONFIG_DIR=/etc/sane.d
# If you need to debug your configuration uncomment the next line and
# change it as appropriate to set the desired debug options
Environment=SANE_DEBUG_DLL=255 SANE_DEBUG_BJNP=5

[Install]
Also=saned.socket


Error message is

# systemctl daemon-reload; systemctl stop saned.socket; systemctl stop 
saned\@sane.service;  systemctl start saned.socket; systemctl start 
saned\@sane.service; systemctl -l status saned\@sane.service; ps ax | 
grep [s]aned

● saned@sane.service - Scanner Service
   Loaded: loaded (/etc/systemd/system/saned@sane.service; indirect; 
vendor preset: disabled)

   Active: active (exited) since Sat 2017-11-18 02:42:54 PST; 46ms ago
  Process: 31110 ExecStart=/usr/sbin/saned (code=exited, status=0/SUCCESS)
 Main PID: 31110 (code=exited, status=0/SUCCESS)

Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Started Scanner Service.
Nov 18 02:42:54 rn4.rent-a-nerd.local systemd[1]: Starting Scanner 
Service...
Nov 18 02:42:54 rn4.rent-a-nerd.local saned[31110]: saned 
(AF-indep+IPv6) from sane-backends 1.0.24 starting up



ps command is empty

How do I troubleshoot this?

Why did it succeed and exit?

And were are the logs for 'Environment=SANE_DEBUG_DLL=255
SANE_DEBUG_BJNP=5"?


Many thanks,
-T


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

[sane-devel] how do you use "saned -d and -s?

2017-11-18 Thread ToddAndMargo

Dear list,

Scientific Linux 7.4 (RHEL Clone based on CentOS)

# rpm -qa sane-backends
sane-backends-1.0.24-9.el7.x86_64

# ps ax | grep [s]aned
29857 ?Ss 0:00 /usr/sbin/saned -a saned -d128


How do I use
/usr/sbin/saned -a saned -d128
or -s
to see why a scanner command is crashing?

Simple Scan works.

PDF Studio requires saned be running and does find the scanner,
gives me the following error:

com.qoppa.uk.b.b.e.m: Invalid operation
at com.qoppa.uk.b.b.e.k.b(Unknown Source)
at com.qoppa.uk.b.b.b.o.fc(Unknown Source)
at com.qoppa.uk.b.b.b.o.wb(Unknown Source)
at com.qoppa.pdfStudio.k.p.d(Unknown Source)
at com.qoppa.pdfStudio.k.p.e(Unknown Source)
at com.qoppa.pdfStudio.k.p.s(Unknown Source)
at com.qoppa.pdfStudio.l.vd.dae(Unknown Source)
at com.qoppa.pdfStudio.l.vd.fzd(Unknown Source)
at com.qoppa.pdfStudio.l.vd$14.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)


Many thanks,
-T


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] systemd and saned

2017-11-15 Thread ToddAndMargo

On 11/15/2017 12:33 AM, Guillaume Courtois wrote:

https://www.freedesktop.org/software/systemd/man/systemd.service.html
from example 1

    "Since no ExecStop= was specified, systemd will send SIGTERM
    to all processes started from this service, and after
    a timeout also SIGKILL. This behavior can be modified, see
    systemd.kill(5) for details."

I couldn't find anyuthing on ExecReload


That seems normal, if no stop action is given, systemd will kill 
remaining processes.

All init scripts do the same.



I got this back from Ask Fedora:


$ sudo systemctl reload bluetooth
Failed to reload bluetooth.service: Job type reload is not applicable 
for unit bluetooth.service.

See system logs and 'systemctl status bluetooth.service' for details.


--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] systemd and saned

2017-11-14 Thread ToddAndMargo

On 11/14/2017 01:18 AM, Guillaume Courtois wrote:

Le 14/11/2017 03:45, ToddAndMargo a écrit :

On 11/12/2017 01:06 AM, Guillaume Courtois wrote:

Le 12/11/2017 10:03, ToddAndMargo a écrit :

On 11/12/2017 12:59 AM, Guillaume Courtois wrote:

Usually stop is called right after start if you
do not have a

 RemainAfterExit=yes


Sure about that ? Seems strange to me.


But I do not see a stop here.


Yep, definitively missing.


If you have a "stop" and "RemainAfterExit=no", it
will call "stop" right after it calls "start".
That is probably why they left off the "stop"


I mean, if you put nothing it will not trigger a stop when you launch 
it.


So for me the RemainAfterExit=yes is implicit.
But surely, if you add RemainAfterExit=no you must have a stop script.

Also, if you do a systemctl stop service_name, it uses the stop 
command too.


I am looking to see if the lack of a stop line affects
systemctl's "stop" and "reload" functions


I'd say yes, but maybe a unit to manage a socket does not need a stop 
function ?


https://www.freedesktop.org/software/systemd/man/systemd.service.html
from example 1

"Since no ExecStop= was specified, systemd will send SIGTERM
to all processes started from this service, and after
a timeout also SIGKILL. This behavior can be modified, see
systemd.kill(5) for details."

I couldn't find anyuthing on ExecReload

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] systemd and saned

2017-11-11 Thread ToddAndMargo

On 11/10/2017 09:28 PM, ToddAndMargo wrote:


I just posted:

RFE: please include the systemd's config files
https://bugzilla.redhat.com/show_bug.cgi?id=1512252

It is very unlikely to go through as RHEL is not very good
on keeping up with things.



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] systemd and saned

2017-11-10 Thread ToddAndMargo

Dear Sane List,

Google is failing me here.

I need to get saned running as a service under systemd.
Does anyone have a paper on how to do this?

Do I need to write my own systemd script?

Many thanks,
-T


# find /usr/lib/systemd -iname \*saned\*


# yum --enablerepo=* whatprovides saned
sane-backends-1.0.24-9.el7.x86_64 : Scanner access software
Repo    : @sl
Matched from:
Filename    : /usr/sbin/saned

# rpm -qa sane-backends
sane-backends-1.0.24-9.el7.x86_64

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~



--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] Canon MAXIFY MB5320 support?

2015-04-25 Thread ToddAndMargo

On 04/25/2015 12:06 PM, Rolf Bensch wrote:

Hi Todd,

The Canon MAXIFY MB5320 is listed as MAXIFY MB5300 Series here:
http://www.sane-project.org/lists/sane-backends-cvs.html#S-PIXMA.

As you can see, this scanner isn't tested yet and testers are needed.

If you like to test this scanner, you need to install developers version
of Sane from git as described in README.linux:
http://www.sane-project.org/docs.html . Please report your test results
on the mailing list.

Many thanks for your help.

Cheers,
Rolf


Am 23.04.2015 um 21:32 schrieb ToddAndMargo:

Hi All,

I am not finding the Canon MAXIFY MB5320 multifunction
printer on the Canon list of supported scanners.  Anyone
know if it is supported by xsane?

Many thanks,
-T



Hi Rolf,

Just found scangearmp2-3.00-1-rpm.tar.gz over on

http://www.usa.canon.com/cusa/consumer/products/printers_multifunction/small_office_home_office_inkjet_printers/maxify_mb5320?selectedName=DriversAndSoftware

Does that help?

Many thanks,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
to sane-devel-requ...@lists.alioth.debian.org


[sane-devel] Canon MAXIFY MB5320 support?

2015-04-23 Thread ToddAndMargo

Hi All,

I am not finding the Canon MAXIFY MB5320 multifunction
printer on the Canon list of supported scanners.  Anyone
know if it is supported by xsane?

Many thanks,
-T

--
~~
Computers are like air conditioners.
They malfunction when you open windows
~~


--
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject unsubscribe your_password
to sane-devel-requ...@lists.alioth.debian.org