Re: [gentoo-user] Another apache 2.4 - Forbidden: You don't have permission to access this resource.

2020-12-02 Thread Richard Snow
H Richard

On Wed, Dec 2, 2020, 10:09 PM  wrote:

> When I try to configure sql-ledger, /localhost/sql-ledger/index.html
> I get an error:  Forbidden: You don't have permission to access this
> resource.
>
> Apache starts normally but there is an entry in
> /var/logs/apache/error_log  (how to make it go way)
>
> [:notice] [pid 5015] ModSecurity for Apache/2.9.3 (
> http://www.modsecurity.org/) configured.
> [:notice] [pid 5015] ModSecurity: APR compiled version="1.7.0"; loaded
> version="1.7.0"
> [:notice] [pid 5015] ModSecurity: PCRE compiled version="8.44 "; loaded
> version="8.44 2020-02-12"
> [:notice] [pid 5015] ModSecurity: LIBXML compiled version="2.9.10"
> [:notice] [pid 5015] ModSecurity: Status engine is currently disabled,
> enable it by set SecStatusEngine to On.
> [mpm_prefork:notice] [pid 5016] AH00163: Apache/2.4.46 (Unix)
> OpenSSL/1.1.1g PHP/7.4.11 configured -- resuming normal operations
> Wed Dec 02 20:38:26.746392 2020] [core:notice] [pid 5016] AH00094: Command
> line: '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D
> SSL_DEFAULT_VHOST -D LANGUAGE -D PHP -D SECURITY -d /usr/lib64/apache2 -f
> /etc/apache2/httpd.conf'
> [authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by
> server configuration: /usr/local/sql-ledger/index.html
>
>
> The above error log entry has nothing to with the below configuration
> except the last line:
> [authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by
> server configuration: /usr/local/sql-ledger/index.html
>
> My sql-ledger_apache.config  2.4 config
>
> Alias /sql-ledger /usr/local/sql-ledger/
> 
>   AllowOverride All
>   AddHandler cgi-script .pl
>   AddDefaultCharset On
>   Options ExecCGI Includes FollowSymlinks
>   Require ip 10.0.0.109
> 
>
> 
>   Require all denied
> 
>
> All the configuration entries are in main server (not in .htaccess)
>
> --
> Thelma
>
>


[gentoo-user] Another apache 2.4 - Forbidden: You don't have permission to access this resource.

2020-12-02 Thread thelma
When I try to configure sql-ledger, /localhost/sql-ledger/index.html 
I get an error:  Forbidden: You don't have permission to access this resource.

Apache starts normally but there is an entry in /var/logs/apache/error_log  
(how to make it go way)

[:notice] [pid 5015] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) 
configured.
[:notice] [pid 5015] ModSecurity: APR compiled version="1.7.0"; loaded 
version="1.7.0"
[:notice] [pid 5015] ModSecurity: PCRE compiled version="8.44 "; loaded 
version="8.44 2020-02-12"
[:notice] [pid 5015] ModSecurity: LIBXML compiled version="2.9.10"
[:notice] [pid 5015] ModSecurity: Status engine is currently disabled, enable 
it by set SecStatusEngine to On.
[mpm_prefork:notice] [pid 5016] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1g 
PHP/7.4.11 configured -- resuming normal operations
Wed Dec 02 20:38:26.746392 2020] [core:notice] [pid 5016] AH00094: Command 
line: '/usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST 
-D LANGUAGE -D PHP -D SECURITY -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf'
[authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by 
server configuration: /usr/local/sql-ledger/index.html


The above error log entry has nothing to with the below configuration except 
the last line:
[authz_core:error] [pid 4900] [client ::1:46226] AH01630: client denied by 
server configuration: /usr/local/sql-ledger/index.html

My sql-ledger_apache.config  2.4 config

Alias /sql-ledger /usr/local/sql-ledger/

  AllowOverride All
  AddHandler cgi-script .pl
  AddDefaultCharset On
  Options ExecCGI Includes FollowSymlinks
  Require ip 10.0.0.109



  Require all denied


All the configuration entries are in main server (not in .htaccess)

-- 
Thelma



Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread Peter Humphrey
On Wednesday, 2 December 2020 23:49:00 GMT the...@sys-concept.com wrote:
> On 12/02/2020 04:14 PM, Peter Humphrey wrote:
> > On Wednesday, 2 December 2020 19:45:27 GMT Rich Freeman wrote:
> >> You might not need the max performance NVMe is capable of, but it is
> >> something you should be aware of if you want to benchmark it.
> > 
> > ...and once you've experienced it you won't want to go back.
> 
> Though, not everything showing that much difference in timing:
> 
> Opening Win-7 in VirtualBox on NVMe drive took 15sec (to login)
> On Samsung EVO 850 SSD it took about 22sec. (to login).

Which just shows that the process isn't IO-bound.

-- 
Regards,
Peter.






Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread thelma
On 12/02/2020 04:14 PM, Peter Humphrey wrote:
> On Wednesday, 2 December 2020 19:45:27 GMT Rich Freeman wrote:
> 
>> You might not need the max performance NVMe is capable of, but it is
>> something you should be aware of if you want to benchmark it.
> 
> ...and once you've experienced it you won't want to go back.

Though, not everything showing that much difference in timing:

Opening Win-7 in VirtualBox on NVMe drive took 15sec (to login)
On Samsung EVO 850 SSD it took about 22sec. (to login).




Re: [gentoo-user] rsyslog upstream have removed their template systemd service file

2020-12-02 Thread Steve Wilson

On 27/11/2020 08:21, Alan J. Wylie wrote:

After updating to rsyslog 8.2008.0, I discovered that the systemd
service file no longer existed.

Upstream removed it from their tarball:

- 2020-08-12: systemd service file removed from project
   This was done as distros nowadays have very different service files and it no
   longer is useful to provide a "generic" (sic) example.
   see also: https://github.com/rsyslog/rsyslog/issues/4333

Please could Gentoo add it back in?


When I discovered the same I took the one from platform/redhat/centos* 
and dropped it into /etc/systemd/system to get up and running again. I 
did consider creating my own but decided to just keep an eye on future 
updates hoping it's there.


* 
https://github.com/rsyslog/rsyslog/blob/master/platform/redhat/centos/rsyslog.service


Steve.

ps.Seems it's a small world, I believe I had the pleasure in taking over 
from you at a common previous employer using rock linux.





Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread Peter Humphrey
On Wednesday, 2 December 2020 19:45:27 GMT Rich Freeman wrote:

> You might not need the max performance NVMe is capable of, but it is
> something you should be aware of if you want to benchmark it.

...and once you've experienced it you won't want to go back.

-- 
Regards,
Peter.






Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread thelma
On 12/02/2020 12:45 PM, Rich Freeman wrote:
> On Wed, Dec 2, 2020 at 1:33 PM Frank Steinmetzger  wrote:
>>
>> Am Tue, Dec 01, 2020 at 02:46:56PM -0700 schrieb the...@sys-concept.com:
>>> Nothing scientific, but I was surprised how fast M.2 disk so decided to
>>> time how fast  GnuCash will load my accounting, her it is:
>>>
>>> Box 1.)
>>> WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
>>> Time to open GnuCash - 23sec.
>>>
>>> Box 2.)
>>> Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
>>> Time to open GnuCash - 15sec.
>>
>> I can hardly believe that. Does your duration include the entire boot
>> process? If so, the times look quite alright, but that’s not what
>> description says.
>>
> 
> Keep in mind these are different hosts, probably running different
> software with different workloads/optimizations, with different CPUs,
> differing amounts of RAM, and different storage technologies.
> 
> It isn't particularly controversial to suppose that M.2 (NVMe) is
> going to be faster than SATA-based SSD, which is going to be faster
> than spinning disks.
> 
> When you want to get to the exact differences you need to test on
> configurations that are otherwise identical, and also account for
> stuff like caching.
> 
> Note also that M.2 is a form-factor, and you can find SATA-based M.2
> drives which aren't going to perform any better than any other
> SATA-based drive.  Also, since NVMe is far more capable than SATA/AHCI
> it matters even more exactly what NVMe drive you're talking about.
> The storage device itself, and the PCIe version can make a difference,
> and of course you need a CPU/MB that can actually take advantage of
> the drive's full capability.
> 
> You might not need the max performance NVMe is capable of, but it is
> something you should be aware of if you want to benchmark it.

You are correct, it wasn't any benchmark test.  And yes, the old PC are
about 10-year old and 3-4 years old; and the new one is just assembled.
But I was surprised how fast the GnuCash open the database on a new box,
so I time it for a curiosity.




Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread Rich Freeman
On Wed, Dec 2, 2020 at 1:33 PM Frank Steinmetzger  wrote:
>
> Am Tue, Dec 01, 2020 at 02:46:56PM -0700 schrieb the...@sys-concept.com:
> > Nothing scientific, but I was surprised how fast M.2 disk so decided to
> > time how fast  GnuCash will load my accounting, her it is:
> >
> > Box 1.)
> > WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
> > Time to open GnuCash - 23sec.
> >
> > Box 2.)
> > Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
> > Time to open GnuCash - 15sec.
>
> I can hardly believe that. Does your duration include the entire boot
> process? If so, the times look quite alright, but that’s not what
> description says.
>

Keep in mind these are different hosts, probably running different
software with different workloads/optimizations, with different CPUs,
differing amounts of RAM, and different storage technologies.

It isn't particularly controversial to suppose that M.2 (NVMe) is
going to be faster than SATA-based SSD, which is going to be faster
than spinning disks.

When you want to get to the exact differences you need to test on
configurations that are otherwise identical, and also account for
stuff like caching.

Note also that M.2 is a form-factor, and you can find SATA-based M.2
drives which aren't going to perform any better than any other
SATA-based drive.  Also, since NVMe is far more capable than SATA/AHCI
it matters even more exactly what NVMe drive you're talking about.
The storage device itself, and the PCIe version can make a difference,
and of course you need a CPU/MB that can actually take advantage of
the drive's full capability.

You might not need the max performance NVMe is capable of, but it is
something you should be aware of if you want to benchmark it.

-- 
Rich



Re: [gentoo-user] Performance: WD vs. Samung SSD vs. M.2 SSD

2020-12-02 Thread Frank Steinmetzger
Am Tue, Dec 01, 2020 at 02:46:56PM -0700 schrieb the...@sys-concept.com:
> Nothing scientific, but I was surprised how fast M.2 disk so decided to
> time how fast  GnuCash will load my accounting, her it is:
> 
> Box 1.)
> WD (spinning disk) CPU AMD-8150 (8-core), 16GiB
> Time to open GnuCash - 23sec.
> 
> Box 2.)
> Samsung SSD 850, CPU AMD Ryzen 5 1400 Quad-Core, 16GiB
> Time to open GnuCash - 15sec.

I can hardly believe that. Does your duration include the entire boot
process? If so, the times look quite alright, but that’s not what
description says.

Can you reproduce the same time when you close and then open gnucash a
second time? (By then all files should be in cache and startup should be
significantly faster if indeed the drive is responsible).

> Box 3.)
> M.2 SSD, CPU AMD Ryzen 7,  32Gib
> Time to open GnuCash -  2.5sec

If you indeed do include boot times, then I find this too fast. But if it
does, then not bad. *whistle*

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

Just because I wrote a word wrong doesn’t mean that I am imcomentent.


signature.asc
Description: PGP signature


Re: [gentoo-user] Brother printer HL-5370

2020-12-02 Thread karl
Thelma:
> On 12/01/2020 12:27 AM, k...@aspodata.se wrote:
> > That printer supports BR-Script (PostScript lvl3 language emulation).
> > Why not just use postscript.
...
> How do you use it / install it  on HL-5370?

You don't install it on the printer, it is already there.
But if you bypass cups and send the postscript file directly to
the printer, you have to tell the the printer to always use br-scrip
emulation.

> When I was installing via "rpm" driver  for another printer HL-3170CDW I got 
> a warning:
> 
> lpadmin -p HL3170CDW -E -v usb://dev/usb/lp0 -P 
> /usr/share/cups/model/Brother/brother_hl3170cdw_printer_en.ppd
> lpadmin: Printer drivers are deprecated and will stop working in a future 
> version of CUPS. 

I don't know much about cups, but they seems to be in the middle of 
something:

 https://github.com/apple/cups/issues/5271

Regards,
/Karl Hammar