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:
/usr/lib/cups/backend/smb → /usr/bin/smbspool |
Make sure you have satisifed the above pre-requisites.
sudo yum install net-print-1.2.1-0.x86_64.rpm
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo /opt/netprint/client/install_netprintpc_printer.pl -g
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 |
For the "device URI", you will use these UNIX SMB URIs :
Printer Name | UNIX SMB URI | Accessible by |
|---|---|---|
| Cad Room | smb://win2.net-print.cornell.edu/cnf-cad-1c | CNF Users & Staff |
| Togging | smb://win2.net-print.cornell.edu/cnf-togging-2c | CNF Users & Staff |
| Visitor Office | smb://win2.net-print.cornell.edu/cnf-gradoffice | Staff & Users with Visitor Office Access |
| Konica | smb://win2.net-print.cornell.edu/cnf-konica-color | CNF Staff Only |
| LJ4700 | smb://win2.net-print.cornell.edu/cnf-prnt250lj | CNF Users during normal CNF office business hours (CNF Staff anytime) |
| Office 262 | smb://win2.net-print.cornell.edu/cnf-prnt262 | CNF Staff Only |
The CUPS printer GUI is located at the following URL:
http://localhost:631
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
lpadmin -p <your_name_for_the_print_queue> -E -P </path/to/PPD-file> -o auth-info-required=username,password -v '<SMB URI>'
Printer Error Policy
The default Error Policy on some linux distributions is to stop the printer queue from processing more print jobs A better choice is to either retry the job or to abort the job.
List the installed printer queues:
$ lpstat -a cnf-cad-1c accepting requests since Mon 27 Nov 2017 11:11:49 AM EST cnf-konica-color accepting requests since Tue 30 Oct 2018 01:58:19 PM EDT cnf-prnt250lj accepting requests since Thu 31 Jan 2019 03:27:23 PM EST cnf-togging-2c accepting requests since Mon 27 Nov 2017 11:11:49 AM EST |
Set the error policy for each printer queue to abort the job (eg for the CAD rm printer):
$ sudo lpadmin -p cnf-cad-1c -o printer-error-policy=abort-job |
Before doing the following, first stop CUPS. Once you have made changes, restart CUPS.
DeviceURI smb://cornell/win2.net-print.cornell.edu/cnf-cad-1c
Do the above for each printer. Save your changes. And restart CUPS
In the Print dialogue, select the Net-Print printer.
When prompted for your username and password, for your username use: cornell\<NetID> or cornell\<GuestID> – that's the lowercase word "cornell" followed by a backslash followed by your NetID or GuestID.
Your document prints.