Difference between revisions of "Setting up a UiO printer on an non-UiO Linux installation"
From medicin.ncmm.IT
Line 70: | Line 70: | ||
− | Download Ricoh-MP_C4504ex.ppd from [https://www.openprinting.org/printer/Ricoh/Ricoh-MP_C4504ex] | + | Download Ricoh-MP_C4504ex.ppd from [https://www.openprinting.org/printer/Ricoh/Ricoh-MP_C4504ex https://www.openprinting.org/printer/Ricoh/Ricoh-MP_C4504ex] |
replace USER with appropriate username | replace USER with appropriate username |
Revision as of 12:56, 5 June 2019
install the following:
dnf install samba-common-tools samba system-config-printer-libs.noarch system-config-printer-udev.x86_64 system-config-printer-udev.x86_64 *krb5* *samba*
vim /etc/cups/printers.conf
# Printer configuration file for CUPS v2.2.8 # Written by cupsd on 2019-05-29 17:01 # DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING <DefaultPrinter Ricoh> UUID urn:uuid:d4264f0e-330e-392b-54cb-d7481117480c AuthInfoRequired username,password Info Ricoh Location Kopyrom MakeModel Ricoh MP C4504ex PDF DeviceURI lpd://USER@pullprint.uio.no/Ricoh State Idle StateTime 1559142101 ConfigTime 1559141597 Type 12540 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer </DefaultPrinter>
The important parts here is
AuthInfoRequired username,password
in order to force the system to prompt with a username and a password
and USER must be replaced with a valid NCMM user
DeviceURI lpd://USER@pullprint.uio.no/Ricoh
[georgmar@bioteklin210 ~]$ cat
# See smb.conf.example for a more detailed config file or # read the smb.conf manpage. # Run 'testparm' to verify the config is correct after # you modified it. [global] workgroup = UIO security = user passdb backend = tdbsam printing = cups printcap name = cups load printers = yes cups options = raw client max protocol=SMB3
Important parts here:
- workgroup set to UIO
- client max protocol=SMB3
Restart the above services
sudo systemctl restart cups.service sudo systemctl restart smbd.service
Make sure SELinux does not cause any troubles
sudo audit2allow -a -M kotkot1 sudo semodule -i kotkot1.pp
Download Ricoh-MP_C4504ex.ppd from https://www.openprinting.org/printer/Ricoh/Ricoh-MP_C4504ex
replace USER with appropriate username
kinit USER@uio.no sudo lpadmin -x Ricoh sudo lpadmin -E -U USER -p Ricoh -E -v lpd://USER@pullprint.uio.no/Ricoh -m Ricoh-MP_C4504ex -P ./Ricoh-MP_C4504ex.ppd -L "Kopyrom" -o auth-info-required=username,password sudo lpadmin -E -U USER -d ricoh sudo cupsaccept -E -U USER ricoh sudo cupsenable -E -U USER ricoh lpr -E ./out lpq -E
The big surprise here was that USIT uised the line printing protocol (ldp://) for linux instead of SMB. And of course they did not tell us