Brother Solutions Center
This is an old page, please visit http://solutions.brother.com/linux/en_us for the latest information.

Installing a Brother driver into a CUPS based Linux system

Notes

  • Note for SuSE Users:
    If you are using a later version of SuSE than version 9.0, set the password for CUPS using the lppasswd command:#lppasswd -g sys -a root
    This requires you to enter a password that is used specifically for CUPS administration.
  1. Connect your machine to the pc or the network and turn it on.
  1. Make a temporary directory on your HDD and download both the LPR driver and cupswrapper driver to that directory.
  1. Log in as root user or use the "su" command.
  1. Install the LPR driver.

    (i.e)
    For dpkg Users:
    dpkg -i --force-all --force-architecture hl4040cnlpr-1.0.0-7.i386.deb

    For rpm Users:

    rpm -ihv --nodeps hl4040cnlpr-1.0.0-7.i386.rpm
Notes
If you already have a Brother LPR driver installed, you may receive an error message. In this instance, run the install command again and use the :
--force-all(For dpkg Users) or --force(For rpm Users) switches...

  1. Install the cupswrapper driver.

    (i.e)
    For dpkg Users:
    dpkg -i --force-all --force-architecture hl4040cncups-1.0.0-7.i386.deb

    For rpm Users:
    rpm -ihv --nodeps hl4040cncups-1.0.0-7.i386.rpm
  1. Open your browser and enter: "http://localhost:631"
  1. Click on “Manage Printers” and confirm that the device name is listed there.
    If the device name is NOT listed there, click on "Add Printer" and install the driver following the on-screen instructions.

  1. The default port is USB. If you want to use a different port, click on “Modify Printer” and select the required printer port.
  1. If SELinux is working on your system, some configuration for SELinux is required. Please set your SELinux "permissive" or refere the FAQ for SELinux.

    Link to the FAQ: I want to print using CUPS while keeping SELinux enabled.

The print settings of the driver

You can change the print settings using the “Configure Printer” option in the CUPS web interface or by using lpr from the command line.

Using the "Configure Printer" option in the CUPS web interface...
click here to refer to the detail of the setting.

Using the command line...
For example, if you want to print the file “brother.ps” in A4 size, write the script as below:
lpr -P HL4040CN -o PaperType=A4 brother.ps
The below is the list of the command option.
features value
Media -o MediaType=Plain
-o MediaType=Thin
-o MediaType=Thick
-o MediaType=Thicker
-o MediaType=BOND
-o MediaType=Recycled
-o MediaType=Env
-o MediaType=EnvThin
-o MediaType=EnvThick
-o MediaType=PostCard
-o MediaType=Label
Resolution -o BRResolution=Normal
-o BRResolution=CAPT
Mirror Print -o BRMirror=OFF
-o BRMirror=ON
Paper Size -o Paper=A4
-o Paper=Letter
-o Paper=Legal
-o Paper=Executive
-o Paper=A5
-o Paper=A6
-o Paper=ISOB5
-o Paper=ISOB6
-o Paper=B5
-o Paper=EnvDL
-o Paper=EnvC5
-o Paper=Env10
-o Paper=EnvMonarch
-o Paper=BrOrgJ
-o Paper=BrOrgK
-o Paper=Statement
-o Paper=Br3x5
-o Paper=BrA4Long
-o Paper=FanFoldGermanLegal
-o Paper=EnvPRC5Rotated
-o Paper=PostCard
Paper Source -o InputSlot=AutoSelect
-o InputSlot=Tray1
-o InputSlot=Tray2
-o InputSlot=MPTray
-o InputSlot=Manual
Color Or Mono -o BRMonoColor=Auto
-o BRMonoColor=Color
-o BRMonoColor=Mono
Color Match -o BRColorMatching=MatchMonitor
-o BRColorMatching=VividText
-o BRColorMatching=None
Enhanced Black Printing -o BREnhanceBlkPrt=OFF
-o BREnhanceBlkPrt=ON
Brightness [-20 - +20]
Contrast [-20 - +20]
Redkey [-20 - +20]
Greenkey [-20 - +20]
Bluekey [-20 - +20]
Gray (Improved Gray) -o BRGray=OFF
-o BRGray=ON
Toner Save Mode -o TonerSaveMode=OFF
-o TonerSaveMode=ON
Reverse -o BRReverse=OFF
-o BRReverse=ON
Duplex -o Duplex=None
-o Duplex=DuplexTumble
-o Duplex=DuplexNoTumble

Legal | Global Site