gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Printing CUPS

Tue Sep 19, 2017 1:22 pm

I installed CUPS and Samba on my Raspberry Pi - Raspbian Stretch and connected my printer HP LaserJet 1018 to an USB port.
Via CUPS - Administration - Add Printer I could install (visible) the HP LaserJet 1018.
I checked the "Share This Printer" checkbox.
As I couldn't find the exact HP printer in the list I provided the PPD file (HP-LaserJet_1018.ppd)
Then in Windows10 I searched for a printer and found \\huttesrv000\HP_LaserJet-1018 (huttesrv000= the hostname of my Pi)
So far so good : not a single error.

Just I can't print:
tested from CUPS: Printers- Print Selt Test Page
from Windows
from the Pi itself via VNC

I can see the print job appearing in CUPS - JOBS - Show All Jobs
status: completed at:Tue 19 Sep 2017 02:48:43 PM CEST
On one of theJobs I got the status: Stopped "Filter Failed"

Can anyone please point me in the right direction as how to solve this problem?
thank you in advance, gabriël

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Printing CUPS

Tue Sep 19, 2017 3:54 pm

gabriel.rosseel wrote:
Tue Sep 19, 2017 1:22 pm
I installed CUPS and Samba on my Raspberry Pi - Raspbian Stretch and connected my printer HP LaserJet 1018 to an USB port.
Via CUPS - Administration - Add Printer I could install (visible) the HP LaserJet 1018.
I checked the "Share This Printer" checkbox.
As I couldn't find the exact HP printer in the list I provided the PPD file (HP-LaserJet_1018.ppd)
Then in Windows10 I searched for a printer and found \\huttesrv000\HP_LaserJet-1018 (huttesrv000= the hostname of my Pi)
So far so good : not a single error.

Just I can't print:
tested from CUPS: Printers- Print Selt Test Page
from Windows
from the Pi itself via VNC

I can see the print job appearing in CUPS - JOBS - Show All Jobs
status: completed at:Tue 19 Sep 2017 02:48:43 PM CEST
On one of theJobs I got the status: Stopped "Filter Failed"

Can anyone please point me in the right direction as how to solve this problem?
thank you in advance, gabriël

In Radpbian:

Code: Select all

sudo apt-get update
sudo apt-get install hplip
Installing HPLIP will provide CUPS the correct HP printer information.

I presume you gave the USER lpadmin permission:

Code: Select all

sudo usermod -a -G lpadmin USER
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Re: Printing CUPS

Tue Sep 19, 2017 4:30 pm

thank you for your answer.
yes, I gave the correct permissions: sudo usermod -a -G lpadmin pi
Now I'll install, as you suggested,
sudo apt-get update
sudo apt-get install hplip
thank you, gabriël

gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Re: Printing CUPS

Tue Sep 19, 2017 4:42 pm

I installed hplip and tried to print a job (via CUPS - Print Test Page) but with the same result:
in the job list I see "sending data to printer" , then the job finished and then I see the job ID with comment: Completed at Tue 19 Sep 2017 06:36:23 PM CEST

I didn't delete the printer and reinstalled it again.
Should I have done that?
gabriël

gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Re: Printing CUPS

Tue Sep 19, 2017 4:49 pm

with SSH I can see:
lpstat -r: scheduler is running
lpstat -d: system default destination: HP_LaserJet_1018
lpq: HP_LaserJet_1018 is ready - no entries

I feel i am so close to a solution, but not quite there...

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Printing CUPS

Tue Sep 19, 2017 8:16 pm

You need CupS to show it is using HPLIP Driver...
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Re: Printing CUPS

Thu Sep 21, 2017 3:25 pm

first of all: sorry it took me awhile before replying.
In the meantime I found out something about the HP LaserJet 1018: it is a so called ""host based" printer;
this means that the pinter does NOT have the driver in its firmware; it has to be loaded from the host.
And apparently (according to HP sites) this works only for Windows (No Linux drivers available).
and it can be right: after printing, CUPS told me first that data was sent to the printer, then the queue emptied and then the message: printing complete (so no errors at all); one small detail: the printer didn't budge.
now i've connented the printer to the USB port of my Windows 10 workstation and I can print (pity not from everey wksts in the LAN).
So for now i've given up on CUPS (I know it is NOT an error in CUPS).
thanks everyone for all the help.

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: Printing CUPS

Thu Sep 21, 2017 3:40 pm

gabriel.rosseel wrote:
Thu Sep 21, 2017 3:25 pm
first of all: sorry it took me awhile before replying.
In the meantime I found out something about the HP LaserJet 1018: it is a so called ""host based" printer;
this means that the pinter does NOT have the driver in its firmware; it has to be loaded from the host.
And apparently (according to HP sites) this works only for Windows (No Linux drivers available).
and it can be right: after printing, CUPS told me first that data was sent to the printer, then the queue emptied and then the message: printing complete (so no errors at all); one small detail: the printer didn't budge.
now i've connented the printer to the USB port of my Windows 10 workstation and I can print (pity not from everey wksts in the LAN).
So for now i've given up on CUPS (I know it is NOT an error in CUPS).
thanks everyone for all the help.

IT IS supported by hplip which is HP Supported Community Software:

http://hplipopensource.com/hplip-web/mo ... _1018.html


If you run SAMBA in Raspbian can Windows see Files & Printer ??
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

gabriel.rosseel
Posts: 116
Joined: Fri May 05, 2017 8:21 am

Re: Printing CUPS

Fri Sep 22, 2017 8:55 am

I reinstalled from scratch (restoring former image) Cups, Samba and HPLip.
when launching Cups I see in Administration - Add Printer - Local Printers: HP Printer (HPLIP)
I selected this option with the radio button and pressed the Continue button.
then I see a screen in which I have to fill in a url site:
Examples:

http://hostname:631/ipp/
http://hostname:631/ipp/port1

ipp://hostname/ipp/
ipp://hostname/ipp/port1

lpd://hostname/queue

socket://hostname
socket://hostname:9100

pressing the Continue button I am I am asked to enter an URL.
And then I am get stucked: What URL should I enter?
thanks in advance, gabriël

Return to “Beginners”

Who is online

Users browsing this forum: Kaej and 41 guests