Re: [sane-devel] Saned Tutorial is not correct -

2017-11-10 Thread Olaf Meeuwissen
Hi Louis,

Louis Lagendijk writes:

> On Thu, 2017-11-09 at 20:53 +0900, Olaf Meeuwissen wrote:
>> Hi Alvaro,
>>
>> Simon Matter writes:
>> (that you wrote)
>> > > The mistake is also in the man pages:
>> > >
>> > > using Ubuntu 16.04:  man saned
>> > >
>> > > excerpt start:
>> > >
>> > > SYSTEMD CONFIGURATION
>> > >for systemd we need to add 2 configuation files in
>> > > /etc/systemd/system.   < This
>> > > should
>> > > be
>> > > /etc/systemd
>> >
>> > I'm not sure but at least on RHEL7 /etc/systemd/system seems
>> > correct. Can
>> > it be that Ubuntu 16.04 uses an older systemd and therefore the
>> > manpage
>> > should be changed? If yes, then this has to be done in the Ubuntu
>> > packages
>> > of SANE.
>>
>> Please take a look at the Directories section of the systemd manual
>> page[1]
>> and the systemd.unit manual page[2] for Ubuntu 16.04LTS.
>>
>>  [1]: http://manpages.ubuntu.com/manpages/xenial/en/man1/systemd.1.ht
>> ml#contenttoc5
>>  [2]: http://manpages.ubuntu.com/manpages/xenial/en/man5/systemd.unit
>> .5.html
>>
>> Based on my understanding of the documentation there, I would say
>> that
>> Ubuntu's(?) saned manual page[3] (which is not modified from the one
>> that the SANE project ships in this respect) refers to the correct
>> directory locations.  If that in some way does not work, it's first
>> and
>> foremost an issue with the Ubuntu tutorial[4] and Ubuntu's systemd
>> and/or SANE packages.
>>
>>  [3]: http://manpages.ubuntu.com/manpages/xenial/en/man8/saned.8.html
>>  [4]: https://help.ubuntu.com/community/SaneDaemonTutorial
>>
>> You may also want to take a look of the files provided by Ubuntu's
>> sane-utils package[5] and note that these files should be installed
>> for
>> you by the package, completely obviating the need for you to
>> configure
>> anything.
>>
>>  [5]: https://packages.ubuntu.com/xenial/amd64/sane-utils/filelist
>
> The locations mentioned in the man-page are definitely correct for
> Fedora and RHEL,  the only systems using systemd at the time I wrote
> the systemd parts of the man-page (in 2013). For these distros they are
> still correct.
> Now Ubuntu may have changed some of the paths when it introduced
> systemd. It may also be the case that Ubuntu does use an old version of
> systemd that does not yet support the user specific units (in
> /etc/systemd/user).

Old systemd version is unlikely for Ubuntu 16.04LTS (from 2016).  If
they willy-nilly change paths, the onus is on them to keep the docs in
sync, IMNSHO.

> Can somebody please confirm if other Ubuntu
> versions (probably later versions) do use /etc/systemd/system?

My Devuan Jessie system doesn't *have* systemd(!), but sports an
/etc/systemd/system/ directory.  Ditto for Devuan's next version.

But everyone should look at what's already in /lib/systemd/system/
instead.  The Debian/Devuan packages put the necessary files there
already.  You should not even need to do anything if you installed
the distribution's binary packages.

On Jessie, I get

  $ dpkg -S lib/systemd/system/saned
  sane-utils: /lib/systemd/system/saned.service
  sane-utils: /lib/systemd/system/saned@.service
  sane-utils: /lib/systemd/system/saned.socket

> If I can find some time I may try to clarify the man-page with the
> alternate location if we can get more clarity on this.

If the distribution packages don't do the right thing file a bug report
with the distribution.  If one builds from source, /etc/systemd/system/
is the right place, according to the systemd documentation.

If the systemd documentation is wrong, bug the systemd cabal ;-)

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

-- 
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 Tutorial is not correct -

2017-11-09 Thread Louis Lagendijk
On Thu, 2017-11-09 at 20:53 +0900, Olaf Meeuwissen wrote:
> Hi Alvaro,
> 
> Simon Matter writes:
> (that you wrote)
> > > The mistake is also in the man pages:
> > > 
> > > using Ubuntu 16.04:  man saned
> > > 
> > > excerpt start:
> > > 
> > > SYSTEMD CONFIGURATION
> > >for systemd we need to add 2 configuation files in
> > > /etc/systemd/system.   < This
> > > should
> > > be
> > > /etc/systemd
> > 
> > I'm not sure but at least on RHEL7 /etc/systemd/system seems
> > correct. Can
> > it be that Ubuntu 16.04 uses an older systemd and therefore the
> > manpage
> > should be changed? If yes, then this has to be done in the Ubuntu
> > packages
> > of SANE.
> 
> Please take a look at the Directories section of the systemd manual
> page[1]
> and the systemd.unit manual page[2] for Ubuntu 16.04LTS.
> 
>  [1]: http://manpages.ubuntu.com/manpages/xenial/en/man1/systemd.1.ht
> ml#contenttoc5
>  [2]: http://manpages.ubuntu.com/manpages/xenial/en/man5/systemd.unit
> .5.html
> 
> Based on my understanding of the documentation there, I would say
> that
> Ubuntu's(?) saned manual page[3] (which is not modified from the one
> that the SANE project ships in this respect) refers to the correct
> directory locations.  If that in some way does not work, it's first
> and
> foremost an issue with the Ubuntu tutorial[4] and Ubuntu's systemd
> and/or SANE packages.
> 
>  [3]: http://manpages.ubuntu.com/manpages/xenial/en/man8/saned.8.html
>  [4]: https://help.ubuntu.com/community/SaneDaemonTutorial
> 
> You may also want to take a look of the files provided by Ubuntu's
> sane-utils package[5] and note that these files should be installed
> for
> you by the package, completely obviating the need for you to
> configure
> anything.
> 
>  [5]: https://packages.ubuntu.com/xenial/amd64/sane-utils/filelist

The locations mentioned in the man-page are definitely correct for
Fedora and RHEL,  the only systems using systemd at the time I wrote
the systemd parts of the man-page (in 2013). For these distros they are
still correct.
Now Ubuntu may have changed some of the paths when it introduced
systemd. It may also be the case that Ubuntu does use an old version of
systemd that does not yet support the user specific units (in
/etc/systemd/user). Can somebody please confirm if other Ubuntu
versions (probably later versions) do use /etc/systemd/system?
If I can find some time I may try to clarify the man-page with the
alternate location if we can get more clarity on this.
BR, Louis


-- 
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 Tutorial is not correct -

2017-11-09 Thread Olaf Meeuwissen
Hi Alvaro,

Simon Matter writes:
(that you wrote)
>> The mistake is also in the man pages:
>>
>> using Ubuntu 16.04:  man saned
>>
>> excerpt start:
>>
>> SYSTEMD CONFIGURATION
>>for systemd we need to add 2 configuation files in
>> /etc/systemd/system.   < This should
>> be
>> /etc/systemd
>
> I'm not sure but at least on RHEL7 /etc/systemd/system seems correct. Can
> it be that Ubuntu 16.04 uses an older systemd and therefore the manpage
> should be changed? If yes, then this has to be done in the Ubuntu packages
> of SANE.

Please take a look at the Directories section of the systemd manual page[1]
and the systemd.unit manual page[2] for Ubuntu 16.04LTS.

 [1]: 
http://manpages.ubuntu.com/manpages/xenial/en/man1/systemd.1.html#contenttoc5
 [2]: http://manpages.ubuntu.com/manpages/xenial/en/man5/systemd.unit.5.html

Based on my understanding of the documentation there, I would say that
Ubuntu's(?) saned manual page[3] (which is not modified from the one
that the SANE project ships in this respect) refers to the correct
directory locations.  If that in some way does not work, it's first and
foremost an issue with the Ubuntu tutorial[4] and Ubuntu's systemd
and/or SANE packages.

 [3]: http://manpages.ubuntu.com/manpages/xenial/en/man8/saned.8.html
 [4]: https://help.ubuntu.com/community/SaneDaemonTutorial

You may also want to take a look of the files provided by Ubuntu's
sane-utils package[5] and note that these files should be installed for
you by the package, completely obviating the need for you to configure
anything.

 [5]: https://packages.ubuntu.com/xenial/amd64/sane-utils/filelist

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

-- 
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 Tutorial is not correct -

2017-11-08 Thread Simon Matter
> The mistake is also in the man pages:
>
> using Ubuntu 16.04:  man saned
>
> excerpt start:
>
> SYSTEMD CONFIGURATION
>for systemd we need to add 2 configuation files in
> /etc/systemd/system.   < This should
> be
> /etc/systemd

I'm not sure but at least on RHEL7 /etc/systemd/system seems correct. Can
it be that Ubuntu 16.04 uses an older systemd and therefore the manpage
should be changed? If yes, then this has to be done in the Ubuntu packages
of SANE.

Regards,
Simon


-- 
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 Tutorial is not correct -

2017-11-08 Thread Alvaro Gil
The mistake is also in the man pages:

using Ubuntu 16.04:  man saned

excerpt start:

SYSTEMD CONFIGURATION
   for systemd we need to add 2 configuation files in
/etc/systemd/system.   < This should be
/etc/systemd

   The first file we need to add here is called  saned.socket.   It
shall
   have the following contents:

  [Unit]
  Description=saned incoming socket


excerpt end:




On Wed, Nov 8, 2017 at 8:21 AM, Alex ARNAUD  wrote:

> Just to be sure we are clear: the tutorial mentioned in this thread is on
> the Ubuntu Wiki and it is written by the community. You could create an
> account on the Ubuntu Wiki and propose them a change to this wiki to
> improve its content. It will be really help for others indeed.
> Thanks for checking documentation and helping us to make GNU/Linux better.
>
> Best regards.
> --
> Alex ARNAUD
> Visual-Impairment Project Manager
> Hypra - "Humanizing technology"
>
>
> Le 08/11/2017 à 13:55, m. allan noah a écrit :
>
>> We are not the authors of the tutorial with the error.
>>
>> allan
>>
>> On Mon, Nov 6, 2017 at 10:29 PM, Alvaro Gil 
>> wrote:
>>
>>> Hi, the saned tutorial is not correct on this page:
>>> https://help.ubuntu.com/community/SaneDaemonTutorial
>>>
>>> Lots of people are having this issue:
>>> https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1577137
>>> I posted the fix to post #32
>>> ---
>>>
>>> The problem is the documentation is not correct, it states:
>>>
>>> for systemd we need to add 2 configuration files in
>>> /etc/systemd/system.
>>>
>>> This is incorrect, move the two files to:
>>>
>>> /etc/systemd/
>>>
>>> ---
>>>
>>> after continue with the tutorial.
>>>
>>> sudo systemctl enable saned.socket
>>> sudo systemctl start saned.socket
>>> systemctl status saned.socket
>>>
>>>
>>> now it will load correctly on restart.
>>> 
>>>
>>> Alvaro Gil
>>> Gil Machine and Tool
>>> 1053 Bushkill Drive
>>> Easton, PA 18042
>>> http://www.GilMachine.com/
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>>


-- 



*Alvaro GilGil Machine and Tool*

*1053 Bushkill Drive*
*Easton, PA 18042*
*http://www.GilMachine.com/ *
-- 
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 Tutorial is not correct -

2017-11-08 Thread Alex ARNAUD
Just to be sure we are clear: the tutorial mentioned in this thread is 
on the Ubuntu Wiki and it is written by the community. You could create 
an account on the Ubuntu Wiki and propose them a change to this wiki to 
improve its content. It will be really help for others indeed.

Thanks for checking documentation and helping us to make GNU/Linux better.

Best regards.
--
Alex ARNAUD
Visual-Impairment Project Manager
Hypra - "Humanizing technology"

Le 08/11/2017 à 13:55, m. allan noah a écrit :

We are not the authors of the tutorial with the error.

allan

On Mon, Nov 6, 2017 at 10:29 PM, Alvaro Gil  wrote:

Hi, the saned tutorial is not correct on this page:
https://help.ubuntu.com/community/SaneDaemonTutorial

Lots of people are having this issue:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1577137
I posted the fix to post #32
---

The problem is the documentation is not correct, it states:

for systemd we need to add 2 configuration files in
/etc/systemd/system.

This is incorrect, move the two files to:

/etc/systemd/

---

after continue with the tutorial.

sudo systemctl enable saned.socket
sudo systemctl start saned.socket
systemctl status saned.socket


now it will load correctly on restart.

Alvaro Gil
Gil Machine and Tool
1053 Bushkill Drive
Easton, PA 18042
http://www.GilMachine.com/

--
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 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 Tutorial is not correct -

2017-11-08 Thread m. allan noah
We are not the authors of the tutorial with the error.

allan

On Mon, Nov 6, 2017 at 10:29 PM, Alvaro Gil  wrote:
> Hi, the saned tutorial is not correct on this page:
> https://help.ubuntu.com/community/SaneDaemonTutorial
>
> Lots of people are having this issue:
> https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1577137
> I posted the fix to post #32
> ---
>
> The problem is the documentation is not correct, it states:
>
>for systemd we need to add 2 configuration files in
> /etc/systemd/system.
>
> This is incorrect, move the two files to:
>
>/etc/systemd/
>
> ---
>
> after continue with the tutorial.
>
> sudo systemctl enable saned.socket
> sudo systemctl start saned.socket
> systemctl status saned.socket
>
>
> now it will load correctly on restart.
>
> Alvaro Gil
> Gil Machine and Tool
> 1053 Bushkill Drive
> Easton, PA 18042
> http://www.GilMachine.com/
>
> --
> 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



-- 
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"

-- 
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