Results 1 to 10 of 33

Thread: All Cannon Printer Driver (LBP3200)

Threaded View

  1. #1
    Join Date
    Nov 2009
    Beans
    11

    Lightbulb All Cannon Printer Driver (LBP3200)

    This article describe installing cannon CAPT driver by compiling from source

    The details ment here are for 64Bit Ubuntu 9.10 System Karmic Kola and LBP3200 printer. I had complied this article from the reference below

    If Possible switch Off the Printer until we complete installation of driver this may avoid auto installation of the driver after we complete the steps.

    Ref 1:
    HTML Code:
    http://ubuntuforums.org/showpost.php?p=6134355&postcount=2
    Ref 2:
    HTML Code:
    https://help.ubuntu.com/community/HardwareSupportComponentsPrinters/CanonPrinters/Canon_LBP_2900#Compiling%20the%20driver%20%28amd64%29%20Steps:
    Use Case

    1. Compile Cannon Driver from latest source
    2. Install Compiled Driver
    3. Automate loading the CAPT demon

    Files to Download

    Cannon Linux Printer Driver (CAPT) Source
    HTML Code:
    http://support-au.canon.com.au/contents/AU/EN/0900772411.html
    libcupsys2.deb
    HTML Code:
    http://packages.ubuntu.com/jaunty-updates/all/libcupsys2/download
    This is a dummy package installing it will solve dependancy issue installing capt-common package

    Note: Deb Packages can be directly installed by right clicking it and selecting option open with “GDebi Package Installer”

    Step1 - Installing the Required packages to compile the driver

    Install following packages before start compiling (Some Package may report already installed such case leave as such and contiune installing others)

    Install Debian package development tools
    Install libcupsys2 Download the deb from here
    HTML Code:
    http://packages.ubuntu.com/jaunty-updates/all/libcupsys2/download
    Install The GNU Standard C++ Library v3 (development files)
    Install helper programs for debian/rules
    Install automatic configure script builder
    Install Development files for the GLib library
    Install Development files for the GTK+ library
    Install A system independent dlopen wrapper for GNU libtool
    Install library for common error values and messages in GnuPG components
    Install Common UNIX Printing System(tm) - Development files CUPS library
    Install Development files for the GNOME XML library

    sudo apt-get install build-essential
    sudo apt-get install libstdc++6-4.4-dev
    sudo apt-get install debhelper
    sudo apt-get install autoconf
    sudo apt-get install libglib2.0-dev
    sudo apt-get install libgtk2.0-dev
    sudo apt-get install libltdl-dev
    sudo apt-get install libgpg-error-dev
    sudo apt-get install libcups2-dev
    sudo apt-get install libxml2-dev
    Step2 – Unpacking the Source

    tar xfz CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN.tar.g z
    cd CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN/Src/
    tar xfz cndrvcups-common-1.90-1.tar.gz
    tar xfz cndrvcups-capt-1.90-1.tar.gz
    Step3 – Compiling cndrvcups-common-1.90-1

    cd cndrvcups-common-1.90
    gedit ./debian/control
    Change “Architecture: i386” to “Architecture: amd64” save and close editor

    dpkg-buildpackage
    The debian package cndrvcups-common_1.90-1_amd64.deb will be placed in CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN/Src

    Step4 – Installing cndrvcups-common_1.90-1_amd64.deb

    This package need to be installed before starting the next step compiling the cndrvcups-capt source depends some library from cndrvcups-common

    cd ..
    sudo dpkg -i cndrvcups-common_1.90-1_amd64.deb
    Step5 – Compiling & Installing cndrvcups-capt-1.90-1

    cd cndrvcups-capt-1.90
    gedit ./debian/control
    Change “Architecture: i386” to “Architecture: amd64” save and close editor

    gedit ./debian/rules
    Comment the option dh_shlibdeps by adding “#” at the start of the line It should look like as below after editing
    Code:
    #     dh_shlibdeps
    save and close editor

    dpkg-buildpackage
    The debian package cndrvcups-capt_1.90-1_amd64.deb will be placed in CAPT_Printer_Driver_for_Linux_Src_V190_uk_EN/Src

    sudo dpkg -i cndrvcups-capt_1.90-1_amd64.deb
    Now our cannon driver is installed and ready to configure

    Step6 – Editing the startup script for starting CAPT daemon

    I had modified the ccpd startup script to make it little polished

    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
    Lets us start editing the script

    cd /etc/init.d
    sudo cp ccpd ccpd-old
    sudo gedit ccpd
    delete all existing content and replace with the above script, save and close the editor

    Step7 – Setting the printer for CUPS

    sudo /etc/init.d/cups restart
    sudo /usr/sbin/lpadmin -p LBP3200 -P /usr/share/cups/model/CNCUPSLBP3200CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
    This will add printer LBP3200

    Step8 – Setting the printer for CAPT

    sudo /usr/sbin/ccpdadmin -p LBP3200 -o /dev/usb/lp0
    This will add printer LBP3200 to the CAPT monitor (daemon)

    Step9 – Automating CAPT while booting the system

    sudo update-rc.d ccpd defaults 50
    Edit*
    We are using 50 which means the ccpd is one the the last daemons to start This point is noted by notlistening, TommyBoy


    Step10 – Finalisation

    Now we are done all setting now its time to switch on our printer. Connect your printer and power on. As soon as the printer is connected Ubuntu auto install a new driver for our printer and make it as default printer.

    Now our final step is to chage our set printer to default and disable the auto installed printer (Note: do not delete the printer auto installed by Ubuntu, since Ubuntu will reinstall the printer again after a restart so its better to disable it or leave it as is)

    Steps to change default Printer

    Select
    System->Administrator->Printing
    This will list all the printer installed, right click the printer named LBP3200 and select (click) Set Us Default

    Right click the auto installed printer by Ubuntu (LBP3200-2) and uncheck Enabled.

    Now we are complete Lets Restart the computer.

    “Success“ our printer is now ready to print, “Happy Computing”

    I thank the community by creating this thread
    Last edited by rajamohan; September 22nd, 2010 at 02:18 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •