remote printing not working <SOLVED>

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

remote printing not working <SOLVED>

Post by Forthay »

I have a Canon Pixma G4511 connected to my main computer running Linux Mint 20 Ulyana.
It is connected by USB.
I cannot use the printer from another Linux Miint computer.
It used to work a month or two ago.
I have reinstalled the Cannon driver from their website.
Printing works from the connected computer but not from other computers on my LAN.
I have tried deleting the printers and adding them again.
The cups log says it cannot reach the printer.
How do I find what the problem is?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote prining not working

Post by brian_p »

What is/are the precise OS(s) on the other computer(s)? Is communication on the LAN via wireless?
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote prining not working

Post by Forthay »

I have a laptop with Mint 20 too. I have tried wireless and wired.
Dave
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote prining not working

Post by brian_p »

Forthay wrote: Sun Feb 20, 2022 1:35 pm I have a laptop with Mint 20 too. I have tried wireless and wired.
Dave
From your main computer please provide outputs for

Code: Select all

avahi-browse -rt _ipp._tcp

Code: Select all

avahi-browse -rt _uscan._tcp
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote prining not working

Post by Forthay »

avahi-browse -rt _ipp._tcp
+ eno1 IPv6 Canon G4511 @ dpoffice Internet Printer local
+ eno1 IPv4 Canon G4511 @ dpoffice Internet Printer local
+ lo IPv4 Canon G4511 @ dpoffice Internet Printer local
= eno1 IPv4 Canon G4511 @ dpoffice Internet Printer local
hostname = [dpoffice.local]
address = [192.168.1.65]
port = [631]
txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=c1d8d7fd-7957-3150-70fa-4e9cb7c1a703" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(Canon PIXMA G4500)" "priority=0" "note=dpoffice" "adminurl=https://dpoffice.local.:631/printers/Canon" "ty=Canon PIXMA G4500 - CUPS+Gutenprint v5.3.3" "rp=printers/Canon" "qtotal=1" "txtvers=1"]
= lo IPv4 Canon G4511 @ dpoffice Internet Printer local
hostname = [dpoffice.local]
address = [127.0.0.1]
port = [631]
txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=c1d8d7fd-7957-3150-70fa-4e9cb7c1a703" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(Canon PIXMA G4500)" "priority=0" "note=dpoffice" "adminurl=https://dpoffice.local.:631/printers/Canon" "ty=Canon PIXMA G4500 - CUPS+Gutenprint v5.3.3" "rp=printers/Canon" "qtotal=1" "txtvers=1"]
= eno1 IPv6 Canon G4511 @ dpoffice Internet Printer local
hostname = [dpoffice.local]
address = [fe80::eba0:a130:8582:5f0]
port = [631]
txt = ["printer-type=0x900E" "printer-state=3" "Color=T" "TLS=1.2" "UUID=c1d8d7fd-7957-3150-70fa-4e9cb7c1a703" "URF=DM3" "pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png,image/pwg-raster,image/urf" "product=(Canon PIXMA G4500)" "priority=0" "note=dpoffice" "adminurl=https://dpoffice.local.:631/printers/Canon" "ty=Canon PIXMA G4500 - CUPS+Gutenprint v5.3.3" "rp=printers/Canon" "qtotal=1" "txtvers=1"]


avahi-browse -rt _uscan._tcp
no output
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Your info confirms that a print queue exists on the main computer. Note that it is not using the Canon drivers:
ty=Canon PIXMA G4500 - CUPS+Gutenprint
The setup you have should indeed enable that print queue to be shared on the network. Give

Code: Select all

dpkg -l ippusbxd

Code: Select all

sudo cupsctl
Incidentally, why not allow the printer itself to be shared over wireless? Why connect it by USB?
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

Thanks.
I should probably re-install the printer with Canon drivers.
I made a mistake buying a printer with no ethernet port.
Our desktop computers do not have wifi just gigabit lan.
We have a house with 2ft thick stone walls that blocks the wifi and the router and telephone connection is at the wrong end of the house.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Forthay wrote: Tue Feb 22, 2022 9:01 am Thanks.
I should probably re-install the printer with Canon drivers.
Gutenprint should be good enough. In fact, you do not need any vendor drivers :).
Forthay wrote: I made a mistake buying a printer with no ethernet port.
Our desktop computers do not have wifi just gigabit lan.
We have a house with 2ft thick stone walls that blocks the wifi and the router and telephone connection is at the wrong end of the house.
Ok, I think I have the picture now. Both computers are connected by eithernet cable. This is easy to solve. Two ways forward:
  • Upgrade Mint to 20.3 and install ipp-usb. We can then go from there.
  • If that is not to your liking, there is a fallback with Mint 20.
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Hello Forthay,

I thought we were well on our way to producing a resolution to what is essentially a network problem. Why give up?
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

I have just installed Mint 21 on the computer to which the printer is installed.
I have the the printer as shared but my other computers cannot see it when I Add network print with find an ip address of the printer host.
ipp-usb is already installed on the host.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Forthay wrote: Thu Aug 11, 2022 8:28 am I have just installed Mint 21 on the computer to which the printer is installed.
I have the the printer as shared but my other computers cannot see it when I Add network print with find an ip address of the printer host.
ipp-usb is already installed on the host.
From the computer to which the printer is attached, give

Code: Select all

systemctl status ipp-usb

Code: Select all

avahi-browse -rt _ipp._tcp

Code: Select all

avahi-browse -rt _uscan._tcp

Code: Select all

sudo cuosctl
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Additionally:

Code: Select all

lpsta -t
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

systemctl status ipp-usb
○ ipp-usb.service - Daemon for IPP over USB printer support
Loaded: loaded (/lib/systemd/system/ipp-usb.service; static)
Active: inactive (dead)
Docs: man:ipp-usb(8)

Aug 11 15:19:49 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 11 19:19:52 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
dave@dpoffice:~$ systemctl restart ipp-usb
dave@dpoffice:~$ systemctl status ipp-usb
○ ipp-usb.service - Daemon for IPP over USB printer support
Loaded: loaded (/lib/systemd/system/ipp-usb.service; static)
Active: inactive (dead)
Docs: man:ipp-usb(8)

Aug 11 15:19:49 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 11 19:19:52 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
Aug 12 09:39:35 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 12 09:39:35 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
dave@dpoffice:~$ avahi-browse -rt _ipp._tcp
dave@dpoffice:~$ avahi-browse -rt _uscan._tcp
dave@dpoffice:~$ sudo cuosctl
[sudo] password for dave:
sudo: cuosctl: command not found
dave@dpoffice:~$ sudo cupsctl
_debug_logging=0
_remote_admin=0
_remote_any=0
_share_printers=0
_user_cancel_any=0
BrowseLocalProtocols=dnssd
DefaultAuthType=Basic
ErrorPolicy=retry-job
IdleExitTimeout=60
JobPrivateAccess=default
JobPrivateValues=default
MaxLogSize=0
PageLogFormat=
SubscriptionPrivateAccess=default
SubscriptionPrivateValues=default
WebInterface=Yes
dave@dpoffice:~$ lpsta -t
Command 'lpsta' not found, did you mean:
command 'lpstat' from deb cups-client (2.4.1op1-1ubuntu4.1)
command 'lpstat' from deb lprng (3.8.B-5)
Try: sudo apt install <deb name>
dave@dpoffice:~$ lpstat -t
scheduler is running
no system default destination
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Thanks for picking up on the typos.
Forthay wrote: Fri Aug 12, 2022 4:46 am systemctl status ipp-usb
○ ipp-usb.service - Daemon for IPP over USB printer support
Loaded: loaded (/lib/systemd/system/ipp-usb.service; static)
Active: inactive (dead)
Docs: man:ipp-usb(8)

Aug 11 15:19:49 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 11 19:19:52 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
dave@dpoffice:~$ systemctl restart ipp-usb
dave@dpoffice:~$ systemctl status ipp-usb
○ ipp-usb.service - Daemon for IPP over USB printer support
Loaded: loaded (/lib/systemd/system/ipp-usb.service; static)
Active: inactive (dead)
Docs: man:ipp-usb(8)

Aug 11 15:19:49 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 11 19:19:52 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
Aug 12 09:39:35 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
Aug 12 09:39:35 dpoffice systemd[1]: ipp-usb.service: Deactivated successfully.
This is the most worrying aspect. The ipp-usb.service should be active when the printer is plugged into USB. Please give

Code: Select all

lsusb -v | grep -A 3 bInterfaceClass.*7
dave@dpoffice:~$ avahi-browse -rt _ipp._tcp
dave@dpoffice:~$ avahi-browse -rt _uscan._tcp
These will only give outputs if ipp-usb is active or a printer is installed.
dave@dpoffice:~$ sudo cupsctl
_debug_logging=0
_remote_admin=0
_remote_any=0
_share_printers=0
CUPS is not sharing printers. Do

Code: Select all

sudo cupsctl --share-printers
dave@dpoffice:~$ lpstat -t
scheduler is running
no system default destination
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
No printer is installed. With an active ipp-usb, one should be auto-setup. Check cable and connection?
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

Part of the problem seems to be that the printer turns off after a while.
I turned it on later and this is what i get:
systemctl status ipp-usb
● ipp-usb.service - Daemon for IPP over USB printer support
Loaded: loaded (/lib/systemd/system/ipp-usb.service; static)
Active: active (running) since Fri 2022-08-12 20:28:16 BST; 1min 20s ago
Docs: man:ipp-usb(8)
Main PID: 13007 (ipp-usb)
Tasks: 12 (limit: 8986)
Memory: 2.9M
CPU: 57ms
CGroup: /system.slice/ipp-usb.service
└─13007 /sbin/ipp-usb udev

Aug 12 20:28:16 dpoffice systemd[1]: Started Daemon for IPP over USB printer support.
dave@dpoffice:~$ avahi-browse -rt _ipp._tcp
+ lo IPv4 Canon G4010 series (USB) Internet Printer local
= lo IPv4 Canon G4010 series (USB) Internet Printer local
hostname = [dpoffice.local]
address = [127.0.0.1]
port = [60000]
txt = ["air=none" "mopria-certified=1.3" "rp=ipp/print" "priority=50" "kind=document,envelope,photo,postcard" "PaperMax=isoC-A2" "URF=V1.4,CP1,PQ4-5,RS600,SRGB24,W8,OB9,OFU0,IS1" "UUID=00000000-0000-1000-8000-00183d213ae6" "Color=T" "Duplex=F" "note=" "qtotal=1" "usb_MDL=G4010 series" "usb_MFG=Canon" "usb_CMD=BJRaster3,NCCe,IVEC,URF" "ty=Canon G4010 series" "product=(Canon G4010 series)" "pdl=application/octet-stream,image/jpeg,image/urf,image/pwg-raster" "txtvers=1" "adminurl=http://localhost:60000/index.html?page=PAGE_AAP" "Fax=T" "rfo=ipp/faxout" "Scan=T"]
dave@dpoffice:~$ avahi-browse -rt _uscan._tcp
+ lo IPv4 Canon G4010 series (USB) _uscan._tcp local
= lo IPv4 Canon G4010 series (USB) _uscan._tcp local
hostname = [dpoffice.local]
address = [127.0.0.1]
port = [60000]
txt = ["duplex=F" "is=platen,adf" "cs=color,grayscale" "UUID=00000000-0000-1000-8000-00183d213ae6" "adminurl=NotAvailable" "representation=NotAvailable" "pdl=application/pdf,image/jpeg" "ty=G4010 series" "rs=eSCL" "vers=2.63" "txtvers=1"]
dave@dpoffice:~$ sudo cupsctl
[sudo] password for dave:
_debug_logging=0
_remote_admin=0
_remote_any=0
_share_printers=0
_user_cancel_any=0
BrowseLocalProtocols=dnssd
DefaultAuthType=Basic
ErrorPolicy=retry-job
IdleExitTimeout=60
JobPrivateAccess=default
JobPrivateValues=default
MaxLogSize=0
PageLogFormat=
SubscriptionPrivateAccess=default
SubscriptionPrivateValues=default
WebInterface=Yes
dave@dpoffice:~$ lpstat -t
scheduler is running
no system default destination
device for Canon_G4010_series_USB: implicitclass://Canon_G4010_series_USB/
Canon_G4010_series_USB accepting requests since Fri 12 Aug 2022 20:28:18 BST
printer Canon_G4010_series_USB is idle. enabled since Fri 12 Aug 2022 20:28:18 BST

But my laptop still does not find it.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Forthay wrote: Fri Aug 12, 2022 3:44 pm Part of the problem seems to be that the printer turns off after a while.
Looking at what is available at http://127.0.0.1:60000 in a browser may help with this.
I turned it on later and this is what i get:
All good for systemctl status ipp-usb, avahi-browse -rt _ipp._tcp and avahi-browse -rt _uscan._tcp
dave@dpoffice:~$ sudo cupsctl
_share_printers=0
You need to have _share_printers=1. I advised you what to do previously.
dave@dpoffice:~$ lpstat -t
scheduler is running
no system default destination
device for Canon_G4010_series_USB: implicitclass://Canon_G4010_series_USB/
Canon_G4010_series_USB accepting requests since Fri 12 Aug 2022 20:28:18 BST
printer Canon_G4010_series_USB is idle. enabled since Fri 12 Aug 2022 20:28:18 BST
Good. A print queue (Canon_G4010_series_USB) has been auto-setup by cups-browsed.
But my laptop still does not find it.
The final crucial step is to edit /etc/ipp-usb/ipp-usb.conf and change interface = loopback # all | loopback to read

Code: Select all

interface = all # all | loopback
How's that? Printer shared on the network?
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

Thanks Brian. You are a star. It is now working.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Forthay wrote: Sat Aug 13, 2022 9:25 am Thanks Brian. You are a star. It is now working.
Excellent, Dave. Your USB-connected printer is now behaving like a network printer.

May I ask a favour? I want to know about scanning on your device. Please would you give (from your desktop)

Code: Select all

scanimage -L

Code: Select all

airscan-discover
--
Brian.
Forthay
Level 1
Level 1
Posts: 19
Joined: Fri Aug 05, 2011 10:35 am

Re: remote printing not working

Post by Forthay »

scanimage -L
device `pixma:04A9183D_213AE6' is a CANON Canon PIXMA G4010 Series multi-function peripheral
device `escl:http://fe80::40dc:43f1:e0b1:ed5b:60000' is a Canon G4010 series (USB) platen,adf scanner
device `airscan:e0:Canon G4010 series (USB)' is a eSCL Canon G4010 series (USB) ip=127.0.0.1, 192.168.1.65
dave@dpoffice:~$ airscan-discover
[devices]
Canon G4010 series (USB) = http://127.0.0.1:60000/eSCL/, eSCL
Canon G4010 series (USB) = http://192.168.1.65:60000/eSCL/, eSCL
Canon G4010 series (USB) = http://[fe80::40dc:43f1:e0b1:ed5b%252]:60000/eSCL/, eSCL

Document Scanner comes up with Canon PIXMA G4010 Series
Failed to Scan
unable to connect to scanner

Second attempt worked fine.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: remote printing not working

Post by brian_p »

Thanks for the info. A final question :):

Are you able to scan with

Code: Select all

simple-scan "airscan:e0:Canon G4010 series (USB)"
Don't forget to mark the issue as solved by editing the subject of your first post.
--
Brian.
Locked

Return to “Printers & Scanners”