LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-26-2016, 10:49 AM   #1
ag33k
Member
 
Registered: Mar 2013
Location: Portugal
Distribution: Slackware
Posts: 98

Rep: Reputation: Disabled
Problem sharing Brother HL-L2340DW printer on CUPS Slackware64 14.2


Hello I'm having a strange problem sharing a Brother HL-L2340DW printer on CUPS with Slackware64 14.2 multilib.

I think the drivers all right because I can print locally with CUPS.

But the problem is that the machine I'm using has video card issues so I'm not using X at all.
I use this machine by SSH.
I tried to configure CUPS there.
I edit the cupsd.conf to allow admin access from another machine. And I think I made the right configuration.
I tried to configure it using the web interface.
I can add the printer. I can print test pages. I can make it server default. But when I choose share printer the printer always show "Not shared".

This is my cupsd.conf

Code:
#                                                                                                                                                                    
# Configuration file for the CUPS scheduler.  See "man cupsd.conf" for a                                                                                             
# complete description of this file.                                                                                                                                 
#                                                                                                                                                                    
                                                                                                                                                                     
# Log general information in error_log - change "warn" to "debug"                                                                                                    
# for troubleshooting...                                                                                                                                             
LogLevel warn                                                                                                                                                        
PageLogFormat                                                                                                                                                        
                                                                                                                                                                     
# Only listen for connections from the local machine.                                                                                                                
Listen 631                                                                                                                                                           
Listen /var/run/cups/cups.sock                                                                                                                                       
                                                                                                                                                                     
# Show shared printers on the local network.                                                                                                                         
Browsing On                                                                                                                                                          
BrowseLocalProtocols                                                                                                                                                 
                                                                                                                                                                     
# Default authentication type, when authentication is required...                                                                                                    
DefaultAuthType Basic                                                                                                                                                
                                                                                                                                                                     
# Web interface setting...                                                                                                                                           
WebInterface Yes                                                                                                                                                     
                                                                                                                                                                     
# Restrict access to the server...                                                                                                                                   
<Location />                                                                                                                                                         
  Order allow,deny                                                                                                                                                   
  Allow localhost                                                                                                                                                    
  Allow 192.168.1.*                                                                                                                                                  
</Location>                                                                                                                                                          
                                                                                                                                                                     
# Restrict access to the admin pages...                                                                                                                              
<Location /admin>                                                                                                                                                    
  Order allow,deny                                                                                                                                                   
  Allow localhost                                                                                                                                                    
  Allow 192.168.1.40                                                                                                                                                 
</Location>            

 Restrict access to configuration files...                                                                                                                          
<Location /admin/conf>                                                                                                                                               
  AuthType Default                                                                                                                                                   
  Require user @SYSTEM                                                                                                                                               
  Order allow,deny                                                                                                                                                   
  Allow localhost                                                                                                                                                    
  Allow 192.168.1.40                                                                                                                                                 
</Location>                                                                                                                                                          
                                                                                                                                                                     
# Restrict access to log files...                                                                                                                                    
<Location /admin/log>                                                                                                                                                
  AuthType Default                                                                                                                                                   
  Require user @SYSTEM                                                                                                                                               
  Order allow,deny                                                                                                                                                   
  Allow localhost                                                                                                                                                    
  Allow 192.168.1.40                                                                                                                                                 
</Location>
The other settings I didn't change. They are still default.

I take a look on printers.conf and it shows "Shared Yes".
I even tried using lpadmin

Code:
lpadmin -p printer -o printer-is-shared=true
And

Code:
cupsctl --share-printers --remote-any
Nothing works.

I have another machine running Debian.
Installed cups and the printer drivers.
I set all the CUPS settings also with the web interface and it's showed shared immediately.

What I am missing on Slackware64 14.2 configuration?
 
Old 10-26-2016, 11:35 PM   #2
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
you add "DefaultShared Yes" into cupsd.conf on server side where printer attached to.
On client side, modify client.conf file's ServerName line points to CUPS server, Slackware will work automatically.
 
Old 10-27-2016, 09:13 AM   #3
ag33k
Member
 
Registered: Mar 2013
Location: Portugal
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by number22 View Post
you add "DefaultShared Yes" into cupsd.conf on server side where printer attached to.
On client side, modify client.conf file's ServerName line points to CUPS server, Slackware will work automatically.
Thanks!
It helped a lot.

I add

Code:
#DefaultShared Enabled                                                                                                                                               
DefaultShared Yes
into cupsd.conf on server side where printer attached to. Like you said!

But there is no client.conf on client side.
There is a cups-browsed.conf.

I edit it like this

Code:
BrowsePoll 192.168.1.44
that is the ip of the server

The web interface of the server still shows (Idle, Accepting Jobs, Not Shared)
I don't know why this happens.

But on the client interface I can see the ip of the server on printer. And I can print!

It's working for now.
I hope after rebooting all the machines it still works


Thanks!!
 
  


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
HOWTO: (Tiny Size/minimalist) Method to install a Fantastic Laser Printer Brother Wireless HL-L2340DW in 3-5 min! patrick295767 Linux - Hardware 0 05-22-2016 11:44 AM
[SOLVED] Brother HL-L2340DW laser printer gargamel Slackware 22 06-17-2015 10:07 AM
Brother HL-L2340DW laser printer newbiesforever Linux - Hardware 4 04-14-2015 09:09 PM
[SOLVED] using a Brother MFC 495CW printer with CUPS Cultist Linux - Hardware 12 03-19-2013 12:44 PM
Brother printer + cups -> nothing rabby Linux - Newbie 1 02-28-2006 04:08 PM

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

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