Step by step guide to set up printing

This is a step-by step guide to add the new SHARP printers to your CUPS configuration under Linux.


As a preparation, make sure that the hpijs, foomatic, smbclient, and cifs-utils packages are installed on your computer.


After you have installed the necessary packages, on newer (>2018) linux installations, you may need to edit the file /etc/samba/smb.conf. After the line

workgroup = WORKGROUP
add the line
client max protocol = NT1
On Ubuntu 20.04 (and maybe other distributions using some (newer?) versions of smbclient/samba) it may be necessary to also add the line
client min protocol = NT1


You will also need a username (which will be the part of your email address before the @wigner.mta.hu) and a password (obtained from gazdadmin@wigner.mta.hu. You will also need either your entry card or a PIN code to use the printer. Note that the password and the PIN codes are not the same!


First go to http://localhost:631 and click Add Printer! If you are asked for a password, you shall enter the username and password you use on your computer (on Ubuntu), or "root" and the root password on your computer (e.g. SuSE Linux). Step 1


Select Windows Printer via SAMBA! Step 2


Enter

smb://username:password@148.6.176.180/WFK_Masolo_Net$
in the URI box.
Replace username and password with your username (the part of your email address before @wigner.mta.hu) and password (given to you by the system administrator of the Financial Department) and not the PIN code.
Step 3


Give the printer a name (recommended: SharpSafeQ), and fill in the description and location (both optional). Step 4


Select Generic as the printer make. Step 5


Select Generic PCL 6/PCL XL Printer Foomatic/hpijs-pcl5c (en) as the Printer Model. Step 6 If you cannot find a driver for a Generic PCL 6 printer (and you are sure that you have foomatic and hpijs installed on your computer), save this ppd file on your computer, and then click Browse and then select the file you just saved.


Set the Default Options as shown in the picture. It is recommended to set Greyscale as the default (use color only if necessary, it is much more expensive) and Long-edge double sided printing to save paper. Step 7


Please do not print a test page. It should work now.


Scanning

Shorter scan jobs can be sent to your email address. If you do not want to do scan jobs that produce very large files (more than a few tens of megabytes), you do not need to set up anything.

To scan large files, that you cannot receive in an email, you need to mount the windows share. For this purpose, add the line:

//148.6.176.180/Szkenner$/printer.uname /mnt/scanner cifs credentials=/home/linuxuname/.scanneruname,iocharset=utf8,noauto,user 0 0
to your /etc/fstab file, replacing printer.uname with your username used for printing (the part of your email address before @wigner.mta.hu) and linuxuname with your username on your computer. Use copy-paste from here! Spaces are also important.

You should also save the file .scanneruname in your home directory, and edit it to replace printer.uname with your username used for printing (the part of your email address before @wigner.mta.hu) and the password you received for printing (not the PIN). To prevent other users of the computer from reading your password, run the command

chmod 600 ~/.scanneruname
Also (as root) create the directory /mnt/scanner on your computer:
sudo mkdir /mnt/scanner
Now, you can access your scanned documents by issuing
mount /mnt/scanner
and find the scanned files in /mnt/scanner.

On certain OpenSuSe versions, users cannot mount the shared folder (an error message is displayed). This can be fixed by issuing as root the following commands:

chmod u+s /sbin/mount.cifs
chmod u+s /sbin/umount.cifs