LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2020, 11:04 AM   #1
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Rep: Reputation: Disabled
Cups Problem


All,

From my server having problems correctly installing my Brother DCP L2540W printer.

Downloaded the driver source from Brother. Ran the install. Always comes up with my Pantum printer driver installed instead. Modifying the printer to the right driver also does not work.

Server is on Cups 1.7.2 running Kubuntu 14.o4! Upgrading Laptop to 18.04 as soon as parts come in for disk imaging backup. Then will upgrade server to 18.04 if stable (takes 2 year for and LTS version to stabilize, so why just converting as 16.04 was a total waste.)

Cups.org show cups 2.3.1 as oldest supported version, so want to upgrade CUPs to see if that fixes the issue.

Cannot find a HOWTO on upgrading to 2.3.1! Only find HOWTOs on fresh installs and those usually cause problems with an app (CUPs) already installed. All other HOWTOs just say use "apt-get install cups" which will just re-install 1.7.2 if I run that.

Need the right info to get this done. All help appreciated!

Cheers!

TBNK

Last edited by TBotNik; 03-06-2020 at 11:09 AM.
 
Old 03-06-2020, 03:19 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,804

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
Downloaded the driver source from Brother. Ran the install. Always comes up with my Pantum printer driver installed instead. Modifying the printer to the right driver also does not work.
It should only be necessary to install the appropriate LPR and CUPSwrapper deb packages...
https://www.linuxquestions.org/quest...em-4175670855/
Some of their drivers (older models) are 32-bit, so to install in a 64-bit Debian environment do this first...
Code:
sudo apt-get install gcc-4.8-base:i386 libgcc1:i386 libc6:i386
After that you should be able configure CUPS to use the printer.

BTW, is your printer connected via USB or network?
 
Old 03-07-2020, 10:33 AM   #3
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
It should only be necessary to install the appropriate LPR and CUPSwrapper deb packages...
https://www.linuxquestions.org/quest...em-4175670855/
Some of their drivers (older models) are 32-bit, so to install in a 64-bit Debian environment do this first...
Code:
sudo apt-get install gcc-4.8-base:i386 libgcc1:i386 libc6:i386
After that you should be able configure CUPS to use the printer.

BTW, is your printer connected via USB or network?
ferrari,

The driver is 64 bit and installs correctly and seen inside cups, but as a network printer, when running the "Find Printers" inside of sups it does not show so that, to me at least, is why CCups always assigns the Pantum driver to it. The IP of the printer is 192.168.0.50 and I may have to set it static on an IP above 100 as most network scanners start at 100 searching above that, but not sure on that.

The current cups connection shows as: lpd://T3400-Svr/Q1 but it is not working. I tried setting it IPP: but that did not work.

Cheers!

TBNK
 
Old 03-07-2020, 11:22 AM   #4
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
ferrari,

When I run the cmd:
Code:
nmap -v -sn 192.168.0.0/16 > /home/files/nmap_dump.txt && nano /home/files/nmap_dump.txt
I get this output

Code:
Router:
Nmap scan report for 192.168.0.1
Host is up (0.00089s latency).
MAC Address: CC:2D:21:2C:33:20 (Unknown)

790 DT
Nmap scan report for 192.168.0.100
Host is up (0.00038s latency).
MAC Address: 84:8F:69:F7:BD:91 (Dell)

SVR
Nmap scan report for 192.168.0.105
Host is up (-0.10s latency).
MAC Address: 00:22:19:04:4f:5a

Aspire LT
Nmap scan report for 192.168.0.106
Host is up (-0.10s latency).
MAC Address: 00:1F:C6:9F:C4:E4 (Asustek Computer)
But as yoo see the printer does not show at all, but my laptop and the Dell 790 Desktop see it just fine. Don't understand why the server cannot see it!

I'm wondering about this, all installs on the SVR come from:

Code:
/media/$USER/3T-Toshiba/Syncs/Installs/Installer_Packages/
Installs on the DT & LT come from:

Code:
/home/files/Dropbox/Installs/Installer_Packages/
Would that make a difference with cups? Everything else has installed fine!

If I set the Printer static IP to 192.168.0.130, I'm then thinking I will show and then with assign correctly. Do you concur?

Cheers!

TBNK

Last edited by TBotNik; 03-07-2020 at 11:31 AM.
 
Old 03-07-2020, 12:29 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Are you using a DHCP address reservation or a static IP address configured on the printer itself? If the latter is the printer configured for the same subnet i.e /16?

As a workaround you should be able to use the URL below and and select any PCL 6 printer in the list. All the options may not work but at least it will prove you can print successfully.
Quote:
lpd://192.168.0.130/binary_p1
Finding the printer with other distributions depends on what it is using to probe the network. The more recent linux cups versions use dnnsd backend which I'm not sure when that was added to cups. CentOS 7 uses cups version 1.6.3 which does not but once the driver was installed via the install script from the Brother website it was easy to manually add the URL above.

Last edited by michaelk; 03-07-2020 at 01:26 PM.
 
Old 03-07-2020, 01:13 PM   #6
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,804

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
The IP of the printer is 192.168.0.50 and I may have to set it static on an IP above 100 as most network scanners start at 100 searching above that, but not sure on that.
No that's not correct. See below information about setting an IP address.

Quote:
If I set the Printer static IP to 192.168.0.130, I'm then thinking I will show and then with assign correctly. Do you concur?
The IP address used is up to you with the following provisos...

Most routers allow reservation by MAC address, so that a device using DHCP will be assigned a particular address. If you choose to assign the printer with an explicit static IP address, make sure that it is within the subnet range of the router, but outside it's DHCP pool (so that no IP conflict can occur).

You should make sure that you can ping the printer at the expected IP address, and an nmap scan should show that the printer is listening on particular well-known printing ports.

Most recent Brother printers support AppSocket/HP JetDirect protocol, LPD, and IPP network printing protocols. Try using the following socket:// CUPS URI should work eg assuming 192.168.0.50
Code:
socket://192.168.0.50

Last edited by ferrari; 03-07-2020 at 01:29 PM.
 
Old 03-07-2020, 01:25 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
In addition to the above many default configurations you find in the typical home router starts the DHCP pool at x.x.x.100 for IPV4 addresses. As stated if you are setting a static IP address on the printer itself it needs to be outside the DHCP range.
 
Old 03-09-2020, 01:08 PM   #8
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Today?

All,

OK set the Printer IP to 192.168.0.150 and now get from NMAP https://pastebin.com/Zi3A3U8u

Even Rebooted the Server, but cups still sees nothing (no printers) on the network.

If you know the answer to this problem would like to get this fixed today 03/09/30!

Cheers!

TBNK
 
Old 03-09-2020, 02:20 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,804

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Are you not able to configure CUPS manually?

Your nmap scan output doesn't show open ports. Do this instead
Code:
nmap -p 1-1024 192.168.0.150
or to scan all open ports do
Code:
nmap -p- 192.168.0.150
 
Old 03-09-2020, 02:42 PM   #10
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Yeah now working! In Cups I selected A.) Modify Printer, B.) Selected LPD driver, C.) Entered: lpd://192.168.0.150/binary_p1, D.) Selected the driver, E.) Saved, F.) Printed Test page; and it worked. Closing this out as Solved!

Cheers!

TBNK
 
Old 03-09-2020, 03:06 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The OP is using the -sP option which is just a host ping and does not check for open ports.

I don't remember what the add printer wizard looked like back then but if you want to use the cups web interface you need to add your user to the lpadmin group
Code:
sudo usermod -aG lpadmin username
Logout then log back in and from the cups web interface manually add the URL as posted above. If you installed the printer driver it should be available in the printer drop down list.

Well, nevermind...

Last edited by michaelk; 03-09-2020 at 03:07 PM.
 
Old 03-09-2020, 03:13 PM   #12
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,804

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
The OP is using the -sP option which is just a host ping and does not check for open ports.
Yes, that is what I was hinting at.

Quote:
All,

Yeah now working! In Cups I selected A.) Modify Printer, B.) Selected LPD driver, C.) Entered: lpd://192.168.0.150/binary_p1, D.) Selected the driver, E.) Saved, F.) Printed Test page; and it worked. Closing this out as Solved!

Cheers!

TBNK
Good result. Glad to have been of guidance.
 
  


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
CUPS problem - connecting to local printer as well as CUPS server bobm2011 Linux - Newbie 4 01-11-2010 07:28 AM
Problem running CUPS with CUPS 1.4b2 beta hikerguy Linux - Software 3 01-18-2009 01:57 AM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
CUPS in SuSE <> Cups RH' Like? Tiago Cruz Linux - Hardware 0 02-13-2003 12:46 PM
cups-libs need to install cups illtbagu Linux - Newbie 3 01-23-2003 07:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:36 PM.

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