brother HL-1230 installation

Greetings.

I’ve got again a problem with my printer.
Some time ago I installed a canon MX870 locally and over LAN - no problem.

But now I’ve finally got a new drum and cartridge for my brother HL-1230 and, seeing as OS11.4 is my main system, decided to install it on the mentioned OS11.4x64.

The printer is connected at parport, using “Yast>Hardware” I can see it is connected as /dev/lp0. And detected as HL-1230 series.

Now comes the problem:

Look as I may in “Yast > Printers” (or equiv. CUPS) I can not install/register the printer in CUPS.
At first I thought there were dirvers missing(b/c looking for HL-1230 did not yield anything), so I downloaded some more and now there are some HL-1230 Foomatic drivers.
The situation however, did not change.
I still can’t install the printer - neither can I select it manually (it’s not listed as being on parallel connection), nor does “Detect More” yield anything.

Any idea as to what might be wrong?

Thanks in advance.

Install the RPMs from here as the drivers: Brother Solutions Center : Brother Driver for Linux Distributions
Install lpr first and wrapper second.

Then in your browser enter this address

http://localhost:631

then configure the printer in that web admin interface. Use the root password when asked.

Reference: http://opensuse.swerdna.org/susehl2040.html

To add to swerdna,

you have to install the drivers packages in the following order :

  1. the lpr driver
  2. the cups driver

I’ve tried that way once already - and failed.
However I tried it just now again and here’s what I get
For “rpm -i hl1230lpr-1.1.2-1.i386.rpm”


/var/tmp/rpm-tmp.uicQef: line 2: /etc/init.d/lpd: No such file or directory
warning: %post(hl1230lpr-1.1.2-1.i386) scriptlet failed, exit status 127

Needless to say, cupswrapper refuses to install after that because of failed dependencies. (lpr missing)

What am I missing?

Am Fri, 23 Dec 2011 18:26:02 +0000 schrieb Aquinox:

> I’ve tried that way once already - and failed.
> However I tried it just now again and here’s what I get For “rpm -i
> hl1230lpr-1.1.2-1.i386.rpm”
>
> Code:
> --------------------
>
> /var/tmp/rpm-tmp.uicQef: line 2: /etc/init.d/lpd: No such file or
> directory warning: %post(hl1230lpr-1.1.2-1.i386) scriptlet failed,
> exit status 127
> --------------------
>
>
> Needless to say, cupswrapper refuses to install after that because of
> failed dependencies. (lpr missing)
>
> What am I missing?

I am not sure if your printer is in the database. Lets just assume it is
not.
My printer is a HL2240D which is not in it. You do get a driver and it
may work, but its best to use cups.

Uninstall the drivers you had installed and install it via terminal. Make
yourself su.

rpm -ihv --nodeps hl2240dlpr-2.1.1-1.i386.rpm
rpm -ihv --nodeps cupswrapperHL2240D-2.0.4-2.i386.rpm
rpm -qa | grep -e hl2240dlpr-2.1.1-1.386.rpm -e
cupswrapperHL2240D-2.0.4-2.i386.rpm

After that you open the browser of your choice and type (as already
mentioned) http://localhost:631/printers/

There you should see your printer (if everything was succesful) and if
your printer is in the database you will see the driver for your printer.
If not you need to use a driver that is closest to yours.

But wait, do you use USB or Serial? This is for USB connection and may
not work for serial connection.

Check this page also http://en.opensuse.org/HCL:Printers

What does this return:

rpm -qa | egrep "lpr|wrapper|ghostscript"

For “rpm -i hl1230lpr-1.1.2-1.i386.rpm”

Where did you get that rpm from? (Looks like you’re trying to install an old version). I’ve just checked the Brother website, and the packages are

hl2130lpr-2.1.0-1.i386.rpm
cupswrapperHL2130-2.0.4-2.i386.rpm

Am Fri, 23 Dec 2011 18:56:02 +0000 schrieb swerdna:

> What does this return:
> Code: --------------------
> rpm -qa | egrep “lpr|wrapper|ghostscript”
> --------------------

It supposed to return the installation of the driver. Like yes i am
installed. It is from the brother page.

I get the following


LinDevNV:~ # rpm -qa | egrep "lpr|wrapper|ghostscript"
ghostscript-fonts-rus-9.00-4.10.1.noarch
ghostscript-fonts-std-9.00-4.10.1.noarch
hl1230lpr-1.1.2-1.i386
ghostscript-library-9.00-4.10.1.x86_64
ghostscript-x11-9.00-4.10.1.x86_64
OpenPrintingPPDs-ghostscript-4.0.0-11.1.2.noarch
ghostscript-cjk-20050315-152.1.noarch
ghostscript-fonts-other-9.00-4.10.1.noarch
nspluginwrapper-1.3.0-4.1.x86_64

Though the LPR RPM seems installed I still get


LinDevNV:/home/aquinox/Downloads # rpm -i cupswrapperHL1230-1.0.2-1.i386.rpm
error: Failed dependencies:
        lpr is needed by cupswrapperHL1230-1.0.2-1.i386

@joergjaeger
As I’ve written above, the printer is connected on parallel port (the broad 20-pin one) not on serial and not on USB.

@deano
I’ve got that version from the link swerdna posted. I’m going to look for the version you mentioned and see what happens now…

Ok. Update.

@deano
The model is HL-1230 not HL-2130, therefore the driver version is correct. But your link pointed me to the installation prerequirements (point Nr 3), where it is told, that one has to create a soft link to cups


ln -s /etc/init.d/cups /etc/init.d/lpd

That took care of the errors when installing LPR. Installation of cupswrapper still fails though:


LinDevNV:/home/aquinox/Downloads # rpm -i hl1230lpr-1.1.2-1.i386.rpm
Shutting down cupsd..done
Starting cupsd..done
LinDevNV:/home/aquinox/Downloads # rpm -i cupswrapperHL1230-1.0.2-1.i386.rpm
error: Failed dependencies:
        lpr is needed by cupswrapperHL1230-1.0.2-1.i386

Ok, now as joergjaeger suggested, try

rpm -ihv --nodeps cupswrapperHL1230-1.0.2-1.i386.rpm

Then configure with the CUPS web interface.

Well with the flags “-ihv --nodeps” the cupswrapper installed and I can see the printer in the Printer config of Yast.

But…though I can see the printer in Yast not even a test page can be printed (neither with the brother driver, nor with the OpenPPD Foomatic driver).
And CUPS itself, if administrated through the web interface says me that there are no local printers and can’t add this one.

In Yast, after a failed attempt at printing the test page I get the info that the printer is not connected. Although it is connected to the PC and running…

NB: the connection is listed as usb:/dev/usb/lp0

So, your printer is a parallel connected device? It may be that you need to load the ‘lp’ module first.

modprobe lp

Then see if your printer is detected by the CUPS web interface. Start over with the configuration if necessary. This was reported as a bug

[Bug 673845] New: YaST2 does not detect printers on the LPT port - lp ke](http://lists.opensuse.org/opensuse-bugs/2011-02/msg04524.html)

although it is probably because parallel port devices are no longer in common use. If required, you can make sure this module is loaded at boot (via yast).

Am Sat, 24 Dec 2011 01:46:02 +0000 schrieb Aquinox:

> Well with the flags “-ihv --nodeps” the cupswrapper installed and I can
> see the printer in the Printer config of Yast.
>
> But…though I can see the printer in Yast not even a test page can be
> printed (neither with the brother driver, nor with the OpenPPD Foomatic
> driver).
> And CUPS itself, if administrated through the web interface says me that
> there are no local printers and can’t add this one.
>
> In Yast, after a failed attempt at printing the test page I get the info
> that the printer is not connected. Although it is connected to the PC
> and running…
>
> NB: the connection is listed as usb:/dev/usb/lp0

I am not sure if that will help, but since you connect it via parallel
port you may have a look onto this webpage.
http://beej.us/hl2040/

On 12/23/2011 03:46 AM, Aquinox wrote:
…]
> But now I’ve finally got a new drum and cartridge for my brother
> HL-1230 and, seeing as OS11.4 is my main system, decided to install it
> on the mentioned OS11.4x64.
>
> The printer is connected at parport, using “Yast>Hardware” I can see it
> is connected as /dev/lp0. And detected as HL-1230 series.
>
> Now comes the problem:
>
> Look as I may in “Yast> Printers” (or equiv. CUPS) I can not
> install/register the printer in CUPS.
> At first I thought there were dirvers missing(b/c looking for HL-1230
> did not yield anything), so I downloaded some more and now there are
> some HL-1230 Foomatic drivers.
> The situation however, did not change.
> I still can’t install the printer - neither can I select it manually
> (it’s not listed as being on parallel connection), nor does “Detect
> More” yield anything.
…]

In the newsgroup “alto.os.linux.suse”, there is a thread about a similar
problem with configuring a parallel-port printer. The gist of the
discussion is:
(1) openSUSE has dropped the parallel port support by default,
(2) The remedy suggested by 'Achim Klausmann" is subscribe to
http://download.opensuse.org/repositories/Printing/openSUSE_12.1
and download “parallel-printer-support”.

This is about openSUSE 12.1. So, the situation may be different with
11.4. I can confirm, on my old computer with oS12.1, that I could not
configure my HL-2040 (USB and parallel ports) with YaST or
CUPS(localhost:631). Lately, I’ve been configuring the HL-2040 through
CUPS without the Brother packages, using “Bother 2060
Focomatic/hlijs-pcl5e” with a satisfactory result.

That took care of the problem.

After issuing “modprobe lp” as root I deleted the printer vie CUPS’s webinterface and added it there again.
Now it is mounted as “parallel:/dev/lp0” and works just fine the way I see it.

So I guess it was the problem of parport being unused by default.

Thanks a bunch guys!

And a merry Christmas to all of you who celebrate it!lol!

Am Sat, 24 Dec 2011 23:36:03 +0000 schrieb Aquinox:

> deano_ferrari;2421933 Wrote:
>> So, your printer is a parallel connected device? It may be that you
>> need to load the ‘lp’ module first.
>> >
> Code:
> --------------------
> > > modprobe lp
> --------------------
>> >
>> Then see if your printer is detected by the CUPS web interface.
>> Start over with the configuration if necessary. This was reported as a
>> bug
>>
>> ‘[Bug 673845] New: YaST2 does not detect printers on the LPT port -
>> lp ke’ (http://lists.opensuse.org/opensuse-bugs/2011-02/msg04524.html)
>>
>> although it is probably because parallel port devices are no longer in
>> common use. If required, you can make sure this module is loaded at
>> boot (via yast).
>
> That took care of the problem.
>
> After issuing “modprobe lp” as root I deleted the printer vie CUPS’s
> webinterface and added it there again.
> Now it is mounted as “parallel:/dev/lp0” and works just fine the way I
> see it.
>
> So I guess it was the problem of parport being unused by default.
>
> Thanks a bunch guys!
>
> And a merry Christmas to all of you who celebrate it!lol!

Well, at least its solved. :slight_smile:
Happy printing.

And yes, happy holidays as well.

Well done. Just remember this won’t survive a reboot, without making sure that the ‘lp’ module is loaded on boot. I’m not running openSUSE 12.1 yet, so not sure about the intricacies of doing this, but this thread might help if necessary:

http://forums.opensuse.org/english/get-technical-help-here/install-boot-login/468261-printer-recognition-yast-failed-12-1-a.html