个人工具

“UbuntuHelp:CanonCaptDrv190”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(创建新页面为 '{{From|https://help.ubuntu.com/community/CanonCaptDrv190}} {{Languages|UbuntuHelp:CanonCaptDrv190}} #title Latest Canon Capt Printer Driver Ver 1.9 == Introduction == These inst...')
 
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/CanonCaptDrv190}}
 
{{From|https://help.ubuntu.com/community/CanonCaptDrv190}}
 
{{Languages|UbuntuHelp:CanonCaptDrv190}}
 
{{Languages|UbuntuHelp:CanonCaptDrv190}}
#title Latest Canon Capt Printer Driver Ver 1.9
+
#title Install Latest Linux Canon Printer Driver V2.0 Ubuntu
 
== Introduction ==
 
== Introduction ==
These instructions will help get Version 1.9 of the Canon Capt Printer driver installed and automatically starting with monitor on Ubuntu 9.04 (Jaunty) and Ubuntu 9.10 (Karmic).
+
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 1.9 on Jaunty & Karmic
+
Printers reported to work with version 2.0 on Lucid
 +
* LBP810
 
* LBP3010
 
* LBP3010
 +
* LBP3100
 +
* LBP3200
 +
Printers reported to work with version 1.9 on Jaunty & Karmic
 +
* LBP810
 
* LBP2900
 
* LBP2900
 +
* LBP3000
 +
* LBP3010
 +
* LBP3200
 +
* LBP1120
 +
* LBP1210
 +
* LBP5050
 +
* LBP5050n
 
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 driver download page can be found here: [http://gdlp01.c-wss.com/gds/5/0900007725/07/CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN.tar.gz Direct Driver Download].
+
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.
If unsure of the version you should be using I recommend the canon support page to find your printers drivers. [http://software.canon-europe.com/index.asp Canon Support Downloads]. Currently version 1.90 is not recommend on any support site.
+
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]].
=== 9.10 Karmic Specific ===
+
== Install Drivers ==
When trying to install the Canon Driver in Karmic you will be met with a dependency problem with libcups2. This is easily solved by adding a [http://www.debian.org/doc/debian-policy/ch-binary.html#s-virtual_pkg virtual package*] found at the
+
=== Automated install using a BASH script ===
[http://packages.ubuntu.com/karmic/libcups2 Karmic libcups2 Package Page]
+
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.
== Installing Drivers ==
+
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.
""Karmic users only"" please download and install the [http://packages.ubuntu.com/karmic/libcups2 libcups2] package before installing the Canon driver.
+
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.
Unless you build the .deb packages from source, you will have a dependency problem.
+
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.
*In cndrvcups-common_x.xx-x_i386.deb, even if you installed libcups2, the package will not be installed as it is, because it depends on libcupsys2 which has been scrapped in favour of libcups2 (in Karmic). Refer [http://ubuntuforums.org/showthread.php?t=1305248 this thread] for more details.
+
=== Manual install ===
*In cndrvcups-capt_x.xx-x_i386.deb will show broken dependency for libstdc++5 which is again not available for Karmic. You can download [http://packages.ubuntu.com/jaunty/libstdc++5 this package] , which is from jaunty repo.
+
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. Instead I will suppliment them with Ubuntu specifics.
+
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.
After you have got to step 7 in the Canon Install Guide you will be asked in run this command.
+
Step 7 in the Canon Install Guide will ask you to run this command.
 
<pre><nowiki>
 
<pre><nowiki>
 
# /etc/init.d/ccpd start
 
# /etc/init.d/ccpd start
 
</nowiki></pre>
 
</nowiki></pre>
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:
+
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:
 
Backup your original canon driver startup script:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/init.d/ccpd /etc/init.d/ccpd.orig
 
sudo cp /etc/init.d/ccpd /etc/init.d/ccpd.orig
 
</nowiki></pre>
 
</nowiki></pre>
Edit the script, delete everything and replace with the one below:
+
Edit the script (using the command below), delete everything and replace with the one below:
sudo gedit /etc/init.d/ccpd
+
<pre><nowiki>
=== New ccpd Script ===
+
gksudo gedit /etc/init.d/ccpd
 +
</nowiki></pre>
 +
==== New ccpd Script ====
 
<pre><nowiki>
 
<pre><nowiki>
 
#!/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
第44行: 第57行:
 
# 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
第51行: 第62行:
 
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>
第90行: 第97行:
 
* Restarting Canon Printer Daemon for CUPS: ccpd            [ OK ]
 
* Restarting Canon Printer Daemon for CUPS: ccpd            [ OK ]
 
</nowiki></pre>
 
</nowiki></pre>
== Printing a Test Page ==
+
==== Auto Start ccpd ====
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.
+
== 9.10 Karmic Auto Start ccpd ==
+
 
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.
Proceed to the Restart and Verify section.
 
----
 
== 9.04 Jaunty Auto Start ccpd ==
 
Please note that i have not attempted to use the Karmic method above on Jaunty. Please feel free to try this and add your comments.
 
This will install inssev which helps mange programs that run on startup, in a terminal run:
 
<pre><nowiki>
 
sudo apt-get install insserv
 
</nowiki></pre>
 
Then run the command to install ccpd as a startup script:
 
<pre><nowiki>
 
sudo insserv
 
</nowiki></pre>
 
Proceed to the Restart and Verify section.
 
 
----
 
----
 +
== 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 ==
 
== 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>
第124行: 第118行:
 
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.
 
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.
 
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 ==
 
== 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:
 
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:
第138行: 第133行:
 
Description: Hidden until error occurs
 
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.
 
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:
 +
<pre><nowiki>
 +
lsmod | grep usblp
 +
</nowiki></pre>
 +
If it outputs nothing, first check if node /dev/usb/lp0 exists. If it doesn't, create it with:
 +
<pre><nowiki>
 +
sudo mkdir /dev/usb
 +
sudo mknod -m 666 /dev/usb/lp0 c 6 0
 +
</nowiki></pre>
 +
Now you can load the module and restart ccpd:
 +
<pre><nowiki>
 +
sudo modprobe usblp
 +
sudo /etc/init.d/ccpd restart
 +
</nowiki></pre>
 
----
 
----
 
[[category:CategoryHardware]]
 
[[category:CategoryHardware]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 16:57的版本

  1. 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: [Driver tar.gz]. Includes source, RPM, DEB and Documentation on how to install. The 1.9 driver download page can be found [[1]]. Alternatively you can directly download the [package] (recommended for beginners) or the [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 [packages*]. The needed packages are [[2]] and [[3]] (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