LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-05-2009, 10:05 AM   #1
supremedalek
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
lsub in Ubuntu server 9.10 does not see my Brother HL-2140 printer


Here is a truly newbie question that has been baffling me for the last few days: I bought a Brother HL-2140 usb laserprinter and am trying to add to my ubuntu 9.10 server. So, the first step is to physically connect it to one of the usb ports and use lsusb to see if the printer is being seen:

Code:
raub@keg:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
raub@keg:~$
As you can see, lsusb does not recognize it no matter which usb port I use. That does confuse me since everything else I connect to this computer's usb ports shows up when I type lsusb. As an example, let me slap a MN510 wireless device to a randomly picked usb port:

Code:
raub@keg:~$ lsusb 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 006: ID 045e:006e Microsoft Corp. MN510 802.11b Adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
raub@keg:~$
Interestingly enough, dmesg seems to report a printer there:

Code:
[45141.016030] usb 5-2: new full speed USB device using uhci_hcd and address 3
[45141.188491] usb 5-2: configuration #1 chosen from 1 choice
[45141.196484] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid
0x04F9 pid 0x0033
So, I tried the same printer in my laptop, which runs ubuntu 9.04 desktop, and it sees the printer fine (and even tries to add it):

Code:
raub@monaco:~$ lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 003: ID 04f9:0033 Brother Industries, Ltd 
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
raub@monaco:~$
So, I do not think I can blame the printer itself... or printer drives since all I am trying to do right now is to see the stupid printer as a usb device in the usb chain. Am I missing something here?
 
Old 12-05-2009, 11:53 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

The reason Ubuntu desktop works fine and Ubuntu server doesn't is simply that the desktop DVD has "everything and the kitchen sink" thrown in, the Ubuntu server is stripped down to "just what you need".

Anyway, this should help:
http://welcome.solutions.brother.com.../en/index.html

... and this ...
Quote:
http://ubuntuforums.org/showthread.php?t=1306997

Installing Brother printer in Ubuntu 9.10
This isn't a support request, it seems to be working, I'm just posting to help others!

My printer is a Brother DCP-330C, it wasn't autodetected after my 9.10 install this morning, so started looking at it...

turned out to be very simple. Brother have pretty good support on their site at http://solutions.brother.com/linux/en_us/index.html

Summarised here:

1) run 'sudo aa-complain cupsd'

2) run 'sudo mkdir /usr/share/cups/model'

3) From this page - http://solutions.brother.com/linux/e...nload_prn.html
.. find your particular model and download the *.deb files (should be 2)

4) go to the folder and run 'sudo dpkg -i --force-all *'

To verify it worked:

1) Run 'dpkg -l | grep Brother'
Mine gave the output:
ii dcp330ccupswrapper 1.0.1-1 Brother CUPS Inkjet Printer Definitions
ii dcp330clpr 1.0.1-1 Brother lpr Inkjet Printer Definitions

2) Check the contents of '/etc/printcap'
Mine was:
DCP330C:\
:mx=0:\
:sd=/var/spool/lpd/dcp330c:\
:sh:\
:lp=/dev/usb/lp0:\
:if=/usr/local/Brother/Printer/dcp330c/lpd/filterdcp330c:

3) Check the CUPS web interface at:
http://localhost:631/printers

I haven't tested it fully beyond a test page, and I also haven't set up scanning yet, but that's for another day!

Feel free to use this thread for additional support but this is the first time I've set up a printer in Linux (in 10+ years of on-and-off use) so I personally may not be much use!
 
Old 12-05-2009, 12:27 PM   #3
supremedalek
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
First of all I do appreciate the link on how to add the printer under ubuntu. I will try it out shortly.

That said, my question was really not how to install the printer but why lsub is not seeing it. I thought that it being detected in the usb chain would have nothing to do with whether cups had drivers for it or not. Or even whether cups was installed in the machine to begin with. After all, I can slap my iphone to one of the usb ports and lsusb will dutifully report something is there:

Code:
raub@keg:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 005: ID 05ac:1290 Apple, Inc. iPhone
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 006: ID 045e:006e Microsoft Corp. MN510 802.11b Adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
raub@keg:~$
But, I have been wrong many times; this will not be the first.

Last edited by supremedalek; 12-05-2009 at 12:34 PM.
 
  


Reply

Tags
brother, dmesg, printer, ubuntu, usb


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
[SOLVED] Brother HL-2140 will not print on Slack64 13.0... fedoralinuxjunkie Slackware 7 10-22-2009 09:56 PM
[SOLVED] Slackware vs Brother HL-2140 andrew.46 Slackware 6 09-17-2009 08:37 PM
kubuntu 7.04, not installing brother 2140 b/w laser printer rwobbs Linux - Newbie 4 05-17-2009 10:54 PM
I have Ubuntu 7.1 and a Brother printer. ruislip Linux - Hardware 1 01-08-2009 11:58 PM
Installing Brother MFC-425CN printer in Ubuntu 7.04 gendash Linux - Hardware 3 05-31-2007 12:47 PM


All times are GMT -5. The time now is 02:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration