Skip to content

Instantly share code, notes, and snippets.

@smoser
Last active January 22, 2020 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smoser/83580b7729edc9c71660f62d5a7e859b to your computer and use it in GitHub Desktop.
Save smoser/83580b7729edc9c71660f62d5a7e859b to your computer and use it in GitHub Desktop.
printer setup brother mfc9125-cn

Printer configuration / setup

This is to configure the 'Brother MFC-9125CN' for cups.

Installation

  • get deps (needs libc6-i386 if x86_64)

    sudo apt-get install --quiet --no-install-recommends --assume-yes libc6-i386 cups avahi-daemon
    
  • Install debs (needs force if this is x86_64) sudo dpkg -i --force-architecture mfc9125cnlpr-1.1.2-1.i386.deb mfc9125cncupswrapper-1.1.2-2.i386.deb

    # it installs ppds in these places:
    #   /usr/share/ppd/Brother/brother_mfc9125cn_printer_en.ppd
    #   /usr/share/cups/model/Brother/brother_mfc9125cn_printer_en.ppd
    #   /opt/brother/Printers/mfc9125cn/cupswrapper/brother_mfc9125cn_printer_en.ppd
    #
    # That meansn 'lpinfo -m' would show 2 of them (not the /opt).  
    # Delete one to remove confusion.
    $ rm /usr/share/cups/model/Brother/brother_mfc9125cn_printer_en.ppd
    
  • Add the printer to cups

    $ lpinfo -m | grep -i mfc9125cn.*ppd
    lsb/usr/Brother/brother_mfc9125cn_printer_en.ppd Brother MFC-9125CN CUPS
    
    $ printer_hostname="printer"
    $ lpadmin -p moser-printer -E \
        -D "MFC9125 Office Printer" \
        -L "Office" \
        -m "lsb/usr/Brother/brother_mfc9125cn_printer_en.ppd" \
        -v lpd://${printer_hostname}/BINARY_P1 \
        -o printer-is-shared=true
    
  • Enable Sharing

    sudo cupsctl --share-printers
    

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment