LinuxQuestions.org
Register a domain and help support LQ
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 09-03-2002, 12:13 AM   #1
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Rep: Reputation: 15
Parallel port and printer


I am trying to get my printer configured. My parallel port does not seem to be working under linux (it works fine under WinME).

I have mainboard Asus A7V333 (w/ RAID unfortunately).

Programs such as lprngtool do not find my parallel port. I am pretty sure that I have all modules compiled in my kernel (Debian 3.0 w/2.4.18).

Any suggestions?

thank you
 
Old 09-04-2002, 12:05 PM   #2
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
Just some questions

1. do you have any bios settings related to your parallel port?

2. Do you have a file something like /dev/lp0 or /dev/usblp0
(if the answer to this is "yes" is user root, group root the owner of the file?

3. Do you see an entry in \etc\modules.conf something like:
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=5

If you want to start over again, try this excerpt from an archived version of a document by Osamu Aoki <debian@aokiconsulting.com> (sorry couldn't find a current version available)

3.6. Printer configuration
--------------------------

For the `lpr'/`lpd' type spoolers (`lpr', `lprng', and `gnulpr'), set up `/etc/printcap' as follows if they are connected to postscript or text only printer (basics):

<lp>|<alias>:\
:sd=/var/spool/lpd/<lp>:\
:mx#0:\
:sh:\
:lp=/dev/lp0:

Meaning of above lines:
* Head line: <lp> --- name of spool, <alias> = alias
* mx#0 --- max file size unlimited
* sh --- suppress printing of burst page header
* lp=/dev/lp0 --- local printer device, or port@host for remote

Following set up will enable `gs' to convert postscript to the printer compatible data stream for the non-postscript printer:

<lp0>|<alias>:\
:sd=/var/spool/lpd/<lp0>:\
:mx#0:\
:sh:\
:lp=/dev/lp0:\
:if=/usr/bin/gs -q -sDEVICE=<lips3> -r<300x300> \
-sPAPERSIZE=letter -sOutputFile=-:

Meaning of above is:
* Head line: <lp0> --- name of spool, <alias0> = alias
* mx#0 --- max file size unlimited
* sh --- suppress printing of burst page header
* lp=/dev/lp0 --- local printer device, or port@host for remote
* if=... --- input filter which does accounting, use <lips3>
driver.
* of=... --- output filter
# apt-get install gnulpr

If Windows machines use printer through Samba, they can access it without filtering through a native Windows printer driver or with `gs' filtering on Linux by selecting postscript printer drivers such as Apple LaserWriter on Windows machine side.

There are many auto configuration tools provided for setting up
`/etc/printcap'. Combination can be:
* `lpr' and `apsfilter'
* `lprng' and `lprngtool'
* `gnulpr' (`lpr-ppd') and `printtool'
* `lpr' and `magicfilter'
* `lprng' and `magicfilter'
 
Old 09-04-2002, 01:13 PM   #3
Xreagan
Member
 
Registered: Aug 2002
Posts: 42

Original Poster
Rep: Reputation: 15
Wow;

Thanks for the info. In this case, I got parallel port fixed by changing BIOS configuratiion to EPP instead of ECP. Then I used lprngtool to configure printer. Works great now.

thanks
 
  


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 and Parallel port dancar Linux - Hardware 4 04-30-2006 09:43 AM
Can't find parallel port /printer Richard Perry Linux - Hardware 1 03-04-2005 07:33 PM
Parallel port printer dtcamargo Linux - Hardware 4 10-31-2004 10:11 PM
USB-parallel port printer Devenpillay Linux - Laptop and Netbook 1 09-07-2004 09:26 AM
Parallel Port issues (not printer) MightyCranium Linux - Newbie 3 12-08-2003 07:55 PM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
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