Total Pageviews

Sunday, October 07, 2007

Installation of Canon Pixma 4300 under Debian Linux using CUPS

I bought a new printer (Canon Pixma 4300) and had a few problems installing it under Debian Linux. I found a very good installation instruction and I would like to share it with you.

Install necessary packages

sudo apt-get install alien libxml1 libpng3 libtiff4

Download original drivers

wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-common-2.70-1.i386.rpm
wget ftp://download.canon.jp/pub/driver/bj/linux/cnijfilter-ip4300-2.70-1.i386.rpm

Convert RPMs into Debian packages

sudo alien -d cnijfilter-common-2.70-1.i386.rpm
sudo alien -d cnijfilter-ip4300-2.70-1.i386.rpm --scripts
sudo dpkg -i nijfilter-common-2.70-1.i386.deb
sudo dpkg -i cnijfilter-ip4300-2.70-1.i386.deb

Create symlinks

sudo ln -s /usr/lib/libpng12.so.0 /usr/lib/libpng.so.2
sudo ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3

Restart CUPS

sudo ldconfig
sudo /etc/init.d/cupsys restart