Installing New Driver for Brother HL-5340D

I’m running SUSE 11.1 and need to install a new printer connecting via Samba. The driver is not on 11.1 and I downloaded the possible drivers. But which driver to I use? Do I use both the CUPS and LPR drivers. The instructions from Brother are confusing. Any assistance much appreciated.
Thank you

so you should go here

Brother Solutions Center : Brother Driver for Linux Distributions

and download the rpm versions of the lpr and the cupswrapper drivers

If you go here

Brother Solutions Center : Brother Driver for Linux Distributions

you get install instructions

so you install the lpr first;

and you need to have changed directory to your download directory; (if it is called downloads, in a terminal you type

cd downloads
and then enter

and you need to log in as root to install: so you enter su in the terminal, and then your root password

Step 4. Install LPR driver
4-1. Turn on the printer and connect the USB cable.
4-2. Open the terminal and go to the directory where the drivers are.
4-3. Install LPR driver

    Command for rpm  :  rpm  -ihv  --nodeps  (lpr-drivername) 

they give as an example

rpm -ihv --nodeps hl5340dlpr-1.0.1-1.i386.rpm

then on to install the cupswrapper; example would be

rpm -ihv --nodeps hl5340dcupswrapper-1.0.1-1.i386.rpm

Brother are very thorough: they suggest checking the drivers are installed: see the guide for howto if you feel inclined

then check CUPS is happy

Step 5a. (for USB Connection) Check your printer on the cups web interface
5a-1. Open a web browser and go to “http://localhost:631/printers”.

    Check if the Device URI of your printer is "usb://Brother/(your printer's model name)" 
    Example of a USB printer entry
    If the device URI is different from the example above, please go to "Modify Printer" of your printer to select proper device and driver. 

Brother are very good, and make good drivers available for linux;

let us know how you get along

This printer is not connected to the Linux box, I’m connecting via Samba. Does this make a difference? This is the confusing part. Will the new driver show up under the Brother list of printers.

I tried the commands but get error message “can’t create transaction lock on /var/lib/rpm/__db.000”

I suppose the problem is that I was not logged in as root. When I installed 11.1 form 11.0, the process did not ask for root password. I only have my notes when I installed 11.0, the root P/W and now that is wrong. Do I throw the PC away now.

I feel sure that 11.1 must have asked you for a password at some point in its install;

so: to try to find a root password, have a read through this lot:

Recover Root Password - openSUSE

a second thought would be to identify if the install of 11.1 created two separate partitions: one (separate) partition called home; that your personal files are on; and a separate one where the main install of 11.1;

but see how you go on the above first

there is a fair bit of geek talk in the posting, so come back to the forum if you are pulling your hair out:

there will be others knowing much more than me to guide you in the some of procedures on the finding the root password

are you good to go on this last post?

ideally; find the install CD or DVD that you used for 11.1;

(or just burn a new installCD for 11.1)

boot with that; select Rescue Mode

find out too before you do all this where 11.1 is mounted; if you go to YaST on your installed system; and the partitioner section: it will say: warning but accept that and just LOOK;

if ID , likely /dev/hda1


You enter root and then mount the disk manually

For example, an IDE drive will probably be /dev/hda1

if so, then

mount -o remount,rw /dev/sda2 /mnt

then three separate commands

cd /mnt

chroot /mnt


I understand that last command to allow you to enter a new password? a more knowledgable person may well be able to clarify

and the procedure says

you are root in the installed sytem, with all at hand: passwd, but also YaST…

so let us know how it gets along

if I say, as I often do: linux is for adults; it’s your system; you will be choosing to do things to your system; and back up any important personal files’;

OK, I don’t have to throw the box away. P/W for su is same as mine. I installed the drivers OK. But still having trouble with the printer working with Samba. I get access denied. But a little progress…

Now that you have the drivers installed, have a read of this samba printing HOW TO.

OK, after working all afternoon, I finally got it to print a test page. Big problem (maybe) was entering the correct password for the Windows server. Maybe the firewall too. Thank you very much for all the assistance. Just a few minutes ago I was about to give up. Linux doesn’t make it easy unless you use this stuff everyday.:slight_smile:

Congratulations! Your now a samba printer guru. Pass your new found knowledge on when you get the opportunity. :wink: