Linux-to-Linux print sharing w/ CUPS
Just installed Slack-12 and I'm having a hard time getting my linux laptop to see my printer like it used to. In the past it was simple: edit /etc/cups/cupsd.conf on the server and /etc/cups/client.conf on the client and the printer was automatically added to CUPS on the client, no problems at all.
Now, not only is there no client.conf but I just can't figure out a way that simple to share between linux computers. I tried making the same changes and adding a client.conf file just to see but that didn't help me. Can someone give me some help editing the cupsd.conf file so that all of my linux computers can use this printer? |
Printer detection problem
Hello Jacksonville ,
Did you try at http://localhost:631/admin to check you made sure you checked ( = on ) Basic Server Settings: on - Show printers shared by other systems on - Share published printers connected to this system ? If that's ok , did you try changing the cups server configuration file at http://localhost:631/admin?op=config-server ------------------------------------------------------------------ Here's what mine looks like : # Show general information in error_log. LogLevel info SystemGroup sys root # Allow remote access Port 631 Listen /var/run/cups/cups.sock # Enable printer sharing and shared printers. Browsing On BrowseOrder allow,deny BrowseAllow @LOCAL BrowseAddress @LOCAL DefaultAuthType Basic <Location /> # Allow shared printing... Order allow,deny Allow @LOCAL </Location> <Location /admin> Encryption Required # Restrict access to the admin pages... Order allow,deny Allow localhost </Location> <Location /admin/conf> AuthType Basic Require user @SYSTEM # Restrict access to the configuration files... Order allow,deny Allow localhost </Location> <Policy default> <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default> AuthType Basic Require user @SYSTEM Order deny,allow </Limit> <Limit CUPS-Authenticate-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> <Limit All> Order deny,allow </Limit> </Policy> ------------------------------------------------------------------- Hope it helps ! |
That was it! I didn't have the Share published printers connected to this system box checked. Thank you very much for your help!
|
Quote:
Just a suggestion, when you have a long list, quote or data to post then place them in vbcode. You can select the #(code) or Quote in the reply window. That way it is easier for the reader to scroll through. Plus makes your post cleaner. |
I've tried to put:
Basic Server Settings: on - Show printers shared by other systems on - Share published printers connected to this system but only one of these two settings can be 'on' at once... Is this right? |
I've tried to put:
Quote:
Is this right? |
Hello Vincent , happy to hear that it helped .
Hi onebuck thanks for the advice you're are wright . dan_slack it's not correct , you should always be able to check both checkboxes - they're not radiobuttons anyway - but did you check the posted configuration file . Then again the problem could be located in another file don't ask me which one :s . You could always do a quick reinstall , should only take a couple of minutes . Maybe thats the best thing to do since the cups server is not behaving correctly , so you can start of with a clean sheet . Never wait to long when you see a bug ... clean it up :) |
Actually, I also noticed that only one of those two checkboxes could be checked. For me it was simple because the only printer was the one on that system - so I checked the box to share it. Not sure what's going on with that problem though, or if it's even a true problem.
|
im having a little problem im using debian and managed cups + samba to work, however my problem is when a normal user (not admin) tried to paused his queue im getting Operation not permitted, Access Denied. anyone know how to fix this?
|
I'm extremely lazy. When I set up a print server with cups, I use cups solely to configure the printer and I don't run Samba on the print server.
Then, I go to /etc/inetd.conf and put this line in there: printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd -o document-format=application/octet-stream After that I reboot the print server. Suppose the print server address is 192.168.1.27 and I named the printer "Epson." If a Linux client is running cups, I just point it at the print server address as lpd://192.168.1.27/Epson If the client is running LPR or LPRng it gets a manual printcap entry. Windows clients connect to their own Samba server anyway, so the Samba server passes on Windows client print jobs to the standalone print server as if the jobs originated from a Linux box. It is a cheap, dirty and inelegant solution. But it works for me and it avoids manual configuration of cupsd.conf, while making for a quick and easy way to use cups to configure the printer. I also don't run X on the print server, or even bother to setup remote administration. I use ssh to reach the headless print server, and use lynx localhost:631 in that shell for configuration of the printer. Won't work for everybody, but it works for me. |
All times are GMT -5. The time now is 02:54 AM. |