[SOLVED] Cups printing doesn't work on linux client
Linux - NewbieThis 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
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.
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.
- 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?
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.
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.
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.
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.