LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-01-2018, 09:19 AM   #1
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Rep: Reputation: Disabled
Wirelessly connect Canon printer to Xubuntu PC


Spent hours trying to figure this out.
Canon TS5160 printer connects wirelessly to Windows PC, but won't connect to Xubuntu 14.04 PC.
The problem seems to be that the executable for the connection is a .exe file, which Linux systems don't comprehend.
So when i run the .exe file, I get an error saying i need admin rights, which I have.
I loaded Wine in response to this, but I still can't get the .exe to run. It mostly says it doesn't recognise the file, but sometimes says 'permission denied'. I've tried everything I can find on the net to fix it (too much to list here), but I've run out of ideas.
Does anyone know how this should be done, please?
 
Old 05-01-2018, 12:23 PM   #2
rippletan
LQ Newbie
 
Registered: Apr 2018
Posts: 13

Rep: Reputation: Disabled
hi!! welcome!!

Linux uses cups in order to manage printers and it's very possible to make it work with network printers and/or wifi direct printers.

tell me more about your setup.
is your printer connected to your local network? or it's just stand alone and you connect to it via wifi-direct?
 
Old 05-01-2018, 08:06 PM   #3
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks, rippletan.
The printer is connected to our home network, through the router. I have successfully connected a Windows 7 PC to the printer, wirelessly, and now i want to do the same with a Linux PC (using Xubuntu).
 
Old 05-01-2018, 08:13 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Quote:
So when i run the .exe file
Trying to use an .exe file to configure a printer on Linux will never work and I'm not sure why you are trying. Access CUPS by opening a browser and typing:

http://localhost:631
 
Old 05-01-2018, 08:42 PM   #5
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Being a newbie, i knew nothing about Linux not being able to run .exe files.
When i discovered that it was so, i looked for directions and found that i was supposed to run it through Wine. So I installed Wine, and went from there.
I have opened that site you gave (thanks), but I don't know what to do with it. It's all Greek to me.
 
Old 05-01-2018, 09:16 PM   #6
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
So I just had a look on the net to see if there were instructions on how to run a printer using CUPS, and someone said the OS might already be setup for my printer. I had a look, clicked on Add Printer, and it found it. Took about 30 seconds.

Only issue now is to try to get it to work. I tried printing a test page. It enters the print queue, then disappears without printing.

Not sure if it found the right drivers. My printer model wasn't listed in the options for models, but it seemed to know what i needed, so i just went with Canon.
 
Old 05-02-2018, 12:08 AM   #7
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Slow progress.

I found a PPD file for the printer series (TS5100) and pointed the setup at that.

It now says i'm missing a filter called rastertocanonij.

I found a folder with that name in the downloaded material and tried to copy it across to /usr/lib/cups/filter. It wouldn't copy across by dragging it from one place to another (held the Ctrl key while dragging). There are also instructions on how to do this at a terminal, but that doesn't work either. I tried to follow instructions (https://askubuntu.com/questions/5120...ib-cups-filter), but no good. I couldn't find an i386 folder, for example.
 
Old 05-02-2018, 08:12 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Wine on Linux will run "some" windows programs but drivers need to be for a Linux system and windows drivers won't help in wine. You might take a look at the link below and see if it helps as it is specifically targeted for Debian type systems such as the Ubuntus for Canon printers using CUPS.

https://www.howtoforge.com/how-to-in...n-like-systems
 
1 members found this post helpful.
Old 05-02-2018, 09:48 AM   #9
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks, yancek.
I tried to follow the instructions on that site, and ended up with the same problem. It's looking for a file or folder called rastertocanonij. The place where it's supposed to be has rastertohp and things like that, but not the canon one. Maybe I did something wrong.
 
Old 05-02-2018, 05:53 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, you have to stop using anything designed for Windows! Even if you could get the driver installed from the Windows .exe, it won't work to drive the printer.

Did you try the drivers on this page? https://www.canon.com.au/printers/pi...ts5160/support
 
1 members found this post helpful.
Old 05-02-2018, 07:52 PM   #11
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks, AwesomeMachine.
Yes. That's where i got the drivers from. I tried the first and third of the Linux options (I didn't know which to use).
The third one had a PPD file in it, so I've been using that.
I just downloaded and extracted it. I don't know if i needed to do anything else.
It was after I did that that it found the printer. It failed when I tried to print, asking for the rastertocanonij file.
Perhaps i should try to undo everything I've done, including getting rid of any Windows stuff, and start again... if I can.
 
Old 05-03-2018, 02:36 AM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
OK, which distro are you using. You probably need a debian file '.deb' or a '.rpm' file. That will be the easiest way. Save the source package in case nothing else works. Let us know which type of file you need to install. Depending on your distro it will probably be a .deb or .rpm file. Someone will tell you how to install it.
 
1 members found this post helpful.
Old 05-03-2018, 05:38 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
As you are running Xubuntu, you need to download the deb package files from the Canon website, i.e.:

IJ Printer Driver Ver. 5.50 for Linux (debian Packagearchive)

ScanGear MP Ver. 3.50 for Linux (debian Packagearchive)

The former downloads a file named cnijfilter2-5.50-1-deb.tar.gz, the latter a file named scangearmp2-3.50-1-deb.tar.gz.

Once these are downloaded, extract their contents (try right-clicking on them in turn and looking for an option like "Extract here"). This will extract deb folders.

For each of these (do the printer driver, i.e. cnijfilter first), open the folder then right-click->open in Terminal (or equivalent) and run:

Code:
sudo ./install.sh
Then go into Xubuntu's system settings/control panel (I don't know what it's called as I don't use the distro), select the Printers item and then select "Add a Printer" or equivalent. Go through the process and check afterwards to see if printing/scanning works.

Last edited by hydrurga; 05-03-2018 at 05:43 AM.
 
1 members found this post helpful.
Old 05-03-2018, 10:36 AM   #14
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thanks AwesomeMachine and Hydrurga.
I'll have a go at what you suggest when the weekend arrives, Hydrurga (they look like good instructions). I'll have a bit more time then. I'll post back with the results.
I think I'm on the other side of the planet to you kind people who are posting. That's why it takes me so long to respond.
 
Old 05-04-2018, 08:39 AM   #15
GCW
LQ Newbie
 
Registered: Apr 2018
Posts: 15

Original Poster
Rep: Reputation: Disabled
WOOHOOOO!
It's done! Thanks everyone - especially Hydrurga - your instructions were exactly what I needed.
It was actually clever enough to make the printer work without doing anything after running the install command. It was already there and ready to rock!
Very happy!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to find a driver for my Canon printer mp 610 to connect with Maya (Mint)? steekel Linux Mint 5 06-09-2014 06:47 PM
Installing Canon MX-860 wireless printer in Xubuntu Ralphc Linux - Newbie 7 09-21-2010 08:30 AM
Anyone Have a Canon MP Series Printer Working Wirelessly with Slack ? beartooth91 Slackware 2 07-22-2010 06:39 PM
[SOLVED] No IP address when connecting wirelessly through Xubuntu youngaa Linux - Wireless Networking 11 12-03-2009 01:26 PM
Can I wirelessly connect Canon MX860, Westell 327, Ubuntu 8.10 Linux box and Acer As wwsmith Linux - Wireless Networking 2 06-20-2009 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration