Gentoo Archives: gentoo-desktop

From: Kevin O'Gorman <kogorman@×××××.com>
To: gentoo-desktop@l.g.o
Subject: Re: [gentoo-desktop] Network access to a CUPS printer
Date: Mon, 30 Jun 2008 15:28:49
Message-Id: 9acccfe50806300828g43ad5646r858134f7ce1fbb2d@mail.gmail.com
In Reply to: [gentoo-desktop] Network access to a CUPS printer by Lindsay Haisley
1 On Sat, Jun 28, 2008 at 7:50 PM, Lindsay Haisley <fmouse-gentoo@×××.com>
2 wrote:
3
4 > I have an ancient and venerable HP Deskjet 1120C connected to LPT1 on my
5 > desktop system running Gentoo. This printer is supported in CUPS, and
6 > works properly (except for minor Gnome weirdness) from apps on the
7 > immediate system - Firefox, OpenOffice, etc.
8 >
9 > I want to access this printer from other computers on our LAN, including
10 > the Windows XP Pro system hosted on the same box using VMware.
11 > According to
12 > <http://gentoo-wiki.com/Talk:HOWTO_Native_Windows_Printing_with_CUPS/Samba>
13 > I should be able to do this without involving samba, assuming I can direct
14 > printing requests to the proper URI. Both Windows and Linux support
15 > configuring printers this way, rather than as CIFS shares, and since I don't
16 > need to upload drivers to the printer (the original drivers won't work in
17 > XP) all I really need to do is connect to the printer over the LAN as a raw
18 > device and use client-side drivers.
19 >
20 > The documentation at
21 > <http://www.gentoo.org/doc/en/printing-howto.xml#remote_usage> suggests
22 > that I use one of the following for the printer URI on other systems:
23 >
24 > * "ipp://hostname/printers/printername" which in my case would be
25 > "ipp://vishnu.fmp.com/printers/hpdj_1120c (or I can substitute
26 > the LAN IP address for the hostname)
27 >
28 > * "http://hostname:631/ipp/queue" which appears to translate to
29 > "http://vishnu.fmp.com:631/ipp/queue" with no specification for
30 > the printer in the URI. Since the hpdj_1120c doesn't have a
31 > queue specified in cups, I assume this URI should be used
32 > literally.
33 >
34 > Neither of these works on our LAN-connected Windows boxes and the
35 > documentation I find on this is very sketchy. Windows doesn't
36 > understand the "ipp" URI scheme, apparently, and I'm missing something
37 > in second URI. Should I be substituting something for "queue"?
38 >
39 > Anyone done this who can help me?
40 >
41
42 I have a similar situation. A CUPS printer that is also serving my WinXP
43 system, without using Samba or a printer share. There's a feature on the XP
44 CDROM that you'll need. If you don't have that, then this approach won't
45 work.
46
47 You need WinXP Pro, I think, and must make CUPS export the LPT or LPD (I
48 forget the exact nomenclature) interface. It may already do this.
49 You're looking for "Print Services ro Unix", a feature that is not loaded by
50 default.
51
52 From page 616 of my copy of Minasi's "Mastering Win XP Pro":
53 1) Control Panel -> Network Connections
54 2) Advanced -> Optional Networking Components
55 3) Check Other Network Filan and Print Services; click Next
56 4) wait for install (CD must be mounted)
57
58 Then
59 1) Start -> Printers and Faxes
60 2) Printer Tasks - Add a Printer (gets to Add a Printer Wizard)
61 3) Local Printer Attached to This Computer; uncheck Automatically Detect
62 4) Click Create a new Port
63 type = LPR Port
64 Next
65 5) Name or Address of Server Providing lpd = DNS name or IP address of Linux
66 box; possibly 127.0.0.1
67 also the name of the print queue (mine is "lp0")
68 Next
69
70 That should do it.
71
72
73 --
74 Kevin O'Gorman, PhD