LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2016, 07:07 AM   #1
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Rep: Reputation: Disabled
Unhappy Cups printing doesn't work on linux client


- debian linux server
- debian linux client, W7 client

The printing (cups, cups-pdf) works fine on windows 7 but i can't even see the printer on the linux client (i can see with samba, but I can't add the printer to print other than test page..). What could be the problem?


Thank you
 
Old 01-30-2016, 07:21 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,650

Rep: Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568Reputation: 568
Need a better picture.

In your detail you make no mention of the printer!
What kind of printer?
How is it connected? (Exported from the server, network enabled, WIFI enabled, ...?)
On the machine that reports (detects) the printer, what does it say about it?
Is the printer on the same subnet as all of the machines specified?
What protocols are served by that printer? (LDP, IPP, JetDirect, other.)

You leave us with a lot of guessing, and I hate to guess wrong and give you bad answers.
 
1 members found this post helpful.
Old 01-30-2016, 08:49 AM   #3
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
In your detail you make no mention of the printer!
What kind of printer?
How is it connected? (Exported from the server, network enabled, WIFI enabled, ...?)
On the machine that reports (detects) the printer, what does it say about it?
Is the printer on the same subnet as all of the machines specified?
What protocols are served by that printer? (LDP, IPP, JetDirect, other.)

You leave us with a lot of guessing, and I hate to guess wrong and give you bad answers.
the printer is just a CUPS-PDF printer, nothing else. I just want to print in pdf in user's own home directory.
I could easily add the printer to windows : http://1.1m.yt/kM5sVIH.png
But linux doesn't even show the printer anywhere : http://1.1m.yt/8220tcO.png

They are on the same subnet, i can nslookup, ping the server. DNS, everything works. I just cant see the printer

I just recognized that i can see the printer from the linux client if i connect to the server, but still cant print or add it to my printers.

http://3.1m.yt/b8WgQlf.png

Last edited by dew90; 01-30-2016 at 08:57 AM.
 
Old 01-30-2016, 09:34 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
What is the output of

Code:
ps -A | grep cups
on Debian?
 
1 members found this post helpful.
Old 01-30-2016, 11:44 PM   #5
baldur_1
Member
 
Registered: Sep 2010
Posts: 125

Rep: Reputation: 11
i ran into this recently on my fedora set-up. when it was happening to me, i could print a self-test page but not a test page. the server is blocking you from using the spool directory on the server one way so what i did to make it work was make the server browsable using cups. to do that you can just google that but the hardest part to figure out was setting the server name. to do that find a file in your cupsd directory called client.conf and add a line like "ServerName xxx.xxx.xxx.xxx" where x's are your ip. this was a very hard part to find and might make it work on its own.

the last part was allowing port 631 between the computers. it needs to be udp on the client and tcp on the server. once i got those steps done on any computer, i could print from any linux client.
 
1 members found this post helpful.
Old 01-31-2016, 12:14 AM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
the printer is just a CUPS-PDF printer
there is no brand of printer called that

is it a Cannon ? Brother? HP? what make and model is this hardware

HOW is it connected ?
by the old Parallel port connection ?
USB?
wireless ?
networked ?

from your post is sounds like it is on a Ethernet connection

Last edited by John VV; 01-31-2016 at 12:18 AM.
 
Old 01-31-2016, 07:56 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
cups-pdf is software that creates a virtual PDF printer (a print to file printer) and the OP is trying to use it as a network printer between the desktop and the server.

http://cups-pdf.de/

These days with print to file built in to the desktop print dialog and similar windows software like pdfcreator I have not used it much lately. I just tried it with two debian VMs as a smb printer and having some NT access issues. So I'm not even having any luck printing a test page. Its been awhile...

The easiest solution would be to create a new printer and select the local cups-pdf virtual printer on the server (via cups web interface localhost:631). Name it something different and then select any sort of PostScript make/model of your choice. I typically pick a HP color PS printer. Be sure to click on share this printer. Once the new printer is added on the server it should show up as a remote printer on the desktop since you clicked shared.

I think it would also work if set up the new printer using a raw driver.

Last edited by michaelk; 01-31-2016 at 09:09 AM.
 
1 members found this post helpful.
Old 01-31-2016, 12:45 PM   #8
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you for your answers, guys.
Creating client.conf (cups didn't install it) file on Debian client worked for me.
Quote:
Originally Posted by baldur_1 View Post
i ran into this recently on my fedora set-up. when it was happening to me, i could print a self-test page but not a test page. the server is blocking you from using the spool directory on the server one way so what i did to make it work was make the server browsable using cups. to do that you can just google that but the hardest part to figure out was setting the server name. to do that find a file in your cupsd directory called client.conf and add a line like "ServerName xxx.xxx.xxx.xxx" where x's are your ip. this was a very hard part to find and might make it work on its own.

the last part was allowing port 631 between the computers. it needs to be udp on the client and tcp on the server. once i got those steps done on any computer, i could print from any linux client.

Last edited by dew90; 01-31-2016 at 12:46 PM.
 
  


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
printing with hplip doesn't work: /usr/lib/cups/backend/hp failed ToK Linux - Hardware 10 02-02-2011 05:45 PM
Cups: Printing multiple copies doesn't work. gregkedro Linux - Software 2 07-13-2007 09:23 PM
cups client not printing on server solar1951 Linux - Networking 2 09-08-2006 03:06 PM
CUPS printing doesn't work with HPLJ Series II walterbyrd Linux - Software 16 03-04-2006 02:18 PM
printing from win 98 client to samba printer on red hat linux with cups shashi_lq Linux - Networking 0 12-10-2003 02:04 AM


All times are GMT -5. The time now is 12:13 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