Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: Giorgio on 09 May 2020, 15:49:31

Title: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 09 May 2020, 15:49:31
Hi everyone, I just finished the installation of artix-mate-openrc-20200504-x86_64.iso and I would like to configure my HP printer, but I can't find anything about it in the menu. Do I have to do it by command line? If yes can someone help me or tell me where to find directions? Thanks so much, I'm a newbie in Linux...
George
Title: Re: Help for HP printer configuration
Post by: phoenix_king_rus on 09 May 2020, 16:46:36
You need to install and start CUPS daemon, install hplip package (and probably hplip-plugin from AUR). After that you can use CUPS web interface or system-config-printer to configure your pinter
Title: Re: Help for HP printer configuration
Post by: Giorgio on 09 May 2020, 22:25:01
You need to install and start CUPS daemon, install hplip package (and probably hplip-plugin from AUR). After that you can use CUPS web interface or system-config-printer to configure your pinter
Thanks for the phonix reply.
I installed cups and hplip, and started configuring the printer from the command line, but I got this error message: Unable to find an appropriate PPD file, as per the attached image.
What am I doing wrong ?
thanks for help!

Title: Re: Help for HP printer configuration
Post by: alium on 09 May 2020, 23:04:48
use directly  hplip installator:
Code: [Select]
hp-setup

or try use http://localhost:631/ (CUPS) it's more convenient :-)
Title: Re: Help for HP printer configuration
Post by: Giorgio on 10 May 2020, 22:55:12
use directly  hplip installator:
Code: [Select]
hp-setup

or try use http://localhost:631/ (CUPS) it's more convenient :-)

Thanks for the reply Alium.
I tried the configuration with "hp-setup" .-
The printer (HP DESKJET 1510) is recognized, but in step two it always gives me the same error: "No appropriate print PPD file found", even if the appropriate file is present. It simply does not load it, as if it were not there. It does not even load it by manually selecting it, as per the attached screens.
Thanks for any help you can.

George.-
Title: Re: Help for HP printer configuration
Post by: alium on 10 May 2020, 23:59:50
Code: [Select]
rc-service avahi-daemon status
avahi is running? avahi must run!

and what say /var/log/cups/error_log?
Code: [Select]
cat /var/log/cups/error_log
Title: Re: Help for HP printer configuration
Post by: Giorgio on 11 May 2020, 20:34:34
Code: [Select]
rc-service avahi-daemon status
avahi is running? avahi must run!

and what say /var/log/cups/error_log?
Code: [Select]
cat /var/log/cups/error_log
Thanks for the reply!
Avahi status is "stopped"
I tried to figure out how to start avahi, but I couldn't. How you do it?
Then, there is no file called "error_log" in / var / log / cups /: the folder is empty.
Very complicated to be able to print!
Tks for help!

George.
Title: Re: Help for HP printer configuration
Post by: alium on 11 May 2020, 20:37:38
Code: [Select]
pacman -S avahi avahi-openrc
Code: [Select]
rc-service avahi-daemon start

if start without problems:
Code: [Select]
rc-update add avahi-daemon default

you should start cupsd too:
Code: [Select]
rc-update add cupsd default

after reboot will be start automatically
Title: Re: Help for HP printer configuration
Post by: Giorgio on 11 May 2020, 21:35:37
Code: [Select]
pacman -S avahi avahi-openrc
Code: [Select]
rc-service avahi-daemon start

if start without problems:
Code: [Select]
rc-update add avahi-daemon default

you should start cupsd too:
Code: [Select]
rc-update add cupsd default

after reboot will be start automatically


THEN..

1. pacman -S avahi avahi-openrc
both packages are already installed.

2.rc-service avahi-daemon start
It gives the following result:
avahi-daemon      | * Starting avahi-daemon ...
avahi-daemon      |Daemon already running on PID 3592           [ !! ]
avahi-daemon      | * ERROR: avahi-daemon failed to start

So ... it didn't start
I'm sorry for these complications ...

Title: Re: Help for HP printer configuration
Post by: alium on 11 May 2020, 22:03:47
no he is started before, so avahi is running = Daemon already running on PID 3592

so try it now install again.. cupsd is running too?
Title: Re: Help for HP printer configuration
Post by: alium on 11 May 2020, 22:08:37
are you member of cups and lp group?
Title: Re: Help for HP printer configuration
Post by: Giorgio on 11 May 2020, 22:54:57
no he is started before, so avahi is running = Daemon already running on PID 3592

so try it now install again.. cupsd is running too?

THEN

1.so try it now install again:
pacman -S avahi avahi-openrc

and now the result of:
rc-service avahi-daemon start

is a little  different:
avahi-daemon      | * Caching service dependencies ...                    [ ok ]
avahi-daemon      | * Starting avahi-daemon ...
avahi-daemon      |Daemon already running on PID 3592                     [ !! ]
avahi-daemon      | * ERROR: avahi-daemon failed to start

2.cupsd is running too?
I dont know how verify it
Title: Re: Help for HP printer configuration
Post by: Giorgio on 11 May 2020, 22:59:28
are you member of cups and lp group?

I'm NOT member of cups group.
I'm member of lp group.
Title: Re: Help for HP printer configuration
Post by: dxrobertson on 11 May 2020, 23:02:14
I have a similar HP printer ( Deskjet D1420), and have it working plugged into USB. 

Not to add confusion, but what I did is install the system-config-printer package and use that to add a printer.  This app has always worked for me.  Maybe using http://localhost:631/ is similar.  Make sure the defined printer connection is HPLIP as opposed to USB.  Below I am posting some config thats on my working system, maybe this will help.

Here is whats in my /etc/cups/ppd/:
Code: [Select]
[dxrobertson@acer ppd]$ ls
HP-Deskjet-D1400-series.ppd  HP-Deskjet-D1400-series.ppd.O


Here is my /etc/cups/printers.conf file:

Code: [Select]
# Printer configuration file for CUPS v2.3.1
# Written by cupsd on 2020-04-28 07:40
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
NextPrinterId 3
<DefaultPrinter HP-Deskjet-D1400-series>
PrinterId 2
UUID urn:uuid:0de37509-d47b-3c60-5a5a-d4093ffc5ff8
Info HP Deskjet D1400 series
Location acer
MakeModel HP Deskjet d1400 Series, hpcups 3.20.2
DeviceURI hp:/usb/Deskjet_D1400_series?serial=TH81V3235Y04Y5
State Idle
StateTime 1588074042
ConfigTime 1588073330
Type 36892
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</DefaultPrinter>


Title: Re: Help for HP printer configuration
Post by: alium on 11 May 2020, 23:21:00
I'm NOT member of cups group.
I'm member of lp group.
add you to cups group, lp group is obsolete and cups need users in cups group
Title: Re: Help for HP printer configuration
Post by: Giorgio on 12 May 2020, 06:46:55
Code: [Select]
pacman -S avahi avahi-openrc

OK

Code: [Select]
rc-service avahi-daemon start

OK

if start without problems:
Code: [Select]
rc-update add avahi-daemon default

OK

you should start cupsd too:

Code: [Select]
rc-update add cupsd default

******** NOT  OK
      I have this error:   rc-update: service `cupsd' does not exist

after reboot will be start automatically


I work about it...
 and:

1.
cat /var/log/cups/error_log
have now this:
E [11/May/2020:22:33:28 +0200] Unable to open listen socket for address [v1.::1]:631 - Address already in use.
E [11/May/2020:22:33:28 +0200] Unable to open listen socket for address 127.0.0.1:631 - Address already in use.
E [11/May/2020:23:03:21 +0200] Unable to remove /run/cups/certs/0!
E [11/May/2020:23:03:21 +0200] Unable to finalize "/var/cache/cups/job.cache": No such file or directory

2. I add myself at cups group

3.I try use now hp-setup with the same result:
error: No PPD found for model deskjet_1510 using old algorithm.
error: No appropriate print PPD file found for model deskjet_1510_series
Title: Re: Help for HP printer configuration
Post by: alium on 12 May 2020, 08:48:54
have you tried adding a printer through that web interface?

Code: [Select]
http://localhost:631/
Title: Re: Help for HP printer configuration
Post by: Giorgio on 12 May 2020, 14:41:59
have you tried adding a printer through that web interface?

Code: [Select]
http://localhost:631/

Yes I have, but it's impossible, I have this error message: Unable to connect

 :'( 
Title: Re: Help for HP printer configuration
Post by: phoenix_king_rus on 12 May 2020, 14:54:38

I work about it...
 and:

1.
cat /var/log/cups/error_log
have now this:
E [11/May/2020:22:33:28 +0200] Unable to open listen socket for address [v1.::1]:631 - Address already in use.
E [11/May/2020:22:33:28 +0200] Unable to open listen socket for address 127.0.0.1:631 - Address already in use.
E [11/May/2020:23:03:21 +0200] Unable to remove /run/cups/certs/0!
E [11/May/2020:23:03:21 +0200] Unable to finalize "/var/cache/cups/job.cache": No such file or directory

2. I add myself at cups group

3.I try use now hp-setup with the same result:
error: No PPD found for model deskjet_1510 using old algorithm.
error: No appropriate print PPD file found for model deskjet_1510_series

Check if you have any service listening to port 631. Also you can configure CUPS to listen to local UNIX socket and then you can connect to with system-config-printer utility
Title: Re: Help for HP printer configuration
Post by: alium on 12 May 2020, 16:57:23
seems, that cups is not started, or is wrong configured.

please give here output from terminal with command:

Code: [Select]
rc-service cupsd restart -v


should be similar as mine:
Code: [Select]
[picasso pkg]# rc-service cupsd restart -v
 * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/cupsd stop
 * Stopping cupsd ...
 * Will stop /usr/bin/cupsd
 * Will stop PID 7102
 * Will stop processes of `/usr/bin/cupsd'
 * Sending signal 15 to PID 7102 ...                                                                              [ ok ]
 * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/cupsd start
 * Starting cupsd ...
 * start-stop-daemon: fopen `/run/cupsd.pid': No such file or directory
 * Detaching to start `/usr/bin/cupsd' ...                                                                        [ ok ]
Title: Re: Help for HP printer configuration
Post by: Giorgio on 12 May 2020, 19:19:28
seems, that cups is not started, or is wrong configured.

please give here output from terminal with command:

Code: [Select]
rc-service cupsd restart -v


should be similar as mine:
Code: [Select]
[picasso pkg]# rc-service cupsd restart -v
 * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/cupsd stop
 * Stopping cupsd ...
 * Will stop /usr/bin/cupsd
 * Will stop PID 7102
 * Will stop processes of `/usr/bin/cupsd'
 * Sending signal 15 to PID 7102 ...                                                                              [ ok ]
 * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/cupsd start
 * Starting cupsd ...
 * start-stop-daemon: fopen `/run/cupsd.pid': No such file or directory
 * Detaching to start `/usr/bin/cupsd' ...                                                                        [ ok ]


this is the result of   "rc-service cupsd restart -v"
  * rc-service: service `cupsd' does not exist
Title: Re: Help for HP printer configuration
Post by: alium on 12 May 2020, 20:03:41
have you no cups-openrc installed???  :o  :o

Code: [Select]
pacman -S cups  cups-openrc   
Title: Re: Help for HP printer configuration
Post by: Giorgio on 12 May 2020, 22:21:31
have you no cups-openrc installed???  :o  :o

Code: [Select]
pacman -S cups  cups-openrc   

CUPS is installed !

 this is the result of " pacman -Qs cups"

local/cups 2.3.3-1
    The CUPS Printing System - daemon package
local/cups-filters 1.27.4-1
    OpenPrinting CUPS Filters
local/libcups 2.3.3-1
    The CUPS Printing System - client libraries and headers
Title: Re: Help for HP printer configuration
Post by: picokan on 12 May 2020, 22:50:00
Well, if you didn't do a terminal installation I guess there's no way for you to know before hand, but in Artix services like CUPS and Network Manager come with their normal package and the *-openrc/*-runit/*-s6 packages, each with the init scripts of their respective init system. If you install cups-openrc it should stop giving the "rc-service: service `cupsd' does not exist" error message.
Title: Re: Help for HP printer configuration
Post by: alium on 12 May 2020, 22:54:34
CUPS is installed !

 this is the result of " pacman -Qs cups"

local/cups 2.3.3-1
    The CUPS Printing System - daemon package
local/cups-filters 1.27.4-1
    OpenPrinting CUPS Filters
local/libcups 2.3.3-1
    The CUPS Printing System - client libraries and headers

Yes, is installed, but is not installed cups service and cups can't start. Just install cups-openrc, and start it.

So, your cups is NOT really properly installed.
Title: Re: Help for HP printer configuration
Post by: Giorgio on 13 May 2020, 18:11:08
Yes, is installed, but is not installed cups service and cups can't start. Just install cups-openrc, and start it.

So, your cups is NOT really properly installed.

BINGO !!!

I installed "cups-openrc" and now, by launching "hp-setup", I was able to configure the HP printer, which now works perfectly, including the scanner.

I want to thank everyone who answered and helped me, especially alium, to whom I wasted a lot of time ...
I'm afraid, however, that you will read me again soon, there are other small post installation things that don't go as they should, certainly not as important as not being able to print, but still need to be fixed.

To conclude, congratulations on the project, Artix runs well on my old PC over 15 years ago, and everything is very responsive and also pleasant to see (MATE). I just hope I don't break everything too soon, I'm a beginner with Linux.

See you soon.-

George
Title: Re: [SOLVED] Help for HP printer configuration
Post by: alium on 13 May 2020, 21:18:10
good :-)
Title: Re: [SOLVED] Help for HP printer configuration
Post by: nous on 14 May 2020, 12:11:54
To conclude, congratulations on the project, Artix runs well on my old PC over 15 years ago, and everything is very responsive and also pleasant to see (MATE).
I find kernels with the CK patchset to offer great desktop responsiveness in low RAM / disk-thrashing situations / old hardware.
Title: Re: [SOLVED] Help for HP printer configuration
Post by: alium on 14 May 2020, 13:25:43
I find kernels with the CK patchset to offer great desktop responsiveness in low RAM / disk-thrashing situations / old hardware.
maybe he can instal linux-zen
Code: [Select]
pacman -S linux-zen
Title: Re: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 15 May 2020, 23:06:59
I find kernels with the CK patchset to offer great desktop responsiveness in low RAM / disk-thrashing situations / old hardware.
Hi nous! Very interesting, for me, what you wrote.
Indeed, I have an old TOSHIBA SATELLITE with AMD e350 and 4Gb of Ram. I only replaced the hard drive with a small first price SSD. With Artix everything turns perfectly, it's almost a splinter. He's only struggling with 1080 video straming, but I have to settle, he's an old man ... So, yes, I could try Kernel with CK patchset, maybe something improves further! How you do it ? I searched the forum but found nothing. Thanks for this nice news!
Title: Re: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 15 May 2020, 23:34:25
maybe he can instal linux-zen
Code: [Select]
pacman -S linux-zen
Hi alium! I read something, I seem to understand that it is an alternative Kernel ... I would not want to break something by installing it. I know that touching the kernel is a very delicate thing, and I am not an expert to remedy ... If I install it I can go back easily, if something goes wrong? TKS in advance for the reply.
Title: Re: [SOLVED] Help for HP printer configuration
Post by: phoenix_king_rus on 16 May 2020, 09:46:36
Hi alium! I read something, I seem to understand that it is an alternative Kernel ... I would not want to break something by installing it. I know that touching the kernel is a very delicate thing, and I am not an expert to remedy ... If I install it I can go back easily, if something goes wrong? TKS in advance for the reply.
linux, linux-lts, linux-zen and much other kernels are installed together not breaking each other. You will have one default choice in grub menu and other will be in options submenu
Title: Re: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 16 May 2020, 15:52:20
maybe he can instal linux-zen
Code: [Select]
pacman -S linux-zen

this is the result....  :o
something wrong...

Title: Re: [SOLVED] Help for HP printer configuration
Post by: ####### on 16 May 2020, 16:19:42
Possibly run pacman -Syu to update your system first, the current version in the repos is *13* not *11* so the old version wouldn't be found.
Title: Re: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 16 May 2020, 16:54:30
Possibly run pacman -Syu to update your system first, the current version in the repos is *13* not *11* so the old version wouldn't be found.
TKS #######, it's ok. Now I try to reboot and choose the new one kernel.
Title: Re: [SOLVED] Help for HP printer configuration
Post by: Giorgio on 16 May 2020, 17:00:50
TKS #######, it's ok. Now I try to reboot and choose the new one kernel.
I guess I didn't understand something. At boot time there is no selection of different kernels available. - Where am I wrong?
Title: Re: [SOLVED] Help for HP printer configuration
Post by: alium on 16 May 2020, 17:53:33
you must some kernel to grub add  before :D (or which sysem loader you use)