Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2013, 06:16 PM
|
#1
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,241
|
Slackware CUPS server - printing a document to multiple remote locations
Hi.
Disclaimer: I have no experience with CUPS printing.
I have set up a Slackware Samba server at the head office of a local family business, which so far has been used just to serve files. They have 12 branch offices, each of which runs a Windows system with a high-end, USB-connected Xerox PS or PCL printer. At head-office they have Windows computers and a network printer at 172.16.1.244. (Slackware is at 172.16.1.100)
I have OpenVPN up and running on the NetBSD firewall - I have it set up with bridging so that all clients (local and remote) get an address in the 172.16.1.0/24 range.
Using RDP the remote clients can open a file at head office and print to their own local printer. What I would like to do is set up CUPS on the Slackware server so that staff at head-office can send a print job to all the remote printers in one go. Is this possible? I understand this is not Slackware-specific but Googling has made my head spin, and the instructions I have read do not cater for the topology I have here, with mostly Windows clients and point-and-click Windows users.
To be more specific with my questions:
1) do I have to set up each remote printer as a shared printer on Windows first, and then add it to CUPS;
2) do I need to use Samba print sharing - one site suggested IPP as a better option;
3) would users need to open a terminal to Slackware to do this, or can I set up a virtual printer on CUPS which will multiplex a print job to each of the remote printers in one go (making this virtual printer available to the Windows computers at head-office through CUPS)?
Thank you.
Last edited by Gerard Lally; 11-02-2013 at 06:21 PM.
|
|
|
11-02-2013, 08:55 PM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,525
|
Quote:
1) do I have to set up each remote printer as a shared printer on Windows first, and then add it to CUPS
|
That would be my approach. I would add the printer as a raw print queue in CUPS.
Quote:
2) do I need to use Samba print sharing - one site suggested IPP as a better option
|
It is easiest to add the printers connected to Windows machines as SMB printers. You will likely need to include a valid username and password on the Windows system when setting up the connection.
Quote:
3) would users need to open a terminal to Slackware to do this, or can I set up a virtual printer on CUPS which will multiplex a print job to each of the remote printers in one go (making this virtual printer available to the Windows computers at head-office through CUPS)?
|
Setting up a print queue to print to all printers at once should work.
e.g. http://aplawrence.com/Unixart/dual_print.html
This link contains a reference to Tea4CUPS, which I have not used, but may be of interest.
http://serverfault.com/questions/278...inters-1-queue
|
|
|
11-03-2013, 07:29 PM
|
#3
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,241
Original Poster
|
Quote:
Originally Posted by allend
That would be my approach.
|
<reply snipped>
Thanks for your help. I've just spent an arduous day setting this up, and it seems as though I didn't really need CUPS at all. Since everybody is on a Windows client I just needed to share the remote printers on the clients. I then went back to the Windows server at head office and added each printer as a local printer with address //172.16.1.121/branchoffice1, //172.16.1.122/branchoffice2, //172.16.1.123/branchoffice3, and so on. I then set up a virtual printer on Win 2003 called "branches" and enabled Printer Pooling. Under Ports I ticked each printer port I need to print to - //172.16.1.121/branchoffice1, etc.
I have tested it through VNC on a couple of the remote branches and print jobs are completing without error but obviously I can't see whether the jobs are actually printing OK. That will come tomorrow when all hell breaks loose! Or not, fingers crossed!
I must add that the official CUPS documentation is absolutely awful for a beginner. I can't make head nor tail of it and hopefully I won't have to use CUPS for anything more complex than local printing.
Thank you again for your help.
|
|
|
11-04-2013, 12:58 PM
|
#4
|
Senior Member
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,241
Original Poster
|
Well it seems I spoke too soon. Windows printer pooling just means a print job is sent to the first available printer from a pool of identical printers. Microsoft's documentation was none too clear about this, either.
Back to CUPS and Samba then. Shudder. Have no idea where to start.
|
|
|
All times are GMT -5. The time now is 03:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|