Difference between revisions of "Setting up a UiO printer on an non-UiO Linux installation"

From medicin.ncmm.IT
Jump to: navigation, search
(Created page with "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* *sa...")
(No difference)

Revision as of 19:39, 29 May 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://rozabl@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 part here is

AuthInfoRequired username,password

in order to force the system to prompt with a username and a password


[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


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