LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > ted_chou12
User Name
Password

Notices

Rate this Entry

parallel port with cups (LPT)

Posted 10-16-2012 at 05:07 AM by ted_chou12

Hi, I am tired of USB port so I went ahead and tried to use a parallel port to connect my printer:
First check if the lp mod is added:
Code:
lsmod | grep par
if not:
Code:
parport_pc 22292 1
parport 29012 2 parport_pc,lp
Then do:
Code:
modprobe lp
Make sure you add this to /etc/rc.d/rc.local, to ensure the code runs everytime during boot.
Now check again:
Code:
lsmod | grep par
"lp" should now already be displayed.
Verify your printer installed:
Code:
ted:$ dmesg | grep -i printer
[   13.248984] parport0: Printer, Samsung ML-2510 Series
ted:$ cat /proc/sys/dev/parport/parport*/autoprobe*
CLASS:PRINTER;
MODEL:ML-2510 Series;
MANUFACTURER:Samsung;
COMMAND SET:GDI;
now go to CUPS web gui, administration>Find New Printers, your printer model should be right there waiting for you.

http://vanilla.slitaz.org/index.php?...ted-in-cups/p1

Quote:
My experience installing a Deskjet 540 to SliTaz 2.0

All xterm commands are done as root user.

The kernel modules for the parallel port must be loaded at bootup.

Verify parallel port modules are loaded

lsmod | grep par

No modules are loaded so lets go to:

Menu/System Tools/Control Box/Initialization tab

Add the following to Load Modules: lp parport parport_pc

Click the Change button, exit, shutdown,printer attached,turned on,reboot

Verify parallel port modules are loaded

lsmod | grep par

parport_pc 22292 1

parport 29012 2 parport_pc,lp

Verify printer is recognized by kernel

dmesg | grep -i printer

parport0: Printer, HEWLETT-PACKARD DESKJET 540

cat /proc/sys/dev/parport/parport*/autoprobe*

CLASS:PRINTER;

MODELESKJET 540;

MANUFACTURER:HEWLETT-PACKARD;

DESCRIPTION:Hewlett-Packard DeskJet 540;

COMMAND SET:MLC,PCL,PML;

The printer is recognized but no Cups LPT# Device.

E [13/Jan/2010:05:37:46 +0000] [Job 4] Unable to open device file "/dev/lp0": Permission denied

E [13/Jan/2010:05:37:46 +0000] PID 1594 (/usr/lib/cups/backend/parallel) stopped with status 1!

So parallel doesn't have proper permissions to access /dev/lp0

chmod 0700 /usr/lib/cups/backend/parallel

reboot

lpinfo -v

network socket

network http

network ipp

network lpd

direct parallel:/dev/lp0

direct scsi

Cups Printer Setup Device: LPT #1
Posted in Uncategorized
Views 1695 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



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