Printing from Unix to Printer on PC

D

Dan

I have windows XP with a printer attached to a UPC port. It is the default
printer for this PC and is on a network with an AIX server.

I am trying to setup a print queue on the AIX server to print to my Printer
connected to my PC.

I have installed Print Services for Unix from Add/Rem
programs/ windows components. Then made sure that TCP/IP Print server was
started and set to Automatic. Is that all that is needed here?

The printer on my PC is named BrotherH and is shared as BrotherH.

I then went on my unix box:
Added my computer to the hosts file (tested with ping)
Set up printer to print to a remote host. In setup I named the queue TEST
and put the name of my computer (the one I put in the hosts file) into the
Host field and put BrotherH in the "Name of the QUEUE on the remote server
field. I then selected BSD for the "Type of print spooler on the remote
server. Is BSD correct? The other opions are System V, AIX 3 or 4 and AIX 2.

Is this correct or am I missing something? I'm thinking there is something
else I have to do on the PC but can't remember.

Dan
 
A

Alan Morris\(MSFT\)

If you have the firewall enabled on XP you will need to setup an Exception
for the Print Service for Unix (lpd). LPD listens for incoming jobs on TCP
Port 515.
I do not quite understand how the printer is connected to the PC.

I think the BSD selection would be the correct option in Unix

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

Dan

The printer is connected to the USB port on the PC. I turned off Microsoft
firewall on the Network interface (which is wireless) it is connecting to a
Linksys router then to my ISP's Cisco router. Do routers, in general, not
listen on port 515?

Dan
Alan Morris(MSFT) said:
If you have the firewall enabled on XP you will need to setup an Exception
for the Print Service for Unix (lpd). LPD listens for incoming jobs on TCP
Port 515.
I do not quite understand how the printer is connected to the PC.

I think the BSD selection would be the correct option in Unix

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Dan said:
I have windows XP with a printer attached to a UPC port. It is the default
printer for this PC and is on a network with an AIX server.

I am trying to setup a print queue on the AIX server to print to my Printer
connected to my PC.

I have installed Print Services for Unix from Add/Rem
programs/ windows components. Then made sure that TCP/IP Print server was
started and set to Automatic. Is that all that is needed here?

The printer on my PC is named BrotherH and is shared as BrotherH.

I then went on my unix box:
Added my computer to the hosts file (tested with ping)
Set up printer to print to a remote host. In setup I named the queue TEST
and put the name of my computer (the one I put in the hosts file) into the
Host field and put BrotherH in the "Name of the QUEUE on the remote server
field. I then selected BSD for the "Type of print spooler on the remote
server. Is BSD correct? The other opions are System V, AIX 3 or 4 and
AIX
2.

Is this correct or am I missing something? I'm thinking there is something
else I have to do on the PC but can't remember.

Dan
 
Y

Yves Leclerc

NO! Routers listen to every port. However, firewalls only allows
"configured" ports to pass.


Dan said:
The printer is connected to the USB port on the PC. I turned off Microsoft
firewall on the Network interface (which is wireless) it is connecting to
a
Linksys router then to my ISP's Cisco router. Do routers, in general, not
listen on port 515?

Dan
Alan Morris(MSFT) said:
If you have the firewall enabled on XP you will need to setup an
Exception
for the Print Service for Unix (lpd). LPD listens for incoming jobs on TCP
Port 515.
I do not quite understand how the printer is connected to the PC.

I think the BSD selection would be the correct option in Unix

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Dan said:
I have windows XP with a printer attached to a UPC port. It is the default
printer for this PC and is on a network with an AIX server.

I am trying to setup a print queue on the AIX server to print to my Printer
connected to my PC.

I have installed Print Services for Unix from Add/Rem
programs/ windows components. Then made sure that TCP/IP Print server was
started and set to Automatic. Is that all that is needed here?

The printer on my PC is named BrotherH and is shared as BrotherH.

I then went on my unix box:
Added my computer to the hosts file (tested with ping)
Set up printer to print to a remote host. In setup I named the queue TEST
and put the name of my computer (the one I put in the hosts file) into the
Host field and put BrotherH in the "Name of the QUEUE on the remote server
field. I then selected BSD for the "Type of print spooler on the
remote
server. Is BSD correct? The other opions are System V, AIX 3 or 4 and
AIX
2.

Is this correct or am I missing something? I'm thinking there is something
else I have to do on the PC but can't remember.

Dan
 
D

Dan

OK, I'm testing internally so there is no routers. I can see that the job
leaves the unix machine but still never prints on My PC. In that I mean
that I send a job, unix give me a job number, I do an 'lpstat' and see the
job in the queue. Do lpstat again and it is gone and the queue is still up.

Is there a service or command that I can do to see if the job is getting to
my PC?
I have looked at the Event Viewer but can't see anything there.

Dan

Yves Leclerc said:
NO! Routers listen to every port. However, firewalls only allows
"configured" ports to pass.


Dan said:
The printer is connected to the USB port on the PC. I turned off Microsoft
firewall on the Network interface (which is wireless) it is connecting to
a
Linksys router then to my ISP's Cisco router. Do routers, in general, not
listen on port 515?

Dan
Alan Morris(MSFT) said:
If you have the firewall enabled on XP you will need to setup an
Exception
for the Print Service for Unix (lpd). LPD listens for incoming jobs on TCP
Port 515.
I do not quite understand how the printer is connected to the PC.

I think the BSD selection would be the correct option in Unix

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

I have windows XP with a printer attached to a UPC port. It is the
default
printer for this PC and is on a network with an AIX server.

I am trying to setup a print queue on the AIX server to print to my
Printer
connected to my PC.

I have installed Print Services for Unix from Add/Rem
programs/ windows components. Then made sure that TCP/IP Print
server
was
started and set to Automatic. Is that all that is needed here?

The printer on my PC is named BrotherH and is shared as BrotherH.

I then went on my unix box:
Added my computer to the hosts file (tested with ping)
Set up printer to print to a remote host. In setup I named the queue TEST
and put the name of my computer (the one I put in the hosts file)
into
the
Host field and put BrotherH in the "Name of the QUEUE on the remote server
field. I then selected BSD for the "Type of print spooler on the
remote
server. Is BSD correct? The other opions are System V, AIX 3 or 4 and AIX
2.

Is this correct or am I missing something? I'm thinking there is something
else I have to do on the PC but can't remember.

Dan
 
A

Alan Morris\(MSFT\)

The LPD service looks for formating characters in the data stream. The
default is text so if the printer is not PCL the job will be abandoned
unless the sender tells LPD to take the binary data. There are several KB
on the MS website on configuring LPD. The only way is through the registry.

lpr /?
Sends a print job to a network printer
Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d]
filename
Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text
file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first

This setting can also be accomplished on the service by enabling passthru on
the printer


http://support.microsoft.com/default.aspx?scid=kb;en-us;324078
HOW TO: Install and Configure Print Services for UNIX

This KB article explains how to set the LPD Service on ALL the printers
http://support.microsoft.com/default.aspx?scid=kb;en-us;150930
LPD Server Adds and Prints Control Codes


This KB article explains how to set an individual printer
http://support.microsoft.com/default.aspx?scid=kb;en-us;168457
Configuring Individual Printers to Passthrough LPR Print Jobs


--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

Dan said:
OK, I'm testing internally so there is no routers. I can see that the job
leaves the unix machine but still never prints on My PC. In that I mean
that I send a job, unix give me a job number, I do an 'lpstat' and see the
job in the queue. Do lpstat again and it is gone and the queue is still up.

Is there a service or command that I can do to see if the job is getting to
my PC?
I have looked at the Event Viewer but can't see anything there.

Dan

Yves Leclerc said:
NO! Routers listen to every port. However, firewalls only allows
"configured" ports to pass.


Dan said:
The printer is connected to the USB port on the PC. I turned off Microsoft
firewall on the Network interface (which is wireless) it is connecting to
a
Linksys router then to my ISP's Cisco router. Do routers, in general, not
listen on port 515?

Dan
If you have the firewall enabled on XP you will need to setup an
Exception
for the Print Service for Unix (lpd). LPD listens for incoming jobs on
TCP
Port 515.
I do not quite understand how the printer is connected to the PC.

I think the BSD selection would be the correct option in Unix

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no
rights.

I have windows XP with a printer attached to a UPC port. It is the
default
printer for this PC and is on a network with an AIX server.

I am trying to setup a print queue on the AIX server to print to my
Printer
connected to my PC.

I have installed Print Services for Unix from Add/Rem
programs/ windows components. Then made sure that TCP/IP Print server
was
started and set to Automatic. Is that all that is needed here?

The printer on my PC is named BrotherH and is shared as BrotherH.

I then went on my unix box:
Added my computer to the hosts file (tested with ping)
Set up printer to print to a remote host. In setup I named the queue
TEST
and put the name of my computer (the one I put in the hosts file) into
the
Host field and put BrotherH in the "Name of the QUEUE on the remote
server
field. I then selected BSD for the "Type of print spooler on the
remote
server. Is BSD correct? The other opions are System V, AIX 3 or 4 and
AIX
2.

Is this correct or am I missing something? I'm thinking there is
something
else I have to do on the PC but can't remember.

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top