LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-15-2014, 04:46 AM   #1
blackRonin
Member
 
Registered: Jun 2014
Distribution: CentOS 6.5
Posts: 67

Rep: Reputation: Disabled
Managing printers in print server cups


Hello

In home i have few computers with Windows systems (7 and 8) and one pc centos 6.5, and i want to create print server (cups) which will manage all my printers connected to Windows systems.

I installed one printer as a backup on Centos , and shared it to other windows systems.
Which working greate ( i see logs, what was printed etc)

But when i shared windows printers to centos it's not so greate.
Printting to windows working fine, but durring printing software ask me to type a password.
When i do not type password, pages are printing, but in logs i see "Session setup faile: "NT_STATUS_LOGON_FAILURE".
(In Windows, Homegroup settings, i disabled sharing protected by password)

Another problem is when i'm printing from windows to windows, i don't see logs in cups web gui.

Also I want if windows printers will be disabled or not working, print jobs will be moved to centos printer.

I tried move all jobs to centos printer, and then print from windows, but it still printing to windows printer, not centos.
Then i tried Reject jobs, and move to another (centos) printer. But still not working.


Please help
 
Old 08-15-2014, 08:12 AM   #2
casualfred
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Slackware
Posts: 96

Rep: Reputation: 26
So, let me see if I understand your setup.

Printer 1: connected to a CentOS machine and managed by CUPS. Windows machines print to it without a problem. CentOS prints to it without a problem.

Printer 2: connected to a Windows machine and managed by the Windows print server. Windows machines print to it without a problem. CentOS will print to it, but it asks for a password.

If your goal is to have CUPS manage all your printers, you should connect all your printers to your CentOS machine.
 
Old 08-15-2014, 09:50 AM   #3
blackRonin
Member
 
Registered: Jun 2014
Distribution: CentOS 6.5
Posts: 67

Original Poster
Rep: Reputation: Disabled
Yes, that is correct.
Linux can print to windows printer without typping password , but then there is error "NT_STATUS_LOGON_FAILURE" in logs.

I can't connect all printers to Centos machine, because printers are connected to PCs in different rooms.

I tried just now classes.
I created cups class and added windows and linux printers.

And it working fine.
When i printing from linux to that class, print job is send to default centos printer
but, when i turn off that printer, and try again, print job is send to windows printer.

I'm wondering how do the same in windows (print to that class instead of specific windows printer).
 
Old 08-15-2014, 10:32 AM   #4
casualfred
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Slackware
Posts: 96

Rep: Reputation: 26
Aha, you could set up the Windows computers to print to that class you created in CUPS on the CentOS box.

I think the setup for printing to a class is the same as printing to a printer from Windows' perspective.

On Windows, you would add a network printer like normal, but for the network address you would put:
Code:
http://<CentOS IP address>:631/classes/<class name>
replacing, of course, <CentOS IP address> with the IP address (or host name if Windows knows what it is) and <class name> with the name of the class you used in CUPS.
 
Old 08-15-2014, 11:13 AM   #5
blackRonin
Member
 
Registered: Jun 2014
Distribution: CentOS 6.5
Posts: 67

Original Poster
Rep: Reputation: Disabled
I don't know which driver choose in windows as i have diffrent types of printers (hp ink, and samsung laser).
For now i choosen generic - generic text only.

But bigger problem is with printing to right printer.

When i'm sending print job to that class, it's printed on centos printer.
When i turn off centos printer, it's printed on windows printer (just what i wanted)

Purpose of that is, the windows clients print jobs to their own printers,
but when something will crash, then print jobs will redirect to centos printer.
 
Old 08-15-2014, 03:37 PM   #6
casualfred
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Slackware
Posts: 96

Rep: Reputation: 26
Okay, I think I know what would work. If you created a separate class for each computer, you can open /etc/cups/classes.conf and change the order the printers appear in the list for each of the classes. When it comes time to print to a class, CUPS will try the printer at the top of the list first and work its way down.

Here is a link that documents classes.conf:
https://www.cups.org/documentation.p...sses-conf.html

You will have to stop CUPS, edit the file, then start CUPS again.

I don't really know anything about drivers.
 
Old 08-16-2014, 09:28 AM   #7
blackRonin
Member
 
Registered: Jun 2014
Distribution: CentOS 6.5
Posts: 67

Original Poster
Rep: Reputation: Disabled
Thanks, that should work. I will test that, and tell later.

Btw. I have another guestion realated hplip (hp linux printer drivers)

I nstalled hplip 3.12.4 from repo with all deps.
yum install hplip

And i'm trying to find ppd file to my windows printer.
In settings cups web gui, under manufacture, and model i see my printer:
HP Deskjet Ink Advant K209a-z hpcups

But i can't find path to that ppd(.gz) file.
I searched in /usr/share/hplip
and /usr/share/ppd/HP

But there is no file to my printer there.
I downloaded sources with exact version number
http://sourceforge.net/projects/hpli.../hplip/3.12.4/

and there is folder
hplip-3.12.4/ppd/hpcups
with file hp-deskjet_ink_advant_k209a-z.ppd.gz

why i can't find it in linux fs, and i see it in web gui centos ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
instant print from pop3 mail server ie emulate ipad print to hp printers PDock Linux - Software 2 12-08-2010 03:45 PM
cups/samba print w/o passwd in printers.conf? jshaffer Linux - Networking 1 03-29-2010 06:26 AM
[SOLVED] Firefox print does only shows lpr and "to file", not other printers configged in cups deadeyes Linux - Desktop 3 09-29-2009 09:33 AM
[SOLVED] Cups and Samba to print one print job to 2 printers - tutorial added bourne Linux - General 7 09-18-2009 10:10 AM
CUPS does not print to my network LPD printers ROXR Slackware 3 07-31-2009 02:06 AM

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

All times are GMT -5. The time now is 11:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration