LinuxQuestions.org
Visit Jeremy's Blog.
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 02-28-2004, 07:15 PM   #1
johnny1959
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: Suse 9.0 / KDE 3.1
Posts: 23

Rep: Reputation: 15
CUPS Queue won't print


Have installed a Lexmark X125 at /dev/usb/lp0
Printer and printerport are detected correctly by YaST-printer setup.
cups/ppd driver file is assigned and confirmed.

I can directly print a testpage to the printer without the queue, so it' s physically there and recognized.

I can edit printer configuration options when calling the print window in an application.

Everything's in place.

But when I launch a print it will appear in the queue but cancelled immediately. The printer just sits there.

It seems that after two weeks of printer installation pain I'm just a few inches from release. Anyone can help me? I' m getting nervous. (To be honest: the wife-unit is getting
nervous. )

Thanks a lot.
 
Old 02-29-2004, 01:45 PM   #2
johnny1959
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: Suse 9.0 / KDE 3.1
Posts: 23

Original Poster
Rep: Reputation: 15
Goodbye Linux, hello Windows!

Hhhhmmm.... 16 views, no reply.
My description doesn't seem dramatic enough. Let's try another trick.

HEY FRIENDS! I`LL GIVE UP! HOW SHALL I USE AN OP WHICH CAN'T PRINT? I'VE READ ALL MANUALS AND THREADS BENEATH THE SUN! LINUX SUCKS! I'LL CHANGE BACK TO WINDOWS TOMORROW!

He, he. Now I'll have 1500 views and 150 replies within 24 hours! Well, perhaps someone will remember the original question.

 
Old 02-29-2004, 03:18 PM   #3
thisismadness
LQ Newbie
 
Registered: Feb 2004
Location: long beach, ca
Posts: 13

Rep: Reputation: 0
i dunno if its the same problem (i'm SUCH a newbie you have no idea) but i couldn't for the LIFE of me get my hp printer to work, though it was recognized as being there ... my docs would just sit in the queue. you said yours were being cancelled? well, i dunno 'bout that, but my problem ended up being the actual usb connection. i kept reading about a driver that would fix it, but i already HAD that driver and it wasn't fixing it. so i ditched the usb and got a big ol' parallel port cord (pins to centronics) and VOILA. printing.

this shite is wacky, if nuthin else.

best o' luck. to you and to me.

(now if i could only get my 802.11g wireless to work. grr.)
 
Old 03-12-2004, 06:45 PM   #4
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
How do you have it set up? I have a Lexmark X125 also, and downloaded the driver from sourceforge.net. I don't know where to go for a printer Queue. I would like to set it up as a print server for Mandrake using CUPS.

Thanks
 
Old 03-12-2004, 06:52 PM   #5
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
What program are you trying to print out with? Abiword is known to be problematic. Try with OpenOffice's writer. Choose print on the writer and make sure that you are selecting the correct printer. If the correct device or device path is not showed there, nor you can add it manually, reconfigure your printer. Open a browser and point it at http://localhost:631. If cups is correctly installed, you should be able to configure your printer there. Change the drivers as well (sometimes you've got a bunch of them as gimp+footmagic or something else) and see how it goes...

Good luck!
 
Old 03-12-2004, 08:37 PM   #6
ryeman
Member
 
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
Unhappy

I am trying to print a test page after installing my printer. The http://localhost:631 is telling me that I have no paper in the printer [which is not true]. I have tried unplugging the printer and restarting it, however, I still get nothing. here is a copy of my cupsd.conf file:

LogLevel info
TempDir /var/spool/cups/tmp
Browsing On
BrowseDeny All
BrowseAllow @LOCAL
BrowseAllow @IF(eth0)
BrowseAllow 192.168.1.18
BrowseAllow 192.168.1.40
BrowseOrder Allow,Deny
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.5
Allow From @LOCAL
Allow From @IF(eth0)
Allow From 192.168.1.18
Allow From 192.168.1.40
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
ServerName 192.168.1.5
 
Old 03-13-2004, 01:14 PM   #7
johnny1959
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: Suse 9.0 / KDE 3.1
Posts: 23

Original Poster
Rep: Reputation: 15
ryeman,

some good and some bad news. I'll begin with the bad:

If you look at the sourceforge forum for the X125 driver project

https://sourceforge.net/forum/forum.php?forum_id=339611

you will realize that until now nobody has successfully installed the driver with CUPS. It apparently won't work. The author of the driver tells us it will work with LPRng. To install LPRng (it depends on your distro whether it is delivered with the default discs) you have to remove CUPS. (dependancy conflicts)

Myself I've been trying to install the driver with LPRng and the ppd-file from linuxprinting.org for two weeks now, no success either. See f.e. my requests on the lq-forum:

http://www.linuxprinting.org/forums....inting.general

and also on the sourceforge project forum mentioned above. Guess it's best to watch this forum for news and hints. You also won't be able to configure a network printer with the standard driver, you will need the network version. I have no experience with that, I will try it after I've got the other thing working properly.

The good news is that there are several possibilities to use the x125-driver without having a functional printqueue like CUPS or LPRng installed. If you have installed the driver files and are able to make the testprint and are able to launch the print of a postscript printfile from the commandline (as root) with

/usr/bin/x125_cmyk_print.sh letter /dev/usb/lp0 k 1 < [file.ps]

according to the setup readme, with the printer attached to the first USB-port, the driver installed in the directory /usr/bin (could be /usr/local/bin also) and [file.ps] being an existing postscript file,

if you can do that the driver itself is operational and there are some workarounds to install it with OpenOffice and set up a little trick to print with assigned hotkeys from the keyboard. See my HowTo-tutorials concerning this topic on the driver forum.

Hope this makes things a little clearer, I'm a newbie also but learning a lot of stuff while fighting with this print setup.

Johnny

 
Old 08-06-2009, 03:11 PM   #8
Quackula
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Foo2hp

I signed up for the sole purpose of posting this. Then my post went to /dev/null (that means oblivion) because I was apparently timed out.

Now I can't post urls until I've made another post.

Last edited by Quackula; 08-10-2009 at 12:58 PM.
 
Old 08-06-2009, 03:17 PM   #9
Quackula
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Ok - whoopie - I can post a url now.

Some printers require the utility available at this page - I know because I have one - an HP 1200. The explanation is thatsome printers can't print unless some special firmware is sent to them at each print job.

You will need make installed probably gcc.

Just download the one for your model - go into the shell. Its an easy compile. Follow his instructions on the botom. You don't need to read the top of the web page:
Don't fear the shell - I had to use it in Vista to get the shadow copy from eating all my disk space.


http://foo2hp.rkkda.com/

Information for BSD users:
This works in FreeBSD 7-Release (I didn't use the ports) as well as NetBSD 4.0.1 - the secret to Netbsd is that you have to edit the make file replacing FreeBSD with NetBSD where FreBSD appears. It will look to error out - but it still works - I know - I've done it.

The following link will provide you with foomatic-rip for download if it isn't already installed or available in your distribution:
http://lx1.avasys.jp/FAQ/foomatic/foomatic-rip (NetBSD needs it and it needs a manual placing of the file in the proper location.)

The link above _is_ the software you need - its not meant for reading - but instead, downloading. (but is indicative that some software you use is in fact made of plain text files.)

These sites also touch on the issue

http://stepanoff.org/wordpress/archives/1378
http://avasys.jp/hp/page000000600/hpg000000555.htm

Cheers,

Quackula

10 minutes longer then it had to be. Hopefully I didn't loose anything.

Last edited by Quackula; 08-06-2009 at 03:28 PM.
 
Old 08-07-2009, 03:15 AM   #10
johnny1959
LQ Newbie
 
Registered: Feb 2004
Location: Hannover, Germany
Distribution: Suse 9.0 / KDE 3.1
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quackula View Post
I signed up for the sole purpose of posting this.

Oh, holy soul. A reply after five years and you signed up only for posting the info! My reply notification was still ebabled for this thread, so after renewing the long forgotten password I could log in again.

I hope this info will be useful for others now.

Myself, I have lost the battle against Bill many years ago. I gave up and returned to Windows. I don't have time to fight this war. I need computers to use them. Meanwhile I have a wonderful fully network integrated HP printer-all-in-one which was installed in 15 minutes with a simple setup.exe and it does miraculous things just like this. No pain, no wasted evenings, no panic, no dreading divorce because of a neglected wife.

It's sad to say, but my life is happier without Linux. I would love to give it another try, but reading the advice from 2009 doesn't give me the feeling that things have changed much.

Good luck to all the remaining heroes.
 
Old 08-08-2009, 11:48 PM   #11
Quackula
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Quackula's reply

Quote:
Originally Posted by johnny1959 View Post
Oh, holy soul. A reply after five years and you signed up only for posting the info! My reply notification was still ebabled for this thread, so after renewing the long forgotten password I could log in again.

I hope this info will be useful for others now.

Myself, I have lost the battle against Bill many years ago. I gave up and returned to Windows. I don't have time to fight this war. I need computers to use them. Meanwhile I have a wonderful fully network integrated HP printer-all-in-one which was installed in 15 minutes with a simple setup.exe and it does miraculous things just like this. No pain, no wasted evenings, no panic, no dreading divorce because of a neglected wife.

It's sad to say, but my life is happier without Linux. I would love to give it another try, but reading the advice from 2009 doesn't give me the feeling that things have changed much.

Good luck to all the remaining heroes.
Well - you couldn't be as stubborn as I am - you sound close. That's not a knock - I understand. LOL.

Now having said that - *ewwwwahahahaha*

Ok - just for you - here is what I did to get this working.

Remember that I said you have to send the firmware to the printer first before it prints. That's the "Cat"ch.

Remember - before you do anything with foo2zjs - make sure that you have foomatic-rip installed. If you can't install it - download it and place it where it goes.

After downloading the foo program and clicking on it and saying extract - I had a folder called foo2zjs in my home directory.

Discovery:/home/Quackula/foo2zjs # make
/home/Quackula/foo2zjs # chmod a+rw /dev/usb/lp0
/home/Quackula/foo2zjs # ./getweb 1018
sihp1018.img

(c) Copyright Hewlett-Packard 2005

Discovery:/home/Quackula/foo2zjs # make install
Discovery:/home/Quackula/foo2zjs # make install-hotplug
Discovery:/home/Quackula/foo2zjs # cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/usb/lp0

OH MY GOD! THE COMPUTER IS MAKING NOISE AND THE LIGHTS ARE BLINKING!!!!

Oh wait that's good.

I just sent the firmware to the printer.

Note - keep track of the name of the file you just downloaded. Mine was sihp1018.img. It appears after you type getweb.

Print a test page. Yep.
"Look ma! I got me a test page."

OK - two things I left out.

1. This is for everybody (Linux, BSD's SuSE - whatever)

You have to send that firmware once to the printer before you can print. If you turn the printer off - you have to send the firmware again.

Now instead of opening up a command line every time you boot in - why not do this automaticly every time you boot into Isuzu Linux - or whatever? Huh? Sound good? Oakily doakily.

Open up a text editor and type the following in it - with one maybe two modifications - you need to know the name of the file you downloaded.

Mine was sihp1018.img. So if I were following these instructions, I'd change sihp1018.img to sihp1018.dl in the whatchamacallit below. If you received hgfhgfhg666dfgdgfd.img you'd change it to hgfhgfhg666dfgdgfd.dl
.

Second exception that Johnny here figured out - you have to know what device Linux calls the printer. Mine happens to be /dev/usb/lp0. I can't guarantee it will be the same for everyone.

Code starts below:

#!/bin/bash
# Loads HP Firmware to the Printer on Startup

echo "I made this script so I wouldn't have to open up the"
echo "shell. Plus I can tell my friends I am a programmer."
echo "If the printer is not on - this won't work"

cat /usr/share/foo2zjs/firmware/sihp1018.dl > /dev/usb/lp0

exit $rc

Code ended above Name it HP1018, mark it executible (right click make executible) and as root, place this in /etc/rc.d

Go into yast and system services and have this start on run level 3.

Done.

Second thing to know. In SuSe 10 - I'm not sure if Yast will detect what the device is correctly. CUPS sees it as: usb://HP/LaserJet%201018

CUPS is the print spool service

I had to go into http://localhost:631 to change the connection to from something else. Or maybe I didn't and I thought I did.

If you were only as stubborn as I am, Johnny.

To me its not about socking it to old Bill - just for the sake of it - its about the reality that for every problem with Linux - chances are good someone has been kind enough to make it easier - and that sense of community is what its all about.

I'm happy to come here and help out because that means I'm giving back. It impossible to dispise the people who make the software because we scratch each others backs.

Linux is all about knowing the right recipes. And to find those recipres - and earn your freedom from Bill - your best friend is your own ability to research to find solutions and be willing to test it out.

With Linux you make some or all of the software and its something you can be proud of and have a sense of empowerment.

Another thing - in general - when working with Unix operating systems - up to about 2 years ago - I wouldn't rush out to buy a USB printer. Its just more complicated to deal with. Still a bit in some cases.

Could HP put these instructions or firmware on its CD? Sure. Why don't they - ask them!

Sincerely,

Quackula

Last edited by Quackula; 08-08-2009 at 11:51 PM.
 
  


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
print queue lectraplayer Linux - Newbie 9 11-01-2010 04:43 AM
print queue administration tglewis Linux - Newbie 1 07-08-2005 02:51 AM
Permissions for manipulating CUPS print queue PC_Pixel Linux - Security 1 04-13-2005 11:34 AM
Losing print queue rwo_linux Red Hat 0 02-23-2005 10:09 AM
Does anyone know how to queue print jobs? Makystir Linux - Software 3 11-05-2003 05:12 PM

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

All times are GMT -5. The time now is 07:35 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