OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Help with lpd and XP

From: Greg Thomas (get.listsgmail.com)
Date: Fri Dec 02 2005 - 02:12:27 CST


Additional info. With this printcap on my OpenBSD laptop printing works fine:

ethantcorn:/home/ethant# cat /etc/printcap
rp|remote line printer:\
:sf:sh:lp=:rm=grits:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

So it appears to be an XP issue. Any suggestions for XP?

Greg

On 12/1/05, Greg Thomas <get.listsgmail.com> wrote:
> Ok, I decided to switch from using a little Linksys 802.11b parallel
> print server to using my OpenBSD box for printing to my one printer.
> Printing locally works fine but I'm having trouble printing from XP.
>
> ethantgrits:/home/ethant# cat /etc/printcap
> # $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $
> #
> lp|:\
> :sh:sf:lp=/dev/lpt0:sd=/var/spool/output:lf=/var/log/lpd-errs:
>
> ethantgrits:/home/ethant# lpq
> Warning: no daemon present
> Rank Owner Job Files Total Size
> 1st ethant 9 Test Page 0 bytes
>
> ethantgrits:/home/ethant# ps waux |grep lpd
> daemon 7435 0.0 0.9 180 556 ?? Ss 10:22PM 0:00.03 /usr/sbin/lpd
>
> ethantgrits:/home/ethant# sudo lprm 9
> cannot dequeue dfA009LOCUST
> cfA009locust.2fortheroad.net dequeued
>
> And I get a bunch of these in /var/log/lpd-errs until I rm everything
> in /var/spool/output:
>
> Dec 1 22:31:06 grits lpd[15269]: locust.2fortheroad.net
> Dec 1 22:31:06 grits lpd[15269]: link tfA009locust.2fortheroad.net
> cfA009locust.2fortheroad.net: File exists
> Dec 1 22:31:14 grits lpd[5050]: locust.2fortheroad.net
> Dec 1 22:31:14 grits lpd[5050]: link tfA009locust.2fortheroad.net
> cfA009locust.2fortheroad.net: File exists
> Dec 1 22:31:22 grits lpd[21910]: locust.2fortheroad.net
> Dec 1 22:31:22 grits lpd[21910]: link tfA009locust.2fortheroad.net
> cfA009locust.2fortheroad.net: File exists
> Dec 1 22:31:30 grits lpd[17060]: locust.2fortheroad.net
> Dec 1 22:31:30 grits lpd[17060]: link tfA009locust.2fortheroad.net
> cfA009locust.2fortheroad.net: File exists
> Dec 1 22:31:38 grits lpd[23270]: locust.2fortheroad.net
> Dec 1 22:31:38 grits lpd[23270]: link tfA009locust.2fortheroad.net
> cfA009locust.2fortheroad.net: File exists
>
> I saw a similar message on misc back in August but no resolution.
> What am I doing wrong?
>
> Thanks,
> Greg
>
> OpenBSD 3.7 (GENERIC) #0: Thu Jul 14 17:59:16 PDT 2005
> rootgrits1.2fortheroad.net:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III ("GenuineIntel" 686-class, 128KB L2 cache) 1 GHz
> cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM
> X,FXSR,SSE
> real mem = 65052672 (63528K)
> avail mem = 51933184 (50716K)
> using 819 buffers containing 3354624 bytes (3276K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(77) BIOS, date 01/03/02, BIOS32 rev. 0 0xfd7b0
> pcibios0 at bios0: rev 2.1 0xfd7b0/0x850
> pcibios0: PCI IRQ Routing Table rev 1.0 0xfdf40/160 (8 entries)
> pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #2 is the last bus
> bios0: ROM list: 0xc0000/0x8000 0xd0000/0x8000!
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82810E" rev 0x03
> vga1 at pci0 dev 1 function 0 "Intel 82810E Graphics" rev 0x03: aperture at 0xf8
> 000000, size 0x4000000
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ppb0 at pci0 dev 30 function 0 "Intel 82801AA Hub-to-PCI" rev 0x02
> pci1 at ppb0 bus 1
> ahc1 at pci1 dev 11 function 0 "Adaptec AHA-2940U" rev 0x01: irq 3
> scsibus0 at ahc1: 16 targets
> st0 at scsibus0 targ 4 lun 0: <WangDAT, Model 3400DX, 5.0j> SCSI2 1/sequential r
> emovable
> st0: drive empty or not ready
> cbb0 at pci1 dev 13 function 0 "Ricoh 5C475 CardBus" rev 0x81: irq 9
> xl0 at pci1 dev 14 function 0 "3Com 3c905B 100Base-TX" rev 0x00: irq 10, address
> 00:10:5a:02:3d:8f
> exphy0 at xl0 phy 24: 3Com internal media interface
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
> pcmcia0 at cardslot0
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801AA LPC" rev 0x02
> pciide0 at pci0 dev 31 function 1 "Intel 82801AA IDE" rev 0x02: DMA, channel 0 w
> ired to compatibility, channel 1 wired to compatibility
> wd0 at pciide0 channel 0 drive 0: <ST320410A>
> wd0: 16-sector PIO, LBA, 19092MB, 39102336 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> atapiscsi0 at pciide0 channel 1 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <SAMSUNG, CD-ROM SC-148, B100> SCSI0
> 5/cdrom removable
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 31 function 2 "Intel 82801AA USB" rev 0x02: irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> "Intel 82801AA SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
> auich0 at pci0 dev 31 function 5 "Intel 82801AA AC97" rev 0x02: irq 9, ICH AC97
> ac97: codec id 0x41445361 (Analog Devices AD1886)
> ac97: codec features headphone, Analog Devices Phat Stereo
> audio0 at auich0
> isa0 at ichpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
> mpu0 at isa0 port 0x300/2: generic MPU-401 compatible
> midi0 at mpu0: <MPU-401 MIDI UART>
> pcppi0 at isa0 port 0x61
> midi1 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> npx0 at isa0 port 0xf0/16: using exception 16
> pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom0: console
> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
> biomask fb6d netmask ff6d ttymask ffef
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> wi0 at pcmcia0 function 0 "INTERSIL, HFA384x/IEEE, Version 01.02" port 0xa000/64
> wi0: PRISM2.5 ISL3873, Firmware 1.1.1 (primary), 1.7.4 (station), address 00:02:
> 6f:08:0d:85
> uhub1 at uhub0 port 2
> uhub1: vendor 0x109f product 0x7148, class 9/0, rev 1.10/0.00, addr 2
> uhub1: 4 ports with 4 removable, self powered
> dkcsum: wd0 matched BIOS disk 80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302