LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-29-2002, 06:00 PM   #1
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Rep: Reputation: 15
Printer Configuration


I've read just about everything posted in the past about printer configuration on Slack, but to no avail. I don't have CUPS installed, and most of them delt with CUPS.

I tried copying my printcap config file from my previous redhat system. It reads the following:
Quote:
lexmark:\
:ml=0:\
:mx=0:\
:sd=/var/spool/lpd/lexmark:\
:af=/var/spool/lpd/lexmark/lexmark.acct:\
:sh:\
:lp=/dev/usb/lp0:\
:lpd_bounce=true:\
:if=/usr/share/printconf/util/mf_wrapper:
As u can tell it's a Lexmark, the model is Z32, and I am using usb.

My semester starts next wensday, and it would be great to get my printer up by then. Thanks for any help.
 
Old 08-30-2002, 01:29 AM   #2
Excalibur
Senior Member
 
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180

Rep: Reputation: 45
I haven't used a USB printer before but perhaps I can help to provide some hints on the printcap though.

The spool directory has to exist: /var/spool/lpd/lexmark
The input filter program has to exist: /usr/share/printconf/util/mf_wrapper
The device has to exist and functional: /dev/usb/lp0
The accounting filter needs to exist or be removed: af=/var/spool/lpd/lexmark/lexmark.acct

Any programs that the input filter requires need to be installed. Like Ghostscript, etc. And since it uses the name mf_wrapper it could be a file generated by RedHat configuration tool or something. But this filter is responsible for converting the output properly for your Lexmark printer.

You might could try the following command and see if you get anything from the printer.

cat /etc/printcap > /dev/usb/lp0

If it does print it, you will probably see the staircase effect on each line. But that is OK because at least you know the device lp0 is working correctly. If you get nothing then you should at least check to see if your modules are loaded to support the USB printing. But without a proper filter the printer may not be able to print even a simple text file.

More detailed information can be found in the /usr/doc/Linux-HOWTOs/Printing-HOWTO and there is also an excellent web site available: http://www.linuxprinting.org. Both of these may be able to provide detail information for setting up your Lexmark and/or best recommendation for support.

Hope it has helped.
 
Old 08-30-2002, 03:26 AM   #3
wickdgin
Member
 
Registered: Apr 2002
Distribution: Gentoo, Slackware
Posts: 63

Original Poster
Rep: Reputation: 15
Great post, thanks.

I found some great information! I haven't got to look through all of it yet though.

As far as testing /dev/usb/lp0:
The first time around, without the modules loaded I got device does not exist. Then I loaded usb-core, usb-uhci, and printer and I just got nothing. But from what I was reading the printer is something of a winprinter, so I am just going to try to set everything else up from what I've read and see how it does.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Configuration: "Print file sent, waiting for printer to finish", JetDirect Ed-MtnBiker Fedora 3 02-23-2007 01:41 PM
Printer configuration botnora Fedora - Installation 0 01-12-2005 07:58 PM
Printer Configuration Hady Linux - Newbie 4 12-03-2003 08:45 PM
Re: Printer Configuration rahul_jain_9684 Linux - Hardware 0 07-25-2003 05:45 AM
Printer Configuration gcombe74 Linux - General 2 04-17-2002 02:42 AM


All times are GMT -5. The time now is 03:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration