LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2016, 04:37 AM   #31
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140

I wasn't sure that the HP1020 LaserJet 1020 was supported by the foo2zjs driver, but it is listed as supported as shown here. So, it's probably worth a shot.

Here's an Ubuntu guide, which offers clear instructions with installing the foo2zjs driver precisely for this model.

A Mint guide using essentially the same commands. (Make sure to load the firmware for you model though.)

Once the driver is installed, you can configure using system-config-printer, or a browser (CUPS web interface).

http://foo2zjs.rkkda.com/cups/hp1020.html
 
Old 04-12-2016, 07:12 AM   #32
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I've had problems with trying to use HPLIP for HP 1020, but this http://foo2zjs.rkkda.com/ has always worked on Centos v5 & v6.
 
Old 04-12-2016, 08:56 AM   #33
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Thanks, but what is (or are) Centos v5 and v6?
 
Old 04-12-2016, 01:51 PM   #34
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I've already provided the link to the foo2zj driver. (Refer first URL of post #31).

Follow the instructions in the Ubuntu guide and you won't go wrong. CentOS is another Linux distro (and based on the source code of Red Hat Enterprise Linux).

Last edited by ferrari; 04-12-2016 at 01:54 PM.
 
Old 04-13-2016, 12:24 AM   #35
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
I was about to sent a euphoric message - the routine in the Ubuntu guide went perfectly smoothly, all the way down to the last message testing the installation - this was the output -

tail /var/log/syslog
Apr 13 10:47:19 alok-desktop foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p9 -T3 -m1 -s7 -n1
Apr 13 10:47:20 alok-desktop foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Apr 13 10:47:20 alok-desktop foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Apr 13 10:47:43 alok-desktop dbus[510]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' (using servicehelper)
Apr 13 10:47:43 alok-desktop dbus[510]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
Apr 13 10:48:16 alok-desktop foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p9 -T3 -m1 -s7 -n1
Apr 13 10:48:17 alok-desktop foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Apr 13 10:48:17 alok-desktop foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Apr 13 10:48:48 alok-desktop dbus[510]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' (using servicehelper)
Apr 13 10:48:48 alok-desktop dbus[510]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'

All of which looked fine, and even managed to print a test page successfully. After that, I power-cycled the PC and the printer, but when I tried printing again, it was back to the old "Processing" - the printer that didn't go beyond processing.

Am feeling quite disheartened now. Any ideas?

And thank you all for being so patient.
 
Old 04-13-2016, 12:39 AM   #36
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Still persisting. Ran the var/log/syslog command again, and identified something different this time. Here is the output -

tail /var/log/syslog
Apr 13 10:47:20 alok-desktop foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Apr 13 10:47:20 alok-desktop foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Apr 13 10:47:43 alok-desktop dbus[510]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' (using servicehelper)
Apr 13 10:47:43 alok-desktop dbus[510]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
Apr 13 10:48:16 alok-desktop foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p9 -T3 -m1 -s7 -n1
Apr 13 10:48:17 alok-desktop foo2zjs-wrapper: gs -sPAPERSIZE=a4 -g9920x7016 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Apr 13 10:48:17 alok-desktop foo2zjs-wrapper: foo2zjs -r1200x600 -g9920x7016 -p9 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -T3 -P
Apr 13 10:48:48 alok-desktop dbus[510]: [system] Activating service name='org.opensuse.CupsPkHelper.Mechanism' (using servicehelper)
Apr 13 10:48:48 alok-desktop dbus[510]: [system] Successfully activated service 'org.opensuse.CupsPkHelper.Mechanism'
Apr 13 10:51:22 alok-desktop kernel: [ 465.625480] perf interrupt took too long (2518 > 2500), lowering kernel.perf_event_max_sample_rate to 50000

*

The last line is missing from the previous output. Significant?
 
Old 04-13-2016, 12:52 AM   #37
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
That last line is not related to CUPS processing. That's one of the problems with examining syslog output. Use CUPS page_log and error_log instead.
 
Old 04-13-2016, 01:00 AM   #38
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
All of which looked fine, and even managed to print a test page successfully. After that, I power-cycled the PC and the printer, but when I tried printing again, it was back to the old "Processing" - the printer that didn't go beyond processing.

Am feeling quite disheartened now. Any ideas?

And thank you all for being so patient.
You managed to print a test page successfully, so that's good. Now, we need to know where the processing fails, and that can be complicated. This DebuggingPrintingProblems guide is your friend here. Learning and patience is required to locate the cause of the problem.

But first, what kind of file were you trying to print? Application? That may be impacting here.
 
Old 04-13-2016, 01:04 AM   #39
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Meanwhile, I power-cycled some more, and switched the USB slot, and the lsusb managed to detect a printer, and I managed to print a test successfully. So, I'm delighted - but still confused! And afraid that the printer might decide to go whimsical on me again.

However, what could be the significance of that last line?

Also, if I wanted to run CUPS page_log and error_log - what would the command in Terminal look like?
 
Old 04-13-2016, 01:11 AM   #40
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
I printed just a few letters - ;lihf;asd - that sort of thing - from LibreOffice Writer.

Truth to tell, I am also rather enjoying having shed the passivity of the Windows world, and actually becoming involved in what the computer is doing - takes me back to the earlier DOS, pre-Windows days when I got my first PC - which probably tells you that I am rather more ancient than the usual Linux user. Certainly, the few people I can call on for advice here are a little surprised that someone like me should be trying to get the hang of this kind of thing! (Pls forgive the autobiographical aside, but I thought you might be interested to know a little more about this chap who is seeking your help so persistently!)

I will certainly give the DebuggingPrintingProblems guide a shot. Thanks.
 
Old 04-13-2016, 01:32 AM   #41
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
I printed just a few letters - ;lihf;asd - that sort of thing - from LibreOffice Writer.
Okay, so to cancel all pending/failed jobs do
Code:
cancel -a
then print a PDF with the lpr command using something like
Code:
lpr -P <name_of_printer> /path/to/foo.pdf
eg I might do this to print a file /home/dean/example.pdf
Code:
lpr -P Brother_DCP-7055  /home/dean/example.pdf
Quote:
Truth to tell, I am also rather enjoying having shed the passivity of the Windows world, and actually becoming involved in what the computer is doing - takes me back to the earlier DOS, pre-Windows days when I got my first PC - which probably tells you that I am rather more ancient than the usual Linux user. Certainly, the few people I can call on for advice here are a little surprised that someone like me should be trying to get the hang of this kind of thing! (Pls forgive the autobiographical aside, but I thought you might be interested to know a little more about this chap who is seeking your help so persistently!)
You'd be surprised about the age range of members here. (I'm a moderator at openSUSE forums, and there are a number of senior members there who are retired users, some with work histories using computers since mainframe days!)

Quote:
I will certainly give the DebuggingPrintingProblems guide a shot. Thanks.
Yes, it's worth the investment. Essentially looking under the hood...like taking an engine apart. If you get stuck, I'll do my best to help.

Last edited by ferrari; 04-13-2016 at 01:33 AM.
 
Old 04-13-2016, 01:45 AM   #42
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Thanks a ton!

Just managed to print a PDF successfully!

Problem solved,I think!
 
Old 04-13-2016, 02:08 AM   #43
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I'm glad that you managed to print a PDF successfully, but don't be too quick to say its solved. CUPS uses (and now expects) the incoming file to be in PDF format as part of the workflow.

https://lwn.net/Articles/485617/

Hopefully, it is just LO that has the printing issue, but it will take further investigation on your part.
 
Old 04-13-2016, 02:13 AM   #44
Alok Rai
Member
 
Registered: Aug 2015
Posts: 245

Original Poster
Rep: Reputation: Disabled
Successfully printed more nonsense off LibreOffice!

O the sense of triumph!
 
Old 04-13-2016, 02:17 AM   #45
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,807

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Just to answer one of your questions I missed before (in case it helps others)
Quote:
Also, if I wanted to run CUPS page_log and error_log - what would the command in Terminal look like?
You could open the error_log file with an editor eg using nano
Code:
nano /var/log/cups/error_log
or to watch the tail of the file live, open a terminal window and do
Code:
tail -f /var/log/cups/error_log
then proceed to print while observing the output.

Last edited by ferrari; 04-15-2016 at 05:56 AM. Reason: syntax correction
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printer HP 1020 problem Alok Rai Linux - Newbie 17 02-03-2016 05:55 AM
Unable to shutdown computer running Linuxmint 10 rc Clived Linux Mint 5 11-11-2010 10:42 AM
HP 1020 usb printer keiffee30 Linux - Hardware 1 07-07-2007 09:19 PM
Need help buying a printer for computer running ubuntu izquierdista Ubuntu 2 06-19-2007 09:35 PM
hp 1020 printer problem mohit.chugh Linux - Software 1 11-22-2006 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration