Search This Blog

Showing posts with label printing. Show all posts
Showing posts with label printing. Show all posts

Set up Epson Workforce 435 Printer on Ubuntu 20.04

I. Install Epson WorkForce 435 driver for Ubuntu Linux

  • Install lsb
    sudo apt install lsb
  • Download Epson Workforce 435 driver from OpenPrinting.org: .deb for Debian/Ubuntu x64
  • Install the Epson Workforce 435 driver:
    sudo apt install ~/Downloads/epson-inkjet-printer-201109w_1.0.0-1lsb3.2_amd64.deb
  • Go to Settings -> Printers and select the Workforce-435 printer, click the "Gear" icon then select Printer Details.
  • In the printer details window, click Select from database then select "Epson" from the left side panel, then select "Epson WorkForce 435 Series - epson-inkjet-printer 1.0.0-1lsb3.2" at the bottom of the right side panel.



II. Fix printer error caused by apparmor

At this point, the Epson WorkForce 435 driver has been installed. However, printing to the printer is still not working. You may see error message pops up: "Printer error - connecting to device". This is because the driver we've installed is from 3rd party. The Ubuntu apparmor protects cupsd from accessing this driver. To solve the issue:
  • Install apparmor-utils
    sudo apt install apparmor-utils
  • sudo aa-complain cupsd; sudo aa-complain cups-browsed
  • Restart the computer.
  • Print a test page. If it works, check /var/log/syslog and look for apparmor related lines and see if any permissions need to be added to /etc/apparmor.d/usr.sbin.cupsd or /etc/apparmor.d/usr.sbin.cups-browsed
  • sudo app-enforce cupsd; sudo aa-enforce cups-browsed
  • Restart the computer and make sure the printing is still works.



See also

CUPS: Unknown Name and Withheld User in the job list

In the recent cups, the document file name and the user name are not displayed:

Solution

To display the job document file name and the user name:
  • Edit /etc/cups/cupsd.conf: change
    JobPrivateValues default
    to
    JobPrivateValues none
  • Restart cupsd:
    sudo /etc/init.d/cups restart

Evince (Doc Viewer) on Ubuntu 13.10 fails to print to Toshiba e-Studio 4540c printer

ps error: invalidaccess
It fails to print, the job is marked as invalid. You can see the job from the INVALID job list. Select the job then re-print (Need to login with your department code at the printer, then select print then job status), it should work.
alternatively you can install and use adobe reader.

cups: /usr/lib/cups/filter has insecure permissions

Installed to printers without error. But it failed to print with error in /var/log/cups/error_log:
E [11/Oct/2013:07:43:44 +1100] FujiXerox-DocuPrint-C3300DX: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:07:43:44 +1100] FujiXerox-DocuPrint-C3300DX: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:07:43:44 +1100] FujiXerox-DocuPrint-C3300DX: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:07:43:44 +1100] TOSHIBA-eStudio-4540C: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:07:43:44 +1100] TOSHIBA-eStudio-4540C: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:14:25:19 +1100] FujiXerox-DocuPrint-C3300DX: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:14:25:19 +1100] [Job 3] Unable to start filter "pdftopdffx" - Success.
E [11/Oct/2013:14:25:19 +1100] [Job 3] Stopping job because the scheduler could not execute a filter.
E [11/Oct/2013:14:28:28 +1100] TOSHIBA-eStudio-4540C: Directory "/usr/lib/cups/filter" has insecure permissions (042775/uid=0/gid=0).
E [11/Oct/2013:14:28:28 +1100] [Job 4] Unable to start filter "pdftopdf" - Success.
E [11/Oct/2013:14:28:28 +1100] [Job 4] Stopping job because the scheduler could not execute a filter.
E [11/Oct/2013:14:30:20 +1100] [Job 3] Stopping unresponsive job.
E [11/Oct/2013:14:33:29 +1100] [Job 4] Stopping unresponsive job.

The solution is simle, run the following command as root:
sudo chmod 2755 /usr/lib/cups/filter

Ubuntu 13.04: cups server not starting

The cups server is not started when the system starts. This causes the cups client fails to connect to cups server. You can manually start the server by
sudo /etc/init.d/cups start
but to solve the problem completely, you need to install avahi-daemon package:
sudo apt-get install avahi-daemon

Ubuntu Linux: BADSIG error for openprinting

  • Description:
    W: GPG error: http://www.openprinting.org lsb3.1 Release: The following signatures were invalid: BADSIG 7A4B44C2D2A2203E OpenPrinting (OpenPrinting Test Key) <webmaster@openprinting.org>
  • Solution:
    edit /etc/apt/sources.list, and replace
    deb http://www.openprinting.org/download/printdriver/debian/ lsb3.1 gutenprint
    with
    deb http://www.openprinting.org/download/printdriver/debian/ lsb3.2 main
    then run
    sudo apt-get update

Ubuntu: NO PUBKEY for www.openprinting.org

  • Description:
    when running apt-get update, got the following error:
    W: GPG error: http://www.openprinting.org lsb3.2 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7A4B44C2D2A2203E
  • Solution:
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7A4B44C2D2A2203E
    sudo apt-get update

Toshiba Studio printer fails to print with error: invalidfont

  • Description:
    Trying to print to Toshiba eStudio 4540C multifunction machine (with official TOSHIBA ColorMFP PPD), got the following error:
    ERROR:
    invalidfont
    OFFENDING COMMAND:
    $definefont
    STACK:
    --nostringval--
    /TVZYWM+Ubuntu-Medium
    --nostringval--
    /TVZYWM+Ubuntu-Medium
    --nostringval--
    --nostringval--
    
  • Solution:
    It was caused by the bug in cups-filters package discussed here. The work around is adding an option pdftops-renderer-default=pdftops, simply run the following command as root:
    sudo lpadmin -p TOSHIBA-ColorMFP -o pdftops-renderer-default=pdftops
    Note: you need to replace TOSHIBA-ColorMFP with your toshiba printer's name. To find out your printer's name, run
    lpstat -a

See also

Install TOSHIBA eStudio 4540c printer on CentOS 6 Linux

  1. Download CUPS driver from Toshiba web site:
    wget http://www.eid.toshiba.com.au/drivers/eBX/eBX_CUPS_Colour_V7.13.zip
  2. Extract and install the driver (as root/sudo):
    unzip eBX_CUPS_Colour_V7.13.zip
    cp eBX_CUPS_Colour_V7.13/normal/TOSHIBA_ColorMFP_CUPS.tar /tmp/
    rm -fr eBX_CUPS_Colour_V7.13
    cd /; sudo tar -xvf /tmp/TOSHIBA_ColorMFP_CUPS.tar
  3. Extract and rename the ppd file:
    cp /usr/share/cups/model/Toshiba/TOSHIBA_ColorMFP_CUPS.gz ~/Downloads
    cd ~/Downloads; gunzip ~/Downloads/TOSHIBA_ColorMFP_CUPS.gz; mv ~/Downloads/TOSHIBA_ColorMFP_CUPS ~/Downloads/TOSHIBA_ColorMFP_CUPS.ppd
    
  4. Install system-config-printer (if not installed yet):
    sudo yum install system-config-printer
  5. Go to system menu: System -> Administration -> Printing, then New Printer
  6. Select Network Printer, then LPD/LPR Host or Printer, type your printer host/ip address then click Probe button, when the Queue is detected, click Forward button.
  7. Select Provide PPD file and select the PPD file:
  8. Select the TOSHIBA_ColorMFP_CUPS.ppd file:
  9. Click Forward button to proceed:
  10. Set Model Selection to TOSHIBA e-STUDIO4540CSeries and click Forward:
  11. Set Printer name, description and location information, and click Apply button:

How to enable Department Code?

  1. Open http://localhost:631/printers in your web browser
  2. Click to select the Toshiba eStudio 4540c printer
  3. Select Maintenance and then Set Default Options
  4. Click Printing Modes

    then enable Department Code:
  5. Click Printing Modes DC then set the Department Code (DC) digits, and finally cick Set Default Options to save.

Mac OS X: connect to Canon iR C5185 Printer with Department ID Management

  1. Download UFR II driver for Mac from Canon.
  2. Install the UFR II driver
  3. Open "System Preferences" -> "Print & Scan", Click the + button to add printer
  4. Activate "IP" tab, enter the IP address of the iR C5185 machine, set "Protocol" to Line Printer Daemon - LPD; select Canon iR C5185 UFR II driver from the software list, then click "Add" button.
  5. Tick "Job accounting", then click "OK" button.
  6. Select the printer from the printer list, and click "Options & Supplies.." button.
  7. Activate "Utility" tab then click "Open Printer Utility" button.
  8. Tick "Department ID Management", then enter your Department ID and PIN. Verify it by clicking the "Verify" button. If it is correct, click "Save Settings" button.
  9. Quit Printer Utility and System Preferences, we've done. You can now print to the Canon iR C5185 printer.