Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Ensure that CUPS is installed and started.
  • Ensure that the SAMBA4 client packages are installed (SAMBA 3 will not work). If your distribution does not include a default smb.conf config file (usually in /etc/samba), you will need to follow your distribution's instructions to create a default smb.conf .
  • Edit the Samba config file (usually /etc/samba/smb.conf) to contain the following two directives in the "[global]" section:

              client min protocol = SMB2
              client max protocol = SMB3
        
  • Ensure the following symlink exists:

    Code Block
    languagebash
    /usr/lib/cups/backend/smb → /usr/bin/smbspool
  • If using the PaperCut installers, ensure that CURL is installed.
  • If using the PaperCut installers, obtain the installer packages from CNF Computing.

...


  • For HP printers, we recommend installing the hplip package if available for your distro. Otherwise, your configuration may use generic postscript drivers lacking some of the printer features.


Installing

Make sure you have satisifed the above pre-requisites.

RedHat/Debian/Ubuntu/Mint - PaperCut installers

...

...

RedHat

...

sudo yum install net-print-1.2.1-0.x86_64.rpm

...

  1. Install additinoal pre-requsities:
    1. python3
    2. gnome-terminal
    3. curl
    4. Java8 JRE
      1. sudo add-apt-repository ppa:webupd8team/java
      2. sudo apt-get update
      3. sudo apt-get install oracle-java8-installer
  2. Install the Debian Net-Print package itself.

...

-

...

ArchLinux - PaperCut installers

...

Start CUPS via: 

 

...

systemctl restart org.cups.cupsd.service

...

Install yaourt:

 

pacman -S yaourt

...

As a non-root user, install dpkg:

 

yaourt dpkg

You will be prompted to edit the package build. Choose No. Otherwise, install the missing prereqs and let the build take place.

...

 

...

dpkg -i --ignore-depends=smbclient,python3,default-jre,gnome-terminal,curl . /net-print_1 .2-1.deb

Run, as root, the Net-Print installer:

 

...

/opt/netprint/client/install_netprintpc_printer .pl -g

...

RedHat - Printer configuration GUI

  1. Start the Printer configuration tool at System - Administration - Printing
  2. Click New
  3. Enter the administrative password
  4. You do not need to adjust the firewall or attempt to List available devices
  5. For the "device URI", you will use these UNIX SMB URIs :

    Printer Name
    UNIX SMB URI
    Accessible by
    Cad Roomsmb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-cad-1cCNF_Phillips_CAD_Color_LaserjetCNF Users & Staff
    Toggingsmb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-togging-2cCNF_Duffield_Togging_Color_LaserjetCNF Users & Staff
    Visitor Officesmb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-gradofficeCNF_Duffield_Grad_Ofc_Color_LaserjetStaff & Users with Visitor Office Access
    Konicasmb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-konica-colorCNF_Duffield_Copier_ColorCNF Staff Only
    LJ4700Office 250smb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-prnt250ljCNF_Duffield_250_Color_LaserjetCNF Users during normal CNF office business hours (CNF Staff anytime)
    Office 262smb://win2.net-printrs-cnf-wp1.cnf.cornell.edu/cnf-prnt262CNF_Duffield_262_Color_LaserjetCNF Staff Only


  6. If a driver is not found, you will have to download a driver via the printer gui or separately from the manufacturer's website.

...

The CUPS printer GUI is located at the following URL:

        http://localhost:631

 


  1. Use the UNIX SMB URIs from the above  "RedHat - Printer configuration GUI" section.
  2. Enable authentication for the print queue
    1. If you cannot enable authentication via the CUPS web gui, edit file /etc/cups/printers.conf to add a line for the NetPrint queue:

      AuthInfoRequired username,password

...

  1. Download a PPD for the model of printer
  2. Get the SMB URI for the printer from the sections above
  3. As root or sudo'ed, run the following command (substituting in for the brackets)
    lpadmin -p <your_name_for_the_print_queue> -E -P </path/to/PPD-file> -o auth-info-required=username,password -v '<SMB URI>'

 

...



Post-Installation Optional Steps

...

Fixing LibreOffice Cannot Print

With the new CNF Thin service available beginning November 2019, printing in LibreOffice works. You do not need to do anything other than print.

If you are using an older version of LibreOffice, follow the below You will not be able to print from LibreOffice without performing the following steps:

  1. Start LibreOffice
  2. Under the Tools menu, choose Options.
  3. In the Options window, under "LibreOffice", choose "Advanced".
  4. Check "Enable experimental features".
  5. Click OK.
  6. Go back to Tools menu and Options.
  7. Under "LibreOffice", choose "General".
  8. Uncheck "Use LibreOffice dialogs" under the "Print dialogs" heading.
  9. Click "OK".
  10. Printing from LibreOffice now works.