个人工具
登录
查看“UbuntuHelp:CanonCaptDrv190”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:CanonCaptDrv190”的源代码
来自Ubuntu中文
←
UbuntuHelp:CanonCaptDrv190
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/CanonCaptDrv190}} {{Languages|UbuntuHelp:CanonCaptDrv190}} #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: [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 [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 == === 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 [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 [http://radu.cotescu.com/2010/03/20/how-to-install-canon-lbp-printers-in-ubuntu/ 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 [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. 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. <pre><nowiki> # /etc/init.d/ccpd start </nowiki></pre> 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: <pre><nowiki> sudo cp /etc/init.d/ccpd /etc/init.d/ccpd.orig </nowiki></pre> Edit the script (using the command below), delete everything and replace with the one below: <pre><nowiki> gksudo gedit /etc/init.d/ccpd </nowiki></pre> ==== New ccpd Script ==== <pre><nowiki> #!/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 </nowiki></pre> After you have replaced this file we can check that it has worked by running: <pre><nowiki> sudo /etc/init.d/ccpd restart * Restarting Canon Printer Daemon for CUPS: ccpd [ OK ] </nowiki></pre> ==== Auto Start ccpd ==== In a terminal you have to run: <pre><nowiki> sudo update-rc.d ccpd defaults 50 </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. ---- == 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 [[UbuntuHelp:NetworkPrintingWithUbuntu|cups|for network printing]]. After you login open a terminal and run: <pre><nowiki> sudo /etc/init.d/ccpd status Canon Printer Daemon for CUPS: ccpd: 1135 1131 </nowiki></pre> 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: <pre><nowiki> captstatusui -P <Your printer name as specified in cups> My printers example: captstatusui -P LBP3010 </nowiki></pre> 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: <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:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:CanonCaptDrv190
。