From: Todd on
On 01/29/2010 07:10 AM, cooch17(a)NOSPAMverizon.net wrote:
> Greetings -
>
> For the first time in 10+ years of using Linux, I decided to take one of
> my Linux machines (running CentOS 5.4) and configure it to be a print
> server, so that I can print from the net to it (typically, from a
> Windows machine printing to the machine I want to use as the print server).

Hi Cooch17,

I finally get to answer a question rather that just mooching
free advice from everyone else.

Yes, you can print from XP (or other Windows) to a Linux
CUPS server. I have about 100 XP machines printing to
CUPS on two servers at two different companies. I also
print this way at my office.

I also find printing directly to CUPS to be faster and
more stable.


1) make sure you can print through CUPS on your server.

2) make sure you add "cups-lpd" or this will not work.
In the Red Hat world (CentOS):

yum install cups-lpd

Make sure you have cups-lpd configured:

Edit /etc/xinetd.d/cups-lpd:

# default: off
# description: Allow applications using the legacy lpd protocol
# to communicate with CUPS
service printer
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = lp
server = /usr/lib/cups/daemon/cups-lpd
}


And, reboot your computer. I have not found a way
around it. Don't be a purist. Just reboot.

3) configure lpr in XP:

Control Panel
add remove programs
Add/remove Windows Components (icon on left column)
select all of: Other Network File and Print Services

4) configure your ports in XP:

Printers and Faxes
File, Server properties
Ports tab
Add port
lpr port, new port
The address (top line) is the IP of your cups server
The name (second line) is the name of the printer in CUPS

5) make sure your server's firewall has LPD/LPR open. (I do
believe it is port 515 -- line printer spooler)

It will never work the first time, but keep at it.
It is a fun project.

HTH,
-T



From: Robert Heller on
At Sat, 30 Jan 2010 16:48:18 -0800 Todd <todd(a)invalid.com> wrote:

>
> On 01/29/2010 07:10 AM, cooch17(a)NOSPAMverizon.net wrote:
> > Greetings -
> >
> > For the first time in 10+ years of using Linux, I decided to take one of
> > my Linux machines (running CentOS 5.4) and configure it to be a print
> > server, so that I can print from the net to it (typically, from a
> > Windows machine printing to the machine I want to use as the print server).
>
> Hi Cooch17,
>
> I finally get to answer a question rather that just mooching
> free advice from everyone else.
>
> Yes, you can print from XP (or other Windows) to a Linux
> CUPS server. I have about 100 XP machines printing to
> CUPS on two servers at two different companies. I also
> print this way at my office.
>
> I also find printing directly to CUPS to be faster and
> more stable.
>
>
> 1) make sure you can print through CUPS on your server.
>
> 2) make sure you add "cups-lpd" or this will not work.
> In the Red Hat world (CentOS):
>
> yum install cups-lpd
>
> Make sure you have cups-lpd configured:
>
> Edit /etc/xinetd.d/cups-lpd:
>
> # default: off
> # description: Allow applications using the legacy lpd protocol
> # to communicate with CUPS
> service printer
> {
> disable = no
> socket_type = stream
> protocol = tcp
> wait = no
> user = lp
> server = /usr/lib/cups/daemon/cups-lpd
> }
>
>
> And, reboot your computer. I have not found a way
> around it. Don't be a purist. Just reboot.

Have you tried '/sbin/service xinetd restart' That *should* do it.

>
> 3) configure lpr in XP:
>
> Control Panel
> add remove programs
> Add/remove Windows Components (icon on left column)
> select all of: Other Network File and Print Services
>
> 4) configure your ports in XP:
>
> Printers and Faxes
> File, Server properties
> Ports tab
> Add port
> lpr port, new port
> The address (top line) is the IP of your cups server
> The name (second line) is the name of the printer in CUPS
>
> 5) make sure your server's firewall has LPD/LPR open. (I do
> believe it is port 515 -- line printer spooler)
>
> It will never work the first time, but keep at it.
> It is a fun project.
>
> HTH,
> -T
>
>
>
>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Download the Model Railroad System
http://www.deepsoft.com/ -- Binaries for Linux and MS-Windows
heller(a)deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/

From: David W. Hodgins on

> Edit /etc/xinetd.d/cups-lpd:
>
> # default: off
> # description: Allow applications using the legacy lpd protocol
> # to communicate with CUPS
> service printer
> {
> disable = no
> socket_type = stream
> protocol = tcp
> wait = no
> user = lp
> server = /usr/lib/cups/daemon/cups-lpd
> }
>
>
> And, reboot your computer. I have not found a way
> around it. Don't be a purist. Just reboot.

Just run "service cups-lpd start" to get xinetd to reload it's
configuration files.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
From: unruh on
>
>> Edit /etc/xinetd.d/cups-lpd:
>>
>> # default: off
>> # description: Allow applications using the legacy lpd protocol
>> # to communicate with CUPS
>> service printer
>> {
>> disable = no
>> socket_type = stream
>> protocol = tcp
>> wait = no
>> user = lp
>> server = /usr/lib/cups/daemon/cups-lpd
>> }
>>
>>
>> And, reboot your computer. I have not found a way
>> around it. Don't be a purist. Just reboot.

Sorry, why reboot? Just restart xinetd (service xinetd restart), or even just do
killall -1 xinetd

From: Chris Davies on
cooch17(a)nospamverizon.net wrote:
> I'm starting to wonder if the XP wizard itself is broken - at least on
> the machine I'm using. I'll try with another machine, and will report back.

Ramp up the log level in CUPS on the server (edit the file
/etc/cups/cupsd.conf and change the LogLevel value to "debug", then
restart cups), and tail the CUPS logfiles, /var/log/cups/*.log. Look
for error messages relating to connections being refused when you try to
add the printer from your XP system. Actually, look for anything at all.

Chris