OK now ubuntu 11.10 is out so I thought of updating this thread for the latest version and most recent driver. This time I am going to details the installation of the driver from the existing build direct from the Canon linux driver, below are the steps
1. Download the driver from the link
http://support-au.canon.com.au/conte...900772408.html
2. unzip the downloaded driver assuming you had downloaded to the default folder (Downloads)
3. This will create a folder "Linux_CAPT_PrinterDriver_V230_uk_EN" in the current directory. You will have four folders inside this, of which we are concerned about two folder i.e "32-bit_Driver" and "64-bit_Driver"
4. Ubuntu 11.10 have a missing package gs-esp so we need to fix that download the .deb package from the link and install it
http://launchpadlibrarian.net/626416...buntu1_all.deb
For 32 Bit System
5. change to folder "32-bit_Driver"
For 64 Bit System
The driver file contain only contain RPM files so we need to convert it to .deb files, for this we will install a alien package which is a tool to convert RPM to DEB
Now we need to convert the rpm files (assuming we are in Downloads Folder)
5. now we have the .deb files we can install the driver
Let start prepare to start configuring the printer.
6. Ubuntu 11.10 had blacklisted usblp modules (I am not sure of why this is done
, document shows that CUPS uses the usb in raw mode, If anybody have any ideas can add details). so before start to configure let us configure to load the usblp module
comment the line prefixing # so that it look like #blacklist usblp, save it and exit. Restart the system so that we will have the usblp module loaded
7. Add Printer (Assuming Model LBP3200)
you need to change the printer model and the .ppd files respectively to your printer models
8. Configure Capt Admin demon to route printing to correct usb port
9. Now configure auto start the capt daemon by udev rules by identifying the USB Vendor parameter (cannon vendor id is 0x04a9)
Code:
KERNEL=="lp*", SUBSYSTEMS=="usb", ACTION=="add", SYSFS{idVendor}=="04a9", RUN+="/bin/bash /etc/init.d/ccpd start"
KERNEL=="lp*", SUBSYSTEMS=="usb", ACTION=="remove", RUN+="/bin/bash /etc/init.d/ccpd stop"
Add the above two lines 1st line for starting the service and the second line is to stop the service, this happens automatically when you switch on/off your printer
10. Change the start up script
Delete all the existing content and replace it with the below code
Code:
#!/bin/sh
# startup script for Canon Printer Daemon for CUPS (ccpd)
# Modified for Debian GNU/Linux
DAEMON=/usr/sbin/ccpd
LOCKFILE=/var/lock/subsys/ccpd
NAME=ccpd
DESC="Canon Printer Daemon for CUPS"
test -f $DAEMON || exit 0
. /lib/lsb/init-functions
export PATH=$PATH:/usr/local/sbin:/usr/local/bin
ccpd_start ()
{
log_begin_msg "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --oknodo --exec ${DAEMON}
log_end_msg $?
}
ccpd_stop ()
{
log_begin_msg "Stopping $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo --signal 15 --exec ${DAEMON}
log_end_msg $?
}
case $1 in
start)
ccpd_start
;;
stop)
ccpd_stop
;;
status)
echo "$DESC: $NAME:" `pidof $NAME`
;;
restart)
log_begin_msg "Restarting $DESC: $NAME"
ccpd_stop
sleep 2
ccpd_start
log_end_msg $?
;;
*)
echo "Usage: ccpd {start|stop|restart|status}"
exit 1
;;
esac
exit 0
Ok, now we are done with the setup lets restart the system and do the finish up step
Finish-up
1. check if the usb port are properly installed
you should see the lp0 in the list
2. Switch on the printer and then type the command below to see the CAPT Admin daemon is running
The command should list some thing like this "Canon Printer Daemon for CUPS: ccpd: 1135 1131", there should be two process running (the number will differ)
3. Disabling the auto assigned printer
go to select the auto selected printer (in my case its LBP3200-2) and change the status to "OFF"
OK that's it you can restart your system one more time if needed and start printing
Good Luck
Bookmarks