Click to See Complete Forum and Search --> : printing in console with HP Deskjet 400


nopri
01-23-2001, 02:23 AM
Hello Linuxer !!
I have no idea about printing. I have used windows for many years and I have an image that to print we have to have drivers. Anyone can help me to print in Linux console using HP Deskjet 400 ? Please ...

------------------
best regards,
noprianto.

tiw
01-23-2001, 11:53 AM
IF you use a red hat based distro i would recommend using printtool, i am pretty sure that most HP's are supported with this tool, it is a lot easier for someone who is from the GUI world

WeDeliver
01-23-2001, 11:57 AM
What version of Linux? Linux printing with most distros is straightforward. You have an /etc/printcap file which contains information about your printer. The exact commands to be used vary depending upon how the printer is used, if it is local or networked, if it is networked is it smb, lpd, etc. You also have a filter file, which tells the printer how to process data. Think of the filter as a driver.

If you have Mandrake, then you probably installed the fancy KDE print tool too. Using it (looks like a printer in X) you can actually choose a compatible HP deskjet, and it will set up the /etc/printcap and filter file for you. The default name of the printer will be 'lp'.

Now the printing. Most Linux distros use the BSD printing service running the lpd daemon. To put a job into the lpd daemon, first make sure it is running. (/etc/rc.d/init.d/./lpd status) If running, here is the command to print:

lpr -P lp /etc/nameoffile

The '-P' specifies printer name, which in this case would be 'lp'. (You can add printers to the /etc/printcap file and also give them alias's using '|')