特殊:Badtitle/NS100:CanonCaptDrv190:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第21行: | 第21行: | ||
If you get your printer working please add it to the list. | If you get your printer working please add it to the list. | ||
== Resources == | == Resources == | ||
The 2.0 driver download can be found here: | The 2.0 driver download can be found here: [http://gdlp01.c-wss.com/gds/4/0900007724/08/CAPT_Printer_Driver_for_Linux_V200_uk_EN.tar.gz 2.0E Driver tar.gz]. Includes source, RPM, DEB and Documentation on how to install. | ||
The 1.9 driver download page can be found | The 1.9 driver download page can be found [http://support-au.canon.com.au/EN/search?canonsearch=1&lang=EN&category=Printers&series=Laser%20Beam%20Printers%20%28Low-Medium%20Volume%29&model=LASER%20SHOT%20LBP3000&menu=Download here]. Alternatively you can directly download the [http://pdisp01.c-wss.com/gdl/WWUFORedirectTarget.do?id=MDkwMDAwNzcyNDA3&cmp=ABS&lang=EN Debian package] (recommended for beginners) or the [http://gdlp01.c-wss.com/gds/5/0900007725/07/CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN.tar.gz Source Code]. | ||
== Install Drivers == | == Install Drivers == | ||
=== Automated install using a BASH script === | === Automated install using a BASH script === | ||
A script has been developed to automate the install of this driver on both kinds of architectures (amd64, i386). Unfortunately Canon doesn't supply 64bit DEB packages and compiling the driver from source is a bit tricky. Therefore using this script is the best approach for users of 64bit Ubuntu, while for the 32bit users it's just an automation of the manual install mode. | A script has been developed to automate the install of this driver on both kinds of architectures (amd64, i386). Unfortunately Canon doesn't supply 64bit DEB packages and compiling the driver from source is a bit tricky. Therefore using this script is the best approach for users of 64bit Ubuntu, while for the 32bit users it's just an automation of the manual install mode. | ||
The 64-bit versions of the DEB packages have been built on an Ubuntu 9.10 x86_64 architecture, while the 32-bit ones used by the script are the ones supplied by Canon. The script and the drivers have been tested on Ubuntu 9.04 i386 and on Ubuntu 9.10 amd64 using a Canon LBP2900 printer. | The 64-bit versions of the DEB packages have been built on an Ubuntu 9.10 x86_64 architecture, while the 32-bit ones used by the script are the ones supplied by Canon. The script and the drivers have been tested on Ubuntu 9.04 i386 and on Ubuntu 9.10 amd64 using a Canon LBP2900 printer. | ||
The archive containing the script and the packages needed for the install can be found | The archive containing the script and the packages needed for the install can be found [http://codebin.cotescu.com/canon/lbp_driver/CanonCAPTdriver.tar.gz here]. Please read the README file contained in the archive for more details or use the `-h` or `--help` command line options when invoking the script. | ||
For questions, details, bugs or enhancements, please visit | For questions, details, bugs or enhancements, please visit [http://radu.cotescu.com/2010/03/20/how-to-install-canon-lbp-printers-in-ubuntu/ this] page. | ||
=== Manual install === | === Manual install === | ||
When trying to install the Canon Driver in Karmic you will be met with dependency problems with libcups2. This is easily solved by adding two | When trying to install the Canon Driver in Karmic you will be met with dependency problems with libcups2. This is easily solved by adding two [http://www.debian.org/doc/debian-policy/ch-binary.html#s-virtual_pkg virtual packages*]. The needed packages are [http://packages.ubuntu.com/jaunty/all/libcupsys2/download libcupsys2] and [http://packages.ubuntu.com/jaunty/libstdc++5 libstdc] (choose youre CPU-architecture at the bottom of the linked page). Download and install these packages before you continue. | ||
After resolving these dependencies the installation of driver packages will be smooth, as is explained in the instructions given in the driver package. | After resolving these dependencies the installation of driver packages will be smooth, as is explained in the instructions given in the driver package. | ||
I am not going to rewrite the instructions given in the documentation supplied by Canon. Follow the instructions until you reach step 7. Stop and then continue with the ubuntu-specific steps below. | I am not going to rewrite the instructions given in the documentation supplied by Canon. Follow the instructions until you reach step 7. Stop and then continue with the ubuntu-specific steps below. | ||
第50行: | 第50行: | ||
#!/bin/sh | #!/bin/sh | ||
# startup script for Canon Printer Daemon for CUPS (ccpd) | # startup script for Canon Printer Daemon for CUPS (ccpd) | ||
# Provides: ccpd | # Provides: ccpd | ||
# Required-Start: $local_fs $remote_fs $syslog $network $named | # Required-Start: $local_fs $remote_fs $syslog $network $named | ||
第57行: | 第58行: | ||
# Default-Stop: 0 1 4 5 6 | # Default-Stop: 0 1 4 5 6 | ||
# Description: Start Canon Printer Daemon for CUPS | # Description: Start Canon Printer Daemon for CUPS | ||
DAEMON=/usr/sbin/ccpd | DAEMON=/usr/sbin/ccpd | ||
LOCKFILE=/var/lock/subsys/ccpd | LOCKFILE=/var/lock/subsys/ccpd | ||
第62行: | 第65行: | ||
NAME=ccpd | NAME=ccpd | ||
DESC="Canon Printer Daemon for CUPS" | DESC="Canon Printer Daemon for CUPS" | ||
test -f $DAEMON || exit 0 | test -f $DAEMON || exit 0 | ||
. /lib/lsb/init-functions | . /lib/lsb/init-functions | ||
case $1 in | case $1 in | ||
start) | start) | ||
log_begin_msg "Starting $DESC: $NAME" | log_begin_msg "Starting $DESC: $NAME" | ||
start-stop-daemon --start --quiet --exec $DAEMON | start-stop-daemon --start --quiet --exec $DAEMON | ||
log_end_msg $? | log_end_msg $? | ||
;; | ;; | ||
stop) | stop) | ||
log_begin_msg "Stopping $DESC: $NAME" | log_begin_msg "Stopping $DESC: $NAME" | ||
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON | start-stop-daemon --stop --quiet --oknodo --exec $DAEMON | ||
log_end_msg $? | log_end_msg $? | ||
;; | ;; | ||
status) | status) | ||
echo "$DESC: $NAME:" `pidof $NAME` | echo "$DESC: $NAME:" `pidof $NAME` | ||
;; | ;; | ||
restart) | restart) | ||
log_begin_msg "Restarting $DESC: $NAME" | log_begin_msg "Restarting $DESC: $NAME" | ||
start-stop-daemon --stop --quiet --oknodo --exec $DAEMON | start-stop-daemon --stop --quiet --oknodo --exec $DAEMON | ||
sleep 1 | sleep 1 | ||
start-stop-daemon --start --quiet --exec $DAEMON | start-stop-daemon --start --quiet --exec $DAEMON | ||
log_end_msg $? | log_end_msg $? | ||
;; | ;; | ||
*) | *) | ||
echo "Usage: ccpd {start|stop|restart|status}" | echo "Usage: ccpd {start|stop|restart|status}" | ||
exit 1 | exit 1 | ||
;; | ;; | ||
esac | esac | ||
exit 0 | exit 0 | ||
</nowiki></pre> | </nowiki></pre> | ||
第100行: | 第107行: | ||
In a terminal you have to run: | In a terminal you have to run: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo update-rc.d ccpd defaults 50 | sudo update-rc.d ccpd defaults 50 | ||
</nowiki></pre> | </nowiki></pre> | ||
All the other guides use the default value of 20 and this seems to give some users/distros problems. We are using 50 which means the ccpd is one the the last daemons to start. | All the other guides use the default value of 20 and this seems to give some users/distros problems. We are using 50 which means the ccpd is one the the last daemons to start. | ||
第110行: | 第117行: | ||
We have replaced the script to start the driver. Next we need to tell the system we want the script to start when the system next boots. This is where i had most problems with the ccpd daemon. | We have replaced the script to start the driver. Next we need to tell the system we want the script to start when the system next boots. This is where i had most problems with the ccpd daemon. | ||
== Restart and Verify == | == Restart and Verify == | ||
Now it is time to restart the system. If all goes well the system should restart and at the login page be able to print. This guide will not cover setting up [[UbuntuHelp:NetworkPrintingWithUbuntu|cups for network printing]]. | Now it is time to restart the system. If all goes well the system should restart and at the login page be able to print. This guide will not cover setting up [[UbuntuHelp:NetworkPrintingWithUbuntu|cups|for network printing]]. | ||
After you login open a terminal and run: | After you login open a terminal and run: | ||
<pre><nowiki> | <pre><nowiki> |
2010年5月19日 (三) 21:49的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CanonCaptDrv190 }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/af | • {{#if: UbuntuHelp:CanonCaptDrv190|Afrikaans| [[::CanonCaptDrv190/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ar | • {{#if: UbuntuHelp:CanonCaptDrv190|العربية| [[::CanonCaptDrv190/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/az | • {{#if: UbuntuHelp:CanonCaptDrv190|azərbaycanca| [[::CanonCaptDrv190/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/bcc | • {{#if: UbuntuHelp:CanonCaptDrv190|جهلسری بلوچی| [[::CanonCaptDrv190/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/bg | • {{#if: UbuntuHelp:CanonCaptDrv190|български| [[::CanonCaptDrv190/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/br | • {{#if: UbuntuHelp:CanonCaptDrv190|brezhoneg| [[::CanonCaptDrv190/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ca | • {{#if: UbuntuHelp:CanonCaptDrv190|català| [[::CanonCaptDrv190/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/cs | • {{#if: UbuntuHelp:CanonCaptDrv190|čeština| [[::CanonCaptDrv190/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/de | • {{#if: UbuntuHelp:CanonCaptDrv190|Deutsch| [[::CanonCaptDrv190/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/el | • {{#if: UbuntuHelp:CanonCaptDrv190|Ελληνικά| [[::CanonCaptDrv190/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/es | • {{#if: UbuntuHelp:CanonCaptDrv190|español| [[::CanonCaptDrv190/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/fa | • {{#if: UbuntuHelp:CanonCaptDrv190|فارسی| [[::CanonCaptDrv190/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/fi | • {{#if: UbuntuHelp:CanonCaptDrv190|suomi| [[::CanonCaptDrv190/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/fr | • {{#if: UbuntuHelp:CanonCaptDrv190|français| [[::CanonCaptDrv190/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/gu | • {{#if: UbuntuHelp:CanonCaptDrv190|ગુજરાતી| [[::CanonCaptDrv190/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/he | • {{#if: UbuntuHelp:CanonCaptDrv190|עברית| [[::CanonCaptDrv190/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/hu | • {{#if: UbuntuHelp:CanonCaptDrv190|magyar| [[::CanonCaptDrv190/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/id | • {{#if: UbuntuHelp:CanonCaptDrv190|Bahasa Indonesia| [[::CanonCaptDrv190/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/it | • {{#if: UbuntuHelp:CanonCaptDrv190|italiano| [[::CanonCaptDrv190/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ja | • {{#if: UbuntuHelp:CanonCaptDrv190|日本語| [[::CanonCaptDrv190/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ko | • {{#if: UbuntuHelp:CanonCaptDrv190|한국어| [[::CanonCaptDrv190/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ksh | • {{#if: UbuntuHelp:CanonCaptDrv190|Ripoarisch| [[::CanonCaptDrv190/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/mr | • {{#if: UbuntuHelp:CanonCaptDrv190|मराठी| [[::CanonCaptDrv190/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ms | • {{#if: UbuntuHelp:CanonCaptDrv190|Bahasa Melayu| [[::CanonCaptDrv190/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/nl | • {{#if: UbuntuHelp:CanonCaptDrv190|Nederlands| [[::CanonCaptDrv190/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/no | • {{#if: UbuntuHelp:CanonCaptDrv190|norsk| [[::CanonCaptDrv190/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/oc | • {{#if: UbuntuHelp:CanonCaptDrv190|occitan| [[::CanonCaptDrv190/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/pl | • {{#if: UbuntuHelp:CanonCaptDrv190|polski| [[::CanonCaptDrv190/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/pt | • {{#if: UbuntuHelp:CanonCaptDrv190|português| [[::CanonCaptDrv190/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ro | • {{#if: UbuntuHelp:CanonCaptDrv190|română| [[::CanonCaptDrv190/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/ru | • {{#if: UbuntuHelp:CanonCaptDrv190|русский| [[::CanonCaptDrv190/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/si | • {{#if: UbuntuHelp:CanonCaptDrv190|සිංහල| [[::CanonCaptDrv190/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/sq | • {{#if: UbuntuHelp:CanonCaptDrv190|shqip| [[::CanonCaptDrv190/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/sr | • {{#if: UbuntuHelp:CanonCaptDrv190|српски / srpski| [[::CanonCaptDrv190/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/sv | • {{#if: UbuntuHelp:CanonCaptDrv190|svenska| [[::CanonCaptDrv190/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/th | • {{#if: UbuntuHelp:CanonCaptDrv190|ไทย| [[::CanonCaptDrv190/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/tr | • {{#if: UbuntuHelp:CanonCaptDrv190|Türkçe| [[::CanonCaptDrv190/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/vi | • {{#if: UbuntuHelp:CanonCaptDrv190|Tiếng Việt| [[::CanonCaptDrv190/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/yue | • {{#if: UbuntuHelp:CanonCaptDrv190|粵語| [[::CanonCaptDrv190/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/zh | • {{#if: UbuntuHelp:CanonCaptDrv190|中文| [[::CanonCaptDrv190/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/zh-hans | • {{#if: UbuntuHelp:CanonCaptDrv190|中文(简体)| [[::CanonCaptDrv190/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CanonCaptDrv190 | UbuntuHelp:CanonCaptDrv190 | {{#if: | :}}CanonCaptDrv190}}/zh-hant | • {{#if: UbuntuHelp:CanonCaptDrv190|中文(繁體)| [[::CanonCaptDrv190/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CanonCaptDrv190|:CanonCaptDrv190|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CanonCaptDrv190/zh | | {{#ifexist: CanonCaptDrv190/zh | | {{#ifeq: {{#titleparts:CanonCaptDrv190|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CanonCaptDrv190|1|-1|}} | zh | | }}
- title Install Latest Linux Canon Printer Driver V2.0 Ubuntu
Introduction
These instructions will help get Version 2.0 or 1.9 of the Canon Capt Printer driver installed and automatically starting with monitor on Ubuntu 9.04 (Jaunty), Ubuntu 9.10 (Karmic) & Ubuntu 10.04 (Lucid). Printers reported to work with version 2.0 on Lucid
- LBP810
- LBP3010
- LBP3100
- LBP3200
Printers reported to work with version 1.9 on Jaunty & Karmic
- LBP810
- LBP2900
- LBP3000
- LBP3010
- LBP3200
- LBP1120
- LBP1210
- LBP5050
- LBP5050n
If you get your printer working please add it to the list.
Resources
The 2.0 driver download can be found here: 2.0E Driver tar.gz. Includes source, RPM, DEB and Documentation on how to install. The 1.9 driver download page can be found here. Alternatively you can directly download the Debian package (recommended for beginners) or the Source Code.
Install Drivers
Automated install using a BASH script
A script has been developed to automate the install of this driver on both kinds of architectures (amd64, i386). Unfortunately Canon doesn't supply 64bit DEB packages and compiling the driver from source is a bit tricky. Therefore using this script is the best approach for users of 64bit Ubuntu, while for the 32bit users it's just an automation of the manual install mode. The 64-bit versions of the DEB packages have been built on an Ubuntu 9.10 x86_64 architecture, while the 32-bit ones used by the script are the ones supplied by Canon. The script and the drivers have been tested on Ubuntu 9.04 i386 and on Ubuntu 9.10 amd64 using a Canon LBP2900 printer. The archive containing the script and the packages needed for the install can be found here. Please read the README file contained in the archive for more details or use the `-h` or `--help` command line options when invoking the script. For questions, details, bugs or enhancements, please visit this page.
Manual install
When trying to install the Canon Driver in Karmic you will be met with dependency problems with libcups2. This is easily solved by adding two virtual packages*. The needed packages are libcupsys2 and libstdc (choose youre CPU-architecture at the bottom of the linked page). Download and install these packages before you continue. After resolving these dependencies the installation of driver packages will be smooth, as is explained in the instructions given in the driver package. I am not going to rewrite the instructions given in the documentation supplied by Canon. Follow the instructions until you reach step 7. Stop and then continue with the ubuntu-specific steps below. Step 7 in the Canon Install Guide will ask you to run this command.
# /etc/init.d/ccpd start
Don't do this! At this point i recommend stopping and replacing your ccpd file with one that has been made more friendly to debian. Run in a terminal: Backup your original canon driver startup script:
sudo cp /etc/init.d/ccpd /etc/init.d/ccpd.orig
Edit the script (using the command below), delete everything and replace with the one below:
gksudo gedit /etc/init.d/ccpd
New ccpd Script
#!/bin/sh # startup script for Canon Printer Daemon for CUPS (ccpd) # Provides: ccpd # Required-Start: $local_fs $remote_fs $syslog $network $named # Should-Start: $ALL # Required-Stop: $syslog $remote_fs # Default-Start: 2 3 # Default-Stop: 0 1 4 5 6 # Description: Start Canon Printer Daemon for CUPS DAEMON=/usr/sbin/ccpd LOCKFILE=/var/lock/subsys/ccpd PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=ccpd DESC="Canon Printer Daemon for CUPS" test -f $DAEMON || exit 0 . /lib/lsb/init-functions case $1 in start) log_begin_msg "Starting $DESC: $NAME" start-stop-daemon --start --quiet --exec $DAEMON log_end_msg $? ;; stop) log_begin_msg "Stopping $DESC: $NAME" start-stop-daemon --stop --quiet --oknodo --exec $DAEMON log_end_msg $? ;; status) echo "$DESC: $NAME:" `pidof $NAME` ;; restart) log_begin_msg "Restarting $DESC: $NAME" start-stop-daemon --stop --quiet --oknodo --exec $DAEMON sleep 1 start-stop-daemon --start --quiet --exec $DAEMON log_end_msg $? ;; *) echo "Usage: ccpd {start|stop|restart|status}" exit 1 ;; esac exit 0
After you have replaced this file we can check that it has worked by running:
sudo /etc/init.d/ccpd restart * Restarting Canon Printer Daemon for CUPS: ccpd [ OK ]
Auto Start ccpd
In a terminal you have to run:
sudo update-rc.d ccpd defaults 50
All the other guides use the default value of 20 and this seems to give some users/distros problems. We are using 50 which means the ccpd is one the the last daemons to start.
Print a Test Page
At this point you can test your printer by going to: System->Administration->Printing You should see a icon for the printer you have just setup. There maybe another printer in there with a similar name just ignore this one for the time being. Right click on the printer and choose properties. Click the buttons "Print Test Page". Hopefully your page should print. We have replaced the script to start the driver. Next we need to tell the system we want the script to start when the system next boots. This is where i had most problems with the ccpd daemon.
Restart and Verify
Now it is time to restart the system. If all goes well the system should restart and at the login page be able to print. This guide will not cover setting up cups|for network printing. After you login open a terminal and run:
sudo /etc/init.d/ccpd status Canon Printer Daemon for CUPS: ccpd: 1135 1131
This shows the process Id's for the two ccpd processes that should now be running. If you only see one then you still have a problem with the way the ccpd daemon is starting. Please check carefully you have completed all the steps above. At this point you should be able to print a test page all being well. If you run into problems try turning your printer off, restart your computer and only turn your printer on, after you have logged in.
Status Monitor
The Canon status monitor can alert you to any issues with your printer. This can be run directly on the termial by issuing this command:
captstatusui -P <Your printer name as specified in cups> My printers example: captstatusui -P LBP3010
You will be presented with the User Interface and it should say ready to print. If not make sure the printer is switched on. Finally we want the monitor to run each time the computer is switched so we add it to the as a startup application in: System->Preferences->Startup Applications Click the New button. Name:Canon Printing Status Monitor Command: captstatusui -e -P <Your printer name as specified in cups> Description: Hidden until error occurs The -e option causes the monitor to stay hidden until an error occurs like when you run out of paper.
Troubleshooting
If Status monitor reports error "Check the DevicePath of /etc/ccpd.conf", then you probably don't have usblp kernel module. Run the following command:
lsmod | grep usblp
If it outputs nothing, first check if node /dev/usb/lp0 exists. If it doesn't, create it with:
sudo mkdir /dev/usb sudo mknod -m 666 /dev/usb/lp0 c 6 0
Now you can load the module and restart ccpd:
sudo modprobe usblp sudo /etc/init.d/ccpd restart