Canon Printer in Linux

How to get a Canon all-in-one printer working with Ubuntu

These instructions are for Canon all-in-one printers (printer, scanner, and copier in one unit). These instructions are for the Canon PIXMA MP160, but these instructions can be adapted for other all-in-one printers in the Canon PIXMA series of all-in-one printers. This is done entirely in the terminal. All terminal commands are in boldface.

You need the necessary compiling tools, so if you haven’t already done so, open a console and enter the following command

sudo aptitude install libgtk2.0-dev libxml2-dev gettext libnss-dev libnspr-dev libgtkspell.

This will download all the necessary dependencies.

Download the printer and scanner drivers from here. You will need to download the following files :





Download these files to your home directory.

You will now need to download Alien so you can convert the .RPM files into .DEB files. Install alien using the following command

sudo aptitude install alien

To convert the .RPM files into .DEB files

sudo alien -d *.rpm

To install the printer drivers

sudo dpkg -i cnij*.deb

To install the scanner drivers

sudo dpkg -i scan*.deb

sudo aptitude install libpng3

sudo ln -s /usr/lib/ /usr/lib/

sudo /etc/init.d/cupsys restart

cd /usr/share/cups/model/

sudo lpadmin -p MP160 -P canonmp160.ppd -v cnij_usb:/dev/usblp0 -E

sudo apt-get install libxml1

Now you have the printer completely installed.

Now we need to get the scanner completely installed. To do this, we need to install the scanner back-end.

Download the sane scanner back-end from here. Save it to your home directory.

Uncompress the downloaded file using the following command
tar -xvjf mp150-0.13.1.tar.bz2

cd mp150-0.13.1


sudo make install

(if asked to overwrite any files, choose Yes)

Turn on your Canon all-in-one printer, do a complete restart (not a simple log-out), and log back in. To test your scanner, place something in your scanner and open XSane by clicking Applications -> Graphics -> XSane Image Scanner. To scan, click on the Scan button. Don’t forget to set the scan resolution to your liking.

Author: renjiveda

I'm not I

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s