LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-18-2018, 02:01 PM   #1
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Ubuntu
Posts: 62

Rep: Reputation: 18
Linux print server for Windows 10 clients


Our setup is this:

around 7000 Windows 10 clients connected to Azure cloud (education license, since they are schools)

One print server, running EveryonePrint, to get around the CAL licence requirement for connecting to a Windows print server.

No local domain, all our on-premise servers are standalone.

My thought was, to setup a CUPS Linux box, and serve all printers from there.
This has been troublesome, as I can't seem to make the drivers available for auto-install to the Windows clients.

So my question is this:
Is there anyone out there, that has a working setup with a Linux CUPS/Samba server, servicing Windows clients, and has an easy method of setting up printers and drivers on that server?

I have found some pages that indicates that I might be able to connect to the print server (CUPS) via Windows Print server console, but that is only if the whole setup is local AD and I have a domain admin or likewise to login to the Linux box.

I am aiming to setup this in a workgroup-only environment, so any hints are welcome.

Our network setup is one school, one subnet, with no broadcast. Layer 2 switches between locations. But servers (on their own subnet) are accessable from every subnet.
We have the possibility to add Cisco network helper setup to aid in broadcasts on specific ports, but I'm not sure if that will be of any help.

Last edited by SciFi-Bob; 10-18-2018 at 02:13 PM.
 
Old 10-18-2018, 04:40 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
This post talks about how to do it. I tested it back in January on Windows 7 to RHEL7 CUPS print server and it worked.

The only thing I did differently than he wrote is I did NOT add my CUPS print server to Windows hosts file as my server is in DNS (as seen from the Windows server - see my post at the bottom of that thread).

This ought to work on Windows 10 but I don't have one to test from at the moment.

The Windows Wizard does prompt for Manufacture etc... but often you can use generic models.
 
Old 10-18-2018, 05:56 PM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
I have always found the Samba documentation to be the best source of information.
 
Old 10-19-2018, 08:12 AM   #4
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Ubuntu
Posts: 62

Original Poster
Rep: Reputation: 18
This does not solve my problem.

I need to connect Windows 10/Server 2016 Print Manager to a Samba server, to be able to add printer drivers using the Windows GUI.
This is not possible without having some kind of common authentication, like Active Directory, since the Windows computer running Print Manager are unable to authenticate to a standalone computer.

I'm testing a Samba AD setup this weekend, and will post back how it goes.

My main problem is that I cannot install a MS AD on the network due to the license cost.
Maybe a Samba AD will do it, we'll see.

Also, adding drivers to CUPS/Samba is too difficult using Linux command line tools. I may be able to do it for a couple of printers, but we have close to 100, with different drivers.
And more is coming all the time.
 
Old 10-19-2018, 08:43 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by SciFi-Bob View Post
This does not solve my problem.
My response was based on you saying:
Quote:
My thought was, to setup a CUPS Linux box, and serve all printers from there.
That doesn't require any Samba or AD setup for printing. Just CUPS setup at the Linux server and adding the printers at the workstations. It would of course require setting up your multiple printers on the CUPS server but only require setup of the printers at workstations that are used by the local users.

For going the Samba route instead perhaps allend's post would be a good start.

It isn't clear to me why you think going the AD/Samba route would entail less setup. At some point you have to define all the printers somewhere no matter what you use. We've used Windows print servers, Linux with CUPS print servers and Printer logix which doesn't really spool but all 3 methods require defining all the printers somewhere central then configuring less locally on the individual Windows workstations/laptops.

Most places I've been have printers defined both in UNIX or Linux and in a central Windows setup. The former for use from server applications (e.g. Oracle financials, SAP) and the latter for printing from local apps (e.g. Word, Excel).

The CUPS setup I posted would actually work for both purposes as proven by my test back in January. Since we already have the Print logix setup on Windows workstations/laptops I didn't bother to roll it out to those - just tested it to see if it could be used.
 
Old 10-19-2018, 09:37 AM   #6
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by SciFi-Bob View Post
.....
My main problem is that I cannot install a MS AD on the network due to the license cost.

Also, adding drivers to CUPS/Samba is too difficult using Linux command line tools. I may be able to do it for a couple of printers, but we have close to 100, with different drivers.
And more is coming all the time.
At what stage cost is compared of adding AD on prim with doing all this work (time spent of employee(s)) to add 100s of printers in this method? I do not know how much setting up AD costs, but sure someone in your org can figure this out?
 
Old 10-19-2018, 12:49 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by dc.901 View Post
At what stage cost is compared of adding AD on prim with doing all this work (time spent of employee(s)) to add 100s of printers in this method? I do not know how much setting up AD costs, but sure someone in your org can figure this out?
You'd be surprised at how many organizations don't actually calculate ROI or TCO when planning IT changes as opposed to the ephemeral "cost" they see in writing a check. Does it "cost" them $10,000 to write that check? If so they balk. The fact that they'll then use up $25,000 of labor to work around writing the check never occurs to them. At that point they'll then start complaining that nothing else is getting done because of all the labor dedicated to the project that wouldn't have been necessary if they'd written the check.

There are times when one can't write the check due to cash flow concerns and that should be the decision made but if so then a realization of the opportunity cost lost by tying up labor should be expected. However, most companies simply try to be cheap when it comes to writing checks and think that somehow they have unlimited hours from salaried employees.

All of that says nothing about the fact that many IT projects that would result in writing a check can be capitalized so the "cost" is amortized or depreciated over a period of years.
 
Old 10-23-2018, 10:35 AM   #8
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Ubuntu
Posts: 62

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by MensaWater View Post
There are times when one can't write the check due to cash flow concerns and that should be the decision made but if so then a realization of the opportunity cost lost by tying up labor should be expected.
That's what is my problem.

If we have the cash, we could use Azure AD Premium, but that's not the case, and will never be, at least not in the next 4-6 years.

We are a municipality, and have had budget cut downs, so as much as I would like an on-premise AD (with the around 7000 CAL's needed), that's not going to happen.

Therefore I'm looking for a cheap way of making a print server available to all our schools without needing to pay the beast (Microsoft) for the CAL's they require for this.

One can say that MS Print CAL licensing should have been ditched back in the 90's, but it's still part of their main income.
One way to prove that, is that they demand a Premium Azure AD license to be able to sync our users/passwords back to a local premise server.

Therefore I'm stuck with a (very cheap) print solution that works most of the time, but are so buggy that I had to create a "restart 4 services including the print spooler" two times a day to minimize support calls.

But, I guess I just have to get used to swallow camels.
 
Old 10-23-2018, 10:47 AM   #9
SciFi-Bob
Member
 
Registered: Aug 2008
Location: Denmark
Distribution: Ubuntu
Posts: 62

Original Poster
Rep: Reputation: 18
I am a step further to a possible solution, but it includes AD, and therefore I'm testing Samba AD right now.

As an AD with Windows clients it works fine, but I still have to get the Cups/AD thing to work.

I gave up on trying to replicate our Azure AD to the Samba AD server. That's obviously not what MS want to be possible.

So I'm going to try to maintain some Samba domain groups to at least limit printing within a school's subnet.

I will update this thread when I get some results.
This takes some time to test, as I test in my home lab, and then replicate it to some production test servers.

Samba AD is not that easy to get to work with newer Windows admin tools, so I need 4.8 to get it to work.
Currently trying a ppa with 4.8.5.
 
  


Reply

Tags
cups, print, samba, workgroup



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a Print server for Windows clients. jokar.mohsen Linux - Server 10 12-27-2014 08:29 AM
Linux Print Server with Windows Clients Echo Kilo Linux - Networking 3 02-01-2007 09:45 AM
What's the best distro for a home file/print server w/ windows clients rcarroll215 Linux - Distributions 2 01-24-2007 11:12 AM
Linux Print Server for Windows Clients ericpolanco Linux - Wireless Networking 2 02-24-2005 11:57 AM
Linux Print Server for Windows Clients ericpolanco Linux - Networking 1 02-23-2005 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration