Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
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)
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.
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.
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!!