个人工具

UbuntuHelp:LBP3010

来自Ubuntu中文

跳转至: 导航, 搜索
  1. title Latest Canon Capt Printer Driver Ver 1.9 for LBP3010

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). Printers reported to work with version 1.9 on Jaunty & Karmic

  • LBP3010

If you get your printer working please add it to the list.

Resources

The driver download page can be found here: Direct Driver Download. If unsure of the version you should be using I recommend the canon support page to find your printers drivers. Canon Support Downloads. Currently version 1.90 is not recommend on any support site.

9.10 Karmic Specific

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 virtual package* found at the Karmic libcups2 Package Page

Installing Drivers

""Karmic users only"" please download and install the libcups2 package before installing the Canon driver. I am not going to rewrite the instructions given in the documentation supplied by Canon. Instead I will suppliment them with Ubuntu specifics. After you have got tp step 7 in the Canon Install Guide you will be asked in run this command.

# /etc/init.d/ccpd start

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, delete everything and replace with the one below: sudo 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 ]

Printing 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.

9.10 Karmic 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. 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:

sudo apt-get install insserv

Then run the command to install ccpd as a startup script:

sudo insserv

Proceed to the Restart and Verify section.


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.

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.