LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2007, 12:02 AM   #1
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
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?
 
Old 07-12-2007, 03:16 AM   #2
MatricalDreamer
LQ Newbie
 
Registered: Apr 2006
Posts: 21

Rep: Reputation: 15
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 !
 
Old 07-12-2007, 08:22 AM   #3
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Original Poster
Rep: Reputation: 31
That was it! I didn't have the Share published printers connected to this system box checked. Thank you very much for your help!
 
Old 07-12-2007, 09:47 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by MatricalDreamer
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. <snip>
-------------------------------------------------------------------

Hope it helps !
Hi,

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.
 
Old 07-12-2007, 04:48 PM   #5
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Rep: Reputation: 15
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?

Last edited by dan_slack; 07-12-2007 at 04:53 PM.
 
Old 07-12-2007, 04:51 PM   #6
dan_slack
Member
 
Registered: May 2004
Location: Bucharest - Romania
Distribution: Slackware 12
Posts: 57

Rep: Reputation: 15
I've tried to put:

Quote:
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?
 
Old 07-13-2007, 05:32 AM   #7
MatricalDreamer
LQ Newbie
 
Registered: Apr 2006
Posts: 21

Rep: Reputation: 15
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
 
Old 07-17-2007, 07:46 AM   #8
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Original Poster
Rep: Reputation: 31
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.
 
Old 07-30-2007, 06:56 AM   #9
pvanguardia
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
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?
 
Old 07-30-2007, 08:38 AM   #10
bughead1
Member
 
Registered: Jul 2002
Posts: 78

Rep: Reputation: 15
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.

Last edited by bughead1; 07-30-2007 at 08:42 AM.
 
  


Reply



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
LXer: Print DVI Files with CUPS for Linux LXer Syndicated Linux News 1 02-10-2007 07:47 AM
Samba linux print sharing ? heinola Linux - Networking 4 02-21-2005 06:25 AM
sharing CUPS printer between Linux machines hairydan Linux - Software 0 09-10-2004 08:35 PM
CUPS -- sharing with WINDOWS AND LINUX remote printers 1kyle Linux - Networking 4 07-15-2004 06:55 PM
Setting up print sharing in a Linux/W2K network Jalorathalis Linux - Networking 0 05-17-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:02 AM.

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