1 |
On 2/10/2021 4:30 AM, Michael wrote: |
2 |
> On Tuesday, 9 February 2021 19:23:41 GMT you wrote: |
3 |
>> On 2/9/2021 3:20 AM, Michael wrote: |
4 |
>>>> Actually tried that. Got LPD installed, sent a test page. Test page |
5 |
>>>> appeared in the Windows Queue, then disappeared without any |
6 |
>>>> acknowledgement from the printer. |
7 |
>>> This would need some troubleshooting/configuring on the Windows end. It's |
8 |
>>> a long time ago I tried this and don't recall what I had configured to |
9 |
>>> allow clients to print via the Windows PC. It was relatively simple and |
10 |
>>> lightweight though, unlike Samba which I wouldn't bother with just for |
11 |
>>> printing. |
12 |
>> If it was JUST for printing I'd agree. But the whole samba setup is for |
13 |
>> more than that. There's also file sharing (since Windows 10 home doesn't |
14 |
>> support NFS), central authentication, things like that. |
15 |
> Ah! Fair enough. Since Samba is running you might as well use it for |
16 |
> printing. |
17 |
> |
18 |
Seems that way to me. L) |
19 |
>>>> I finally got it working in samba mode |
20 |
>>>> so I'm good with that. And that, again, would skip the whole point of |
21 |
>>>> having a central print server. :) |
22 |
>>> Not really. Athena would remain the CUPS server for itself and any Linux |
23 |
>>> or additional OS clients, sending jobs over IPP:// to the Windows print |
24 |
>>> server running on the Windows PC. |
25 |
>> Okay, I could see that one. Although I'm totally lost when it comes to |
26 |
>> IPP. I've looked but apparently my google-fu is still weak because I |
27 |
>> can't find any good documentation on how to setup IPP, how to format the |
28 |
>> URLs, etc.... |
29 |
> I have found IPP to be straight forward, simpler than other set ups and |
30 |
> provided by most (all?) printers on port 631. Setting it up is explained in |
31 |
> this section: |
32 |
> |
33 |
> https://wiki.gentoo.org/wiki/Printing#Installing_the_printer |
34 |
> |
35 |
> Something like 'ipp://192.168.10.2/ipp' should work - your printer's manual |
36 |
> would confirm what it accepts. Anyway, this is not what you're after in your |
37 |
> use case. |
38 |
> |
39 |
|
40 |
Yea, but due to the funky setup I have here, sending via IPP isn't going |
41 |
to be an option. I tried that last night, and it completely refused to |
42 |
work. So now I'm trying to go back to the Samba configuration. |
43 |
|
44 |
> |
45 |
> OK, I just tested it here. I ticked to share *both* the CUPS server and a |
46 |
> laser printer. The server setting is on the right hand side of the |
47 |
> Administration page on the GUI and the printer on the left of the page. |
48 |
> |
49 |
> I observed the same result like you - although CUPS started listening on port |
50 |
> 631 for connections from LAN clients, the GUI continued to show "not shared". |
51 |
> |
52 |
> NOTE: I did not test printing a page from a client to see if the display on |
53 |
> the GUI changes to say "shared". It may be a real time indication of the |
54 |
> status of the printer - or it could indeed be a bug. |
55 |
"... For other systems to use the printer through IPP, explicit access |
56 |
to the |
57 |
> printer must be granted in the /etc/cups/cupsd.conf file. To share the printer |
58 |
> using SAMBA, this change is not needed." |
59 |
> |
60 |
> I note you're using CIDR notation for the LAN subnet, while the wiki is using |
61 |
> a "*" wildcard instead. I don't know if it makes a difference, but anyway |
62 |
> since you'll be using a Samba shared printer this should not be relevant. |
63 |
> |
64 |
> [snip ...] |
65 |
> |
66 |
>>> zSimilarly, check the "hosts allow" directive in the Samba configuration to |
67 |
>>> Again, I think you're misunderstood the problem. Forget Janus for a |
68 |
>>> second. Forget Samba for a minute. I create a pinter via the CUPS web |
69 |
>>> interface on Athena. When it shows the box to make it shared, I check |
70 |
>>> the box. When I finish and the printer status appears, it says "not |
71 |
>>> shared". Other machines and other protocols have not even come into play |
72 |
>>> yet. |
73 |
> I understood you were faced with two problems, really though, one only. |
74 |
> Printing from Janus doesn't work. Printing from the other PCs works as |
75 |
> intended. |
76 |
Kind of. More like printing from the windows host works, and printing |
77 |
from Athena works. Printing from anywhere else does not. |
78 |
> The "not shared" printer indication on CUPS GUI on Athena, should not be a |
79 |
> problem affecting Janus' ability to print - I expect it is irrelevant. The |
80 |
> Samba logs will hopefully indicate where the actual problem lies. |
81 |
> |
82 |
> This is how I understand the printing process ought to work in your use case: |
83 |
> |
84 |
> The Samba server, Athena, will use the MSWindows Network Printer identified as |
85 |
> "Windows Printer via SAMBA" in its CUPS GUI. |
86 |
> |
87 |
> Printing jobs will be submitted from Athena's CUPS to the MSWindows PC & its |
88 |
> attached printer, via the corresponding smb:// URI. CUPS which will use the |
89 |
> Samba server on Athena to authenticate and send the data for printing to the |
90 |
> MSWindows PC and its shared printer. |
91 |
> |
92 |
> The same process will need to be followed by Janus; i.e. the CUPS server on |
93 |
> Janus will have to use the same smb:// URI to submit the data to be printed to |
94 |
> Athena's Samba server and as long as authentication is successful Athena will |
95 |
> forward it to the Windows PC. |
96 |
> |
97 |
Forgive me, but if I use the SAME url, then it's not Athena acting as |
98 |
the print server, it's the windows client that the printer is hooked up |
99 |
to. I tried to use the LPD to print to Athena and have Athena print to |
100 |
the printer via Samba. That's where I was running into problems. I |
101 |
suppose I can try IPP. I don't know of a smb:// url would work goinf |
102 |
from Janus (or anyone else) to Athena. After all, the printer isn't |
103 |
connected to Athena. It's connected to the windows 10 home PC. I suppose |
104 |
IPP might work if I configure that. As far as listening on 631, Athena's |
105 |
cups was ALREADY listening on that port because that's where the web |
106 |
interface is. the url I use to manage the printers is |
107 |
https://athena:631. I guess that somehow Cups can tell the difference |
108 |
between https, http, and ipp all coming on the same port. |
109 |
> The Samba configuration on Athena will deal with the settings for sharing the |
110 |
> MSWindows printer. |
111 |
|
112 |
Okay, so basically you're saying that Athena would connect via |
113 |
smb://windows/<PRINTER> and that Janus or other computers would connect |
114 |
via smb://Athena/<PRINTER>? Okay, that may work. I'll have to do a bit |
115 |
of digging because Athena and Janus are actually connected to an AD |
116 |
Domain run by samba. In fact, Janus is the DC while Athena is the |
117 |
location of the files/printers to be shared in the domain. |
118 |
|
119 |
-- |
120 |
Dan Egli |
121 |
On my test server |