Setting up a Canon printer on Linux Mint 20.1 [SOLVED]

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

benji88i wrote: Wed Jun 30, 2021 12:50 am
brian_p wrote: Tue Jun 29, 2021 11:35 am
benji88i wrote: Tue Jun 29, 2021 9:59 am HI Brian,

Thanks for checking,

Actually I tried to see the change in your previous post but it looks the same.

What command(s) should we enter.

Code: Select all

lpadmin -p tr4500 - v "URI" -E -m everywhere
Not the double quotes. URI is what is obtained from the driverless command.
Right, thanks for confiming so we should type:

lpadmin -p tr4500 - v ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/ -E -m everywhere


Do I include the ipp:// part as above or simply write


Canon%20TR4500%20series%20(USB)._ipp._tcp.local/


for the "URI" part

Hi there,

Okay so apparently it didn't print and gave the same error.

I instructed her as follows:

Hi Tina,

Sorry for the delay in response.

It appears I made a typo in the last command we sent previously.

Make sure printer is on and plugged in. Sometimes they goto sleep.

Please enter the following command (copy paste and press enter):



lpadmin -p tr4500 - v "ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/" -E -m everywhere




Then test with entering this command (copy paste and press enter):


lp -d tr4500 /etc/nsswitch.conf


You Should be good to go after that so printing should work.


let me know how you go.



She wrote back and said same error.

I have asked her to send me a screenshot of the command she entered to check.

Can I ask, is there a way I can get remote access to her system without teamviewer as teamviewer free doesn't allow me access anymore. It would save me a lot of time to support her.

I am trying my best to move many people to Linux mint from windows 8 and 10
Attachments
Screenshot from 2021-06-30 21-36-14.png
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

benji88i wrote: Wed Jun 30, 2021 10:33 am
Can I ask, is there a way I can get remote access to her system without teamviewer as teamviewer free doesn't allow me access anymore. It would save me a lot of time to support her.
I would use ssh. The remote machine needs openssh-server and the client openssh-client. Type something like

Code: Select all

ssh tina@IP_ADDRESS
and give her password. I am not inclined to pursue this any further.
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

An alternative URI is

Code: Select all

ipp://127.0.0.1:60000/ipp/print
(No double quotes required. But they would not do any harm).
--
Brian.
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

Hello benji88i,

How are you going on with this?
--
Brian.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

issuing lpadmin command

Post by pdc_2 »

sorry to interrupt but I wonder if the command
lpadmin -p tr4500 - v "ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/" -E -m everywhere
needs a sudo prefix, so it should appear as

Code: Select all

sudo lpadmin -p tr4500 - v "ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/" -E -m everywhere
I say this because Canon in their advice offer templates ..... eg for their CAPT driver ...... as ............

Code: Select all

# /usr/sbin/lpadmin -p LBP5000 -P /usr/share/cups/model/CNCUPSLBP5000CAPTK.ppd -v ccp://localhost:59687 -E
where the # signifies su for rpm and sudo for debian systems .........
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Hi there

Sorry for the delay, she says it's not working still.

I am waiting to see why. I wrote and asked if she could enter the test command you have me earlier. Still waiting on her response.
Attachments
IMG_20210703_101451.jpg
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: issuing lpadmin command

Post by benji88i »

pdc_2 wrote: Fri Jul 02, 2021 4:37 pm sorry to interrupt but I wonder if the command
lpadmin -p tr4500 - v "ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/" -E -m everywhere
needs a sudo prefix, so it should appear as

Code: Select all

sudo lpadmin -p tr4500 - v "ipp://Canon%20TR4500%20series%20(USB)._ipp._tcp.local/" -E -m everywhere
I say this because Canon in their advice offer templates ..... eg for their CAPT driver ...... as ............

Code: Select all

# /usr/sbin/lpadmin -p LBP5000 -P /usr/share/cups/model/CNCUPSLBP5000CAPTK.ppd -v ccp://localhost:59687 -E
where the # signifies su for rpm and sudo for debian systems .........
Hi Brian,

Thanks so much for patience with this job, it is truly appreciated.

Apparently it's still not working, can you see the screenshot?
Attachments
Screenshot from 2021-07-04 12-48-10.png
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: issuing lpadmin command

Post by brian_p »

benji88i wrote: Sun Jul 04, 2021 12:27 am
Apparently it's still not working, can you see the screenshot?
Indeed I can. As I said before
lp: No such file or directory
indicates that the tr4500 print queue does not exist. If the file /etc/nsswitch.conf was the problem, there would be a different error message.

Your user does not say whether

Code: Select all

sudo lpadmin -p tr4500 -v "ipp://127.0.0.1:60000/ipp/print" -E -m everywhere
completed successfully, but there isn't any reason to believe it wouldn't.

Let's see

Code: Select all

lpstat -t
--
Brian.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: issuing lpadmin command

Post by benji88i »

brian_p wrote: Sun Jul 04, 2021 5:57 am
benji88i wrote: Sun Jul 04, 2021 12:27 am
Apparently it's still not working, can you see the screenshot?
Indeed I can. As I said before
lp: No such file or directory
indicates that the tr4500 print queue does not exist. If the file /etc/nsswitch.conf was the problem, there would be a different error message.

Your user does not say whether

Code: Select all

sudo lpadmin -p tr4500 -v "ipp://127.0.0.1:60000/ipp/print" -E -m everywhere
completed successfully, but there isn't any reason to believe it wouldn't.

Let's see

Code: Select all

lpstat -t
Thanks for your patience, I am speaking to the client at 4pm tomorrow and will try to get to the bottom of it with those commands.


It takes a very long time as I have to email commands and help her enter the commands as they are not exactly computer savvy.

I just wish I could get a remote desktop to work. I have tried so many and none of them work.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Hi Brian,

I have setup a remote session which works brilliantly with zoho assist.

I am going to be entering in all those commands you listed early and will promptly sent a read out of the outputs for you.

I have also made a donation of 40 USD to linux mint through paypal and will be donating more next month.

Is there a chat feature we could use in the linux mint forum in case I run into a confusing message.

she works in hospitals and has cancelled the session today, it looks like we will remote connect with her at 4pm AEST.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by pdc_2 »

well done benji; we all eagerly await further updates

did we decide if one needed sudo as a prefix to issuing an lpadmin command?
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Hi guys,

I will be trying the elevated Sudo privileges with the lpadmin command.

I will update you Friday evening after COB after the session (Sydney time)
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

benji88i wrote: Wed Jul 07, 2021 10:43 am Hi guys,

I will be trying the elevated Sudo privileges with the lpadmin command.
On a Mint/Ubuntu system it is usual for the first user to be in the lpadmin group and be able to set up a queue without root privileges. A successful lpadmin command does not output anything to the screen, apart from a prompt.

Code: Select all

groups
--
Brian.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Okay thanks got it.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Dear everybody,

I am pleased to say the command worked i got into her system with zoho assist and she had multiple printers added to the printer list i removed all the printers that were incorrect. followed your clear and simple instructions and voila, printer works, scanner works.

Thank you thank you thank you so so much everybody

especially Brian,

I will be donating more to linux mint next month.

everybody I really appreciate it so much
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

benji88i wrote: Fri Jul 09, 2021 2:44 am Dear everybody,

I am pleased to say the command worked i got into her system with zoho assist and she had multiple printers added to the printer list i removed all the printers that were incorrect. followed your clear and simple instructions and voila, printer works, scanner works.

Thank you thank you thank you so so much everybody
An excellent outcome! The TR4500 is a modern printer/scanner and, once again, ipp-usb and sane-airscan have been shown to work effectively with such a device. Note that any installed Canon packages are not being used and may be removed.

Your persistence and engagement with the issue are appreciated, benji88i. Please edit the subject header of your first post to have [SOLVED] added.
--
Brian.
benji88i
Level 2
Level 2
Posts: 55
Joined: Sat Jan 16, 2021 11:07 am

Re: Setting up a Canon printer on Linux Mint 20.1

Post by benji88i »

Thanks Brian, it was really great I am learning a lot. thanks again so much

so just to confirm the ipp-usb and sane-airscan are packages (or programs) that run the printer/scanner without drivers, is that correct?

Will these work on red hat systems also such as centos or fedora?

Also how do I change/edit the topic name
brian_p
Level 9
Level 9
Posts: 2702
Joined: Thu Jan 17, 2019 9:20 am
Location: UK

Re: Setting up a Canon printer on Linux Mint 20.1

Post by brian_p »

benji88i wrote: Fri Jul 09, 2021 5:06 am so just to confirm the ipp-usb and sane-airscan are packages (or programs) that run the printer/scanner without drivers, is that correct?
In essence - yes.
Will these work on red hat systems also such as centos or fedora?
I believe a recent Fedora has ipp-usb and sane-airscan, so they should work in the same way as on Mint. Dunno about Centos.
Also how do I change/edit the topic name
View your very first post on this topic. There should be a pen icon at the top right of the page. Just activate it and type [SOLVED] at the beginning or end of the subject line.
--
Brian.
Locked

Return to “Printers & Scanners”