LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2006, 08:15 AM   #1
JFLINUX
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Rep: Reputation: 0
printing


Hi everyone!! I have installed the latest version of CUPS and Ghostscript, but still cannot print. If I echo a line to /dev/usb/lp0, I see the light flash on the printer showing its receiving data. If I do localhost:631, raw printer, it will also blink. Still, no printing. I'm using a canon s300 printer. The local host gives this error "/usr/lib/cups/filter/rastertoprinter failed".

I have followed the tutorials, but still same error. The CUPS version is 1.2, and the Ghostscript should be 8.15.1. I did ./configure, make, make install for Ghostscript, however I don't know where it should show up in KDE. I went through the menus, but I couldn't see it; I don't know whether its a background utility or so. Any help would be appreciated. JF
 
Old 02-26-2006, 08:40 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
What kind of files are you trying to print?
Can you print from an application---eg word processor, graphics editor, etc.?
Can you print a plain text file at the CLI?

AFAIK--anything but a plain text file takes some pre-processing---(I think) this is done in CUPS using "front-end drivers". (These are normally tied to specific apps--don't know how it works at the CLI)
 
Old 02-26-2006, 09:40 AM   #3
JFLINUX
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
I can't print even when you set the printer up and try to print a test page. Won't print that either. What is CLI? JF
 
Old 02-27-2006, 05:24 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Don't send bytes directly to the printer device in /dev. You're supposed to use printer drivers, as pixellany already mentioned.
The CLI is an abbreviation for Command Line Interface, which is simply said the command line of your terminal window where you type in commands.

Try using the "lp" command to print documents.
ie try:
echo "this is a test" | lp -d /dev/usb/lp0/
You can add other options too.

I know -d is used to specify the printer device, but I'm not 100% sure it accepts using the device file.
You may need to specify the name that the printer was installed on (in Cups). lp will use Cups to find the right driver, convert the text to the printer language (typically either PostScript or some version of PCL - the Printer Command Language) and then send it off to the printer.
Unless you know PCL or PS (PostScript) syntax yourself, I don't recommand that you try sending stuff directly to the printer. Use "lp" instead.
 
Old 02-27-2006, 07:17 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by timmeke
Try using the "lp" command to print documents.
ie try:
echo "this is a test" | lp -d /dev/usb/lp0/
You can add other options too.
On my machine, it's "lp /dev/usb/lp0" The -d flag wants the printer name as an argument.
 
Old 02-27-2006, 08:02 AM   #6
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Nice to have checked that, pixellany.
I was unsure about the right syntax for the -d option of lp.
 
Old 02-27-2006, 09:27 PM   #7
JFLINUX
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the replies. I'm currently away from my machine but will try ASAP. Thanks.
 
Old 03-01-2006, 07:06 PM   #8
JFLINUX
LQ Newbie
 
Registered: Feb 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Finally got my machine to print nicely. After looking at other threads and reinstalling linux due to a repartitioning issue, I copied the ppd file into the /usr/share/cups/model directory and loaded it using the localhost. After that, it worked great. A serious issue I had was that I ran out of space in the usr directory. I decided to repartition the disk and reinstall a fresh unaltered copy of linux. I followed the cups quickstart guide in the linuxprinting.org website and am happy to say that this one is finally nailed. Thanks everyone!!
 
  


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
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 10:10 AM
printing Ammad Linux - Security 1 08-05-2004 12:17 AM
Printing in C++ calble Programming 1 05-10-2004 05:38 PM
Scribus Printing How to put 4 flyers on a page when printing jazzboy Linux - Software 0 05-02-2004 06:13 AM
printing sonia Linux - Newbie 1 09-04-2002 03:54 AM

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

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