[SOLVED] Wirelessly connect Canon printer to Xubuntu PC
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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:
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.
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.
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.
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.
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.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
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.
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.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
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.
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.