RE: Printing to a Win XP LPD Server from FreeBSD 5.4

2005-09-22 Thread Ted Mittelstaedt

Why are you wasting your time when you can buy USB or parallel port
hardware print servers so cheap and print to the print server from both
XP and BSD.  The electricity you save by not having to turn on
the XP system when you want to print should be more than enough
to pay for the server in a year.

Ted

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of aksis
Sent: Tuesday, September 20, 2005 5:24 PM
To: freebsd-questions@freebsd.org
Subject: Printing to a Win XP LPD Server from FreeBSD 5.4


Hi,

I am having a problem printing to a WinXP (home edition) LPD
Server. The
command:

lptest | lpr -P lp-test

print's to the printer successfuly.

lpr -P lp test.ps

doesn't print anything, but it is sending to the server (see below).

I have tried cups. I have the exact ppd file (ML-1740spl2.ppd)
for the samsung ML-1740 printer, and on the web admin page it shows the
printer is idle and accepting jobs, the jobs get sent, and it
even sounds
like its getting ready to print.. yet nothing gets printed. :-(

Also kprint (the goal of the whole thing) won't print anything,
not even using
the working 'lp-test' printcap entry. Nor do any of the test
printer pages
get printed, though they are getting spooled on the XP server.

I spent 20+ hours yesterday trying to get this working, but am
in need of some
guidance on this.

Is anyone successfuly printing to a XP LPD server?

No I can't hang the printer off the freebsd box. I wish

Here is the system info (if more is need let me know):

FreeBSD 5.4-RELEASE-p7 #1: Fri Sep 16 21:17:44 MST 2005

 /etc/printcap ##
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
lp|PSgs;r=600x600;q=high;c=gray;p=letter;m=auto:\
:lp=:\
:rm=10.0.0.80:\
:rp=printer:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this

# working entry
lp-test:\
:sh:\
:rm=10.0.0.80:\
:rp=printer:\
:sd=/var/spool/output/10.0.0.80:\
:lf=/var/log/lpd-errs:

### command output 

[EMAIL PROTECTED]:~/Desktop]:$ lpr test.ps
[EMAIL PROTECTED]:~/Desktop]:$ lpq
vaio.idea-anvil.net: sending to 10.0.0.80
Rank   Owner  Job  Files Total Size
1staksis  15   test.ps   57293 bytes


 Windows XP LPD Server
  Printer \\10.0.0.80\printer

Owner   Status Jobname  Job-IdSize
Pages  Priority


[EMAIL PROTECTED]:~/Desktop]:$ lpq

 Windows XP LPD Server
  Printer \\10.0.0.80\printer

Owner   Status Jobname  Job-IdSize
Pages  Priority


aksis (10.0 Printing  test.ps 45   2663885  0  1

# end #

But nothing gets printed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.18/86 - Release Date:
8/31/2005


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Printing to a Win XP LPD Server from FreeBSD 5.4

2005-09-20 Thread Warren Block

On Tue, 20 Sep 2005, aksis wrote:


Hi,

I am having a problem printing to a WinXP (home edition) LPD Server. The
command:

lptest | lpr -P lp-test

print's to the printer successfuly.


According to your printcap file, this is an unfiltered queue.


lpr -P lp test.ps

doesn't print anything, but it is sending to the server (see below).


And lp is filtered through apsfilter.

This may result in your FreeBSD system translating the input file into 
whatever the printer expects, then sending it to the Windows system, 
which is also trying to translate it to what the printer expects.


I have little experience with using XP as an lpd server, but it's my 
impression that it will filter all input through whatever driver is 
defined for that printer.  If you want to do the translation on the 
FreeBSD system, use apsfilter and set the driver on the XP system to... 
whatever XP calls the raw, untranslated, leave it alone driver.


Or send the untranslated output from the FreeBSD system and let XP 
translate it through the driver.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]