LinuxQuestions.org
Review your favorite Linux distribution.
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 06-12-2016, 10:55 AM   #1
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,674

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
cups on current - can't print to cups printer on 14.1


My 14.1/64 system has cups version 1.5.4, and has a Brother HL-L2320D printer attached. It has been working since I purchased it about a year ago. I can print to it form my net book also running 14.1/64 and cups 1.5.4. Other in the house have no problems printing to it from various Win flavours.

I have recently added another system to test current/64. Everything else I have tested works with out any problems.

Cups on current is at 2.1.3. I have updated to the latest level as of June 11th.

I followed the how-to on the slackware wiki on how to install the Brother drivers, that all went as expected, including the 32 bit libs. I do not have a full multi-lib install.

These are the files I installed:

Code:
ls
cups-compat32-2.1.3-x86_64-2compat32.txz      hll2320dcupswrapper-3.2.0-i386-1.txz
glibc-solibs-2.23_multilib-x86_64-1alien.txz  hll2320dlpr-3.2.0-1.i386.rpm
hll2320dcupswrapper-3.2.0-1.i386.rpm	      hll2320dlpr-3.2.0-i386-1.txz
The .rpm files I downloaded from Brother, and converted to .txz files to install.

On 14.1 client systems cups finds the printer definitions without any intervention, and I can print from a client to the server.

On current this never happens. I have tried many different URI's to try and get printing working. Cups on current reports it can no find the printer on my 14.1 server.

This is the most recent device URI I tried without success:

Code:
 ipp://duelie.cliffshome.org:631/printers/Brother_HL-L2320D_series
For the record, I can connect to 14.1 cups from current. I can ping duelie.cliffshome.org.

I just can not get test page to print. What am I missing?
 
Old 06-12-2016, 12:34 PM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
camorri --

What does the lpstat command show ?

Code:
lpstat -t
And are there any hints in /var/log/cups/error_log ?

Code:
cat /var/log/cups/error_log
HTH ...

-- kjh
 
Old 06-12-2016, 02:08 PM   #3
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,674

Original Poster
Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
lpstat -t

Quote:
lpstat -t
scheduler is running
system default destination: HL-L2320D-2
device for HL-L2320D-2: ipp://duelie.cliffshome.org:631/printers/Brother_HL-L2320D_series
HL-L2320D-2 accepting requests since Sun 12 Jun 2016 01:35:09 PM EDT
printer HL-L2320D-2 is idle. enabled since Sun 12 Jun 2016 01:35:09 PM EDT
Unable to get printer status.
Here are the last lines of the log file. Not sure what to look for.

Quote:
Waiting for request.
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SERVER_NAME="localhost"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.1.3"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SERVER_NAME="localhost"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.1.3"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_is_accepting_jobs[0]="1"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_is_shared[0]="1"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_state[0]="4"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: admin_uri[0]="/admin/"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_uri_supported[0]="/printers/HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_name[0]="HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_location[0]="on duelie"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_info[0]="HL-L2320D"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_sheets_default[0]="none, none"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: device_uri[0]="ipp://duelie.cliffshome.org:631/printers/Brother_HL-L2320D_series"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: color_supported[0]="0"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_make_and_model[0]="Brother HL-L2320D for CUPS "
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: media_default[0]="na_letter_8.5x11in"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: sides_supported[0]="one-sided, two-sided-long-edge, two-sided-short-edge"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: sides_default[0]="one-sided"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: printer_commands[0]="AutoConfigure, Clean, PrintSelfTestPage"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: server_is_sharing_printers[0]="0"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: refresh_page="10;URL=/printers/HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: TITLE="HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SERVER_NAME="localhost"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.1.3"
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=2147483647, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] Script header: Content-Type: text/html;charset=utf-8
D [12/Jun/2016:14:06:48 -0400] [Client 839] Script header:
D [12/Jun/2016:14:06:48 -0400] [Client 839] Sending status 200 for CGI.
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdSendHeader: code=200, type="(null)", auth_type=0
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [CGI] Regular expression ".*Clean.*"
D [12/Jun/2016:14:06:48 -0400] [CGI] matches[0].rm_so=0
D [12/Jun/2016:14:06:48 -0400] [CGI] matches[1].rm_so=-1
D [12/Jun/2016:14:06:48 -0400] [CGI] Regular expression ".*PrintSelfTestPage.*"
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [CGI] matches[0].rm_so=0
D [12/Jun/2016:14:06:48 -0400] [CGI] matches[1].rm_so=-1
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 846] POST / HTTP/1.1
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [12/Jun/2016:14:06:48 -0400] [Client 846] Read: status=200
D [12/Jun/2016:14:06:48 -0400] [Client 846] No authentication data provided.
D [12/Jun/2016:14:06:48 -0400] [Client 846] 2.0 Get-Jobs 3
D [12/Jun/2016:14:06:48 -0400] Get-Jobs ipp://localhost:631/printers/HL-L2320D-2
D [12/Jun/2016:14:06:48 -0400] [Client 846] Returning IPP successful-ok for Get-Jobs (ipp://localhost:631/printers/HL-L2320D-2) from localhost
D [12/Jun/2016:14:06:48 -0400] [Client 846] Content-Length: 415
D [12/Jun/2016:14:06:48 -0400] [Client 846] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [12/Jun/2016:14:06:48 -0400] [Client 846] con->http=0x55cf7c838410
D [12/Jun/2016:14:06:48 -0400] [Client 846] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=415, response=0x55cf7c81e220(IPP_STATE_DATA), pipe_pid=0, file=-1
D [12/Jun/2016:14:06:48 -0400] [Client 846] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [12/Jun/2016:14:06:48 -0400] [Client 846] bytes=0, http_state=0, data_remaining=415
D [12/Jun/2016:14:06:48 -0400] [Client 846] Flushing write buffer.
D [12/Jun/2016:14:06:48 -0400] [Client 846] New state is HTTP_STATE_WAITING
D [12/Jun/2016:14:06:48 -0400] [Client 846] Waiting for request.
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiClearVariables called.
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: ORDER="asc"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SECTION="printers"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: TOTAL="1"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SERVER_NAME="localhost"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: CUPS_VERSION="CUPS v2.1.3"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_printer_name[0]="HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_printer_uri[0]="/printers/HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_name[0]="Test Page"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_originating_user_name[0]="anonymous"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: time_at_completed[0]="novalue"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: time_at_creation[0]="Sun 12 Jun 2016 02:06:36 PM EDT"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: time_at_processing[0]="Sun 12 Jun 2016 02:06:36 PM EDT"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_id[0]="36"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_state[0]="5"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_media_sheets_completed[0]="0"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_k_octets[0]="1"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetArray: job_printer_state_message[0]="Unable to get printer status."
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: PRINTER_NAME="HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: PRINTER_URI_SUPPORTED="/printers/HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: THISURL="/printers/HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [CGI] cgiSetVariable: SEARCH_DEST="HL-L2320D-2"
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 846] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [12/Jun/2016:14:06:48 -0400] [Client 846] Closing connection.
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [12/Jun/2016:14:06:48 -0400] [Client 839] CGI data ready to be sent.
D [12/Jun/2016:14:06:48 -0400] [Client 839] con->http=0x55cf7c870180
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=4628, file=15
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for CGI data.
D [12/Jun/2016:14:06:48 -0400] [Client 839] Sending 0-length chunk.
D [12/Jun/2016:14:06:48 -0400] [Client 839] Flushing write buffer.
D [12/Jun/2016:14:06:48 -0400] [Client 839] New state is HTTP_STATE_WAITING
D [12/Jun/2016:14:06:48 -0400] [Client 839] Waiting for request.
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
D [12/Jun/2016:14:06:48 -0400] PID 4628 (/usr/lib64/cups/cgi-bin/printers.cgi) exited with no errors.
D [12/Jun/2016:14:06:48 -0400] [Client 839] GET /cups.css HTTP/1.1
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Printing jobs and dirty files"
D [12/Jun/2016:14:06:48 -0400] [Client 839] Read: status=200
D [12/Jun/2016:14:06:48 -0400] [Client 839] No authentication data provided.
D [12/Jun/2016:14:06:48 -0400] [Client 839] Processing GET /cups.css
D [12/Jun/2016:14:06:48 -0400] [Client 839] filename="/usr/share/doc/cups/cups.css", type=text/css
D [12/Jun/2016:14:06:48 -0400] [Client 839] cupsdSendHeader: code=304, type="(null)", auth_type=0
D [12/Jun/2016:14:06:48 -0400] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
I [12/Jun/2016:14:06:49 -0400] Expiring subscriptions...
D [12/Jun/2016:14:06:50 -0400] [Job 36] Getting supported attributes...
I [12/Jun/2016:14:06:50 -0400] Expiring subscriptions...
D [12/Jun/2016:14:06:50 -0400] [Job 36] Get-Printer-Attributes: client-error-bad-request (Bad Request)
D [12/Jun/2016:14:06:50 -0400] [Job 36] Get-Printer-Attributes returned client-error-bad-request.
E [12/Jun/2016:14:06:50 -0400] [Job 36] Unable to get printer status.
I [12/Jun/2016:14:06:51 -0400] Expiring subscriptions...
bash-4.3#
 
Old 06-12-2016, 02:48 PM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Hmmm ...

Nothing jumps out for me other than the lines that say: 'Unable to get printer status.' in both listings.

Could there be a firewall in the way ( the HTTP Status Codes indicate this is not so but ... )

Does the print job from your new 14.2 box show up in duelie's /var/log/cups/access_log or in duelie's /var/log/cups/error_log ?

This is another LQ thread for Brother Printers on 64-Bit 14.1 that may have some hints: http://www.linuxquestions.org/questi...er-4175531413/

HTH.

-- kjh
 
Old 06-12-2016, 04:06 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
For a CUPS 1.6+ clients communicating with a legacy CUPS (1.5.4 or older) server, cups-browsed is required for CUPS browsing/sharing, as this protocol has been dropped in cupsd in recent releases.

https://www.cups.org/documentation.p.../whatsnew.html
Quote:
Sharing Protocols; The scheduler no longer supports the CUPS, LDAP, or SLP protocols for printer sharing.
http://www.linuxfoundation.org/colla...g/cups-filters

http://stuff.onse.fi/man?program=cups-browsed&section=8
 
2 members found this post helpful.
Old 06-12-2016, 04:57 PM   #6
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Quote:
Originally Posted by ferrari View Post
For a CUPS 1.6+ clients communicating with a legacy CUPS (1.5.4 or older) server, cups-browsed is required for CUPS browsing/sharing, as this protocol has been dropped in cupsd in recent releases.

https://www.cups.org/documentation.p.../whatsnew.html

http://www.linuxfoundation.org/colla...g/cups-filters

http://stuff.onse.fi/man?program=cups-browsed&section=8
Thank you ferrari !

I am not the original poster but I've also had problems printing to an Hp USB Printer hosted on a remote CentOS 6.8 Box.

Only the smb:// protocol works.

From what I can tell, I may be able to convert my remote smb:// protocol printer over to something more appropriate for a Linux Box !

Checking out the packages and seeing what might be required to create a cups-browsed.SlackBuild ...

Will reply here ..

EDIT: cups-browsed version 1.83 is already installed on current but is not configured or running on my machine.

More to come ...

-- kjh

Last edited by kjhambrick; 06-12-2016 at 05:06 PM.
 
Old 06-12-2016, 04:58 PM   #7
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,674

Original Poster
Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Could there be a firewall in the way
I have not configured a firewall on either the current system or the 14.1 system. I do have a hosts.deny All:All on the 14.1 system. I have added the IP address of the current system to the various services.

Here is what I see today in the access log on the server, duelie:

Quote:
192.168.1.22 - - [12/Jun/2016:09:32:19 -0400] "POST /admin/ HTTP/1.1" 200 85 - -
localhost - - [12/Jun/2016:09:32:19 -0400] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
192.168.1.22 - - [12/Jun/2016:09:32:19 -0400] "POST /admin/ HTTP/1.1" 426 85 - -
192.168.1.22 - - [12/Jun/2016:09:32:19 -0400] "POST /admin/ HTTP/1.1" 200 85 - -
192.168.1.22 - - [12/Jun/2016:09:52:24 -0400] "POST /printers/HLL2320D HTTP/1.1" 200 329 Validate-Job successful-ok
192.168.1.22 - - [12/Jun/2016:09:52:24 -0400] "POST /printers/HLL2320D HTTP/1.1" 200 285 Create-Job successful-ok
192.168.1.22 - - [12/Jun/2016:09:52:24 -0400] "POST /printers/HLL2320D HTTP/1.1" 200 66330 Send-Document successful-ok
192.168.1.22 - - [12/Jun/2016:09:56:52 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
localhost - - [12/Jun/2016:09:56:52 -0400] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
192.168.1.22 - - [12/Jun/2016:09:56:52 -0400] "POST /admin/ HTTP/1.1" 426 101 - -
192.168.1.22 - - [12/Jun/2016:09:56:52 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
192.168.1.22 - - [12/Jun/2016:09:57:10 -0400] "POST /admin/ HTTP/1.1" 200 104 - -
192.168.1.22 - - [12/Jun/2016:09:57:10 -0400] "POST /admin/ HTTP/1.1" 200 2556 - -
localhost - - [12/Jun/2016:10:02:15 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
localhost - - [12/Jun/2016:10:02:15 -0400] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - - [12/Jun/2016:10:02:15 -0400] "POST /admin/ HTTP/1.1" 401 101 - -
localhost - - [12/Jun/2016:10:02:15 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
localhost - root [12/Jun/2016:10:02:21 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
localhost - - [12/Jun/2016:10:02:21 -0400] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
localhost - root [12/Jun/2016:10:02:21 -0400] "POST / HTTP/1.1" 200 2370 CUPS-Get-Devices -
localhost - root [12/Jun/2016:10:02:21 -0400] "POST /admin/ HTTP/1.1" 200 3862 - -
localhost - - [12/Jun/2016:10:04:58 -0400] "POST /admin HTTP/1.1" 200 182 - -
localhost - - [12/Jun/2016:10:04:58 -0400] "POST /admin HTTP/1.1" 200 3256 - -
localhost - - [12/Jun/2016:10:05:06 -0400] "POST /admin HTTP/1.1" 200 295 - -
localhost - - [12/Jun/2016:10:05:06 -0400] "POST / HTTP/1.1" 200 13922 CUPS-Get-PPDs -
localhost - - [12/Jun/2016:10:05:06 -0400] "POST /admin HTTP/1.1" 200 8611 - -
192.168.1.13 - - [12/Jun/2016:10:10:45 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
localhost - - [12/Jun/2016:10:10:45 -0400] "POST / HTTP/1.1" 401 91 CUPS-Get-Devices successful-ok
192.168.1.13 - - [12/Jun/2016:10:10:45 -0400] "POST /admin/ HTTP/1.1" 426 101 - -
192.168.1.13 - - [12/Jun/2016:10:10:45 -0400] "POST /admin/ HTTP/1.1" 200 101 - -
Current is IP address .22, .13 is my wifes W7 system.

I will have a look through the post you mentioned.

I will have a look through the doc ferrari has suggested. Thank-you both for your help.
 
Old 06-12-2016, 05:45 PM   #8
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
camorri --

The links ferrari send somehow got me here: https://wiki.archlinux.org/index.php/CUPS

Note the Note on remote printers and cups >= 1.6 clients with cups <= 1.5 servers.

The good news: When I set up /etc/cups/client.conf the way they suggested, I could print via ipp or lpd to a remote USB Printer hosted on a CentOS 6.8 box ( cups v1.4.2 )

Up to now only smb:// protocol worked with that server.

The bad news: Other printers on the LAN disappeared

I obviously need to study the cups.client man pages

Thanks.

-- kjh
 
Old 06-12-2016, 06:38 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Good catch re the ArchWiki page and IPP version...

Quote:
Note: As of CUPS version 1.6, the client defaults to IPP 2.0. If the server uses CUPS <= 1.5 / IPP <= 1.1, the client does not downgrade the protocol automatically and thus cannot communicate with the server. A workaround (undocumented as of 2013-05-07, but see this bug report) is to put the following in /etc/cups/client.conf: ServerName HOSTNAME-OR-IP-ADDRESS[:PORT]/version=1.1
Also
Code:
man cups-browsed
The key configuration file is /etc/cups/cups-browsed.conf, so this man page too...
Code:
man cups-browsed.conf
 
1 members found this post helpful.
Old 06-12-2016, 08:10 PM   #10
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,674

Original Poster
Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Thank-you both for your help.

I have had some success. I configured current to print through samba, that works. For anyone seeing this in the future, the URI looks like this:

Quote:
smb://duelie/Brother_HL-L2320D_series
Some explanation, 'duelie' is the host name of my samba server and print server. The queue name is 'Brother_HL-L2320D_series'. This is the name I gave it, you can make your own names. You can also set your own host name.

I have not got this working yet with ipp. I have created a /etc/cups/client.conf file with the following line:

Quote:
ServerName 192.168.1.26:631/version=1.1
I am struggling to understand how to set up /etc/cups/cups-browsed.conf.
 
Old 06-12-2016, 08:58 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
I'm not familiar with Slackware, but 'cups-browsed' needs to be installed and running on the client (when communicating with old CUPS servers), and with a minimal /etc/cups/cups-browsed.conf containing at least
Code:
BrowseRemoteProtocols CUPS
Then the client should be able receive the CUPS broadcasts...

Quote:
DESCRIPTION
cups-browsed has three independently switchable functions:

1. Browse Bonjour broadcasts of remote printers and create/remove local raw queues
pointing to these printers.

2. Browse CUPS broadcasts of remote printers and create/remove local raw queues
pointing to these printers.

3. Broadcast local queues with the CUPS protocol.

Note that 2. and 3. are only to allow communication with legacy CUPS servers (1.5.x or
older) on the remote machine(s). The standard method to broadcast for shared/network
printers to broadcast their presence is Bonjour. The CUPS broadcasting/browsing proto-
col is deprecated.
 
1 members found this post helpful.
Old 06-13-2016, 11:29 AM   #12
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,674

Original Poster
Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Well, this is a more than a little puzzling. I have finally got printing working from current to 14.1/64 bit.

I made the change ferrari suggested; changing /etc/cups/cups-browsed.conf to include the line BrowseRemoteProtocols CUPS. If I havn't mentioned it, you have to make /etc/rc.d/rc.cups-browsed executable also.

I had to change the printer I defined on current as RAW, not using the locally installed drivers from Brother. The correct driver is install on my 14.1 system. With this setup, I have printed test page, and printed from an application.

Other things I found confusing, the examples in cups for the URI's could be a lot better.
Of course, that is up to the CUPS developers to change; if they see fit.

I will be updating the 14.1/64 system to 14.2, when its ready. We will see what adventures that creates with printing. I'm marking this thread solved.
 
2 members found this post helpful.
Old 06-13-2016, 11:43 AM   #13
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Thank you camorri and ferrari !

I've got a looming Programming Deadline but I'll return to this ASAP.

The raw queue on the server-side is good info and it makes sense since you're using the Brother Driver on the Client-Side ( all the server needs to do is pass-thru a pre-formatted job ).

It will be interesting to see if cups-browsed will 'play nice' with hplip which I seem to need to print to my Wife's Hp HP_Officejet_Pro_X476dn_MFP.

It didn't work yesterday but then I was also fooling with /etc/cups/client.conf ( a non-empty client.conf + /etc/rc.d/cups restart is what seemed to break hplip ).

Anyhow, I'll add any new info if I learn any more juicy tidbits.

Thanks again !

-- kjh
 
Old 06-13-2016, 04:02 PM   #14
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Glad to have been of assistance!
 
Old 06-13-2016, 04:19 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
I have my CUPS server configured with the drivers etc, and CUPS clients detect the remote CUPS printers and set up a local raw queue automatically without any configuration required. They're just available to print to.
 
  


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
Unable to print from Okular to cups 2.0.2/cups-filters 1.0 on Slack-Current tux_dude Slackware 3 07-02-2015 01:08 PM
[SOLVED] (Current) CUPS: canít print anything Aymeric3 Slackware 3 05-06-2015 08:01 AM
CUPS and Canon MP190 printer. Print quality and printer sharing... SFGAirborne Linux - Hardware 1 12-14-2010 06:55 AM
not able to print to one printer using CUPS aopex Linux - Software 4 02-02-2009 10:13 PM

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

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