#!/bin/sh # http://gkn.me.uk/i250ubuntu echo "Installing packages from the repositories (your password will be required)" gksudo "aptitude -y install libpng3 libtiff4 cupsys alien" cd /tmp echo "Fetching drivers from Canon Australia" wget http://download.canon.com.au/bj/i250linux/bjfilteri250-2.3-0.i386.rpm wget http://download.canon.com.au/bj/i250linux/bjfiltercups-2.3-0.i386.rpm echo "Converting drivers for installation in Debian and Ubuntu" gksudo "alien --scripts bjfilteri250-2.3-0.i386.rpm" gksudo "alien --scripts bjfiltercups-2.3-0.i386.rpm" echo "Installing drivers" gksudo "dpkg -i bjfiltercups_2.3-1_i386.deb bjfilteri250_2.3-1_i386.deb" gksudo "ln -s /usr/lib/libtiff.so.4 /usr/lib/libtiff.so.3" gksudo "ln -s /usr/lib/libpng.so.3 /usr/lib/libpng.so.2" echo "Restarting Common Unix Printing System" gksudo "/etc/init.d/cups restart" echo "You can now set the printer up from System → Administration → Printing" echo "by providing the following PPD file: /usr/share/cups/model/canoni250.ppd"