Skip to content

Instantly share code, notes, and snippets.

@kmarf
Forked from Mahedi-61/install_canon_printer.sh
Created February 26, 2025 19:18
Show Gist options
  • Save kmarf/c8baa06e8bdaa5b7eda6b84f7aff2c80 to your computer and use it in GitHub Desktop.
Save kmarf/c8baa06e8bdaa5b7eda6b84f7aff2c80 to your computer and use it in GitHub Desktop.
canon_LBP3300_printer_driver_installation_on_ubuntu_18.04
## This gist contains step by step instructions of installing canon LBP3300 printer driver on ubuntu 18.04 machine
## After a couple of months painful trying, i finally got it successfully installed on my 18.04 ubuntu machine.
## Here is the requirement
# 1) For 64 bit linux version install necessary the libraries
# 2) install the official CAPT drivers
# 3) register the printer with lpadmin
# 4) register the printer with the ccpd daemon
### step-1
sudo apt-get install libglade2 libpopt0:i386 libxml2:i386 libjpeg62:i386 libstdc++6:i386
# for libglade2. manually download and install it form here https://packages.debian.org/wheezy/libglade2-0
wget http://ftp.cn.debian.org/debian/pool/main/libg/libglade2/libglade2-0_2.6.4-1_amd64.deb
sudo dpkg -i libglade2-0_2.6.4-1_amd64.deb
### step-2
# download official CAPT driver
# for south asian region download it from here http://support-in.canon-asia.com/contents/ASIA/EN/0100459601.html
# first install the common module for CUPS driver
sudo dpkg -i cndrvcups-common_3.21-1_amd64.deb
# then install Install the CAPT printer driver module.
sudo dpkg -i cndrvcups-capt_2.71-1_amd64.deb
# for broken packages
sudo apt install -f
### step-3
# restart cups
sudo /etc/init.d/cups restart
# now register the LBP3300 printer (PPD) with the print spooler.
# sudo /usr/sbin/lpadmin -p LBP3300 -m CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59687 –E
sudo /usr/sbin/lpadmin -p LBP3300 -P /usr/share/cups/model/CNCUPSLBP3300CAPTK.ppd -v ccp://localhost:59687 -E
### step-4
# register the printer in the ccpd daemon setup file for first printer (lp0)
sudo /usr/sbin/ccpdadmin -p LBP3300 -o /dev/usb/lp0
# finaly restart the ccpd daemon
sudo /etc/init.d/ccpd restart
# for successful installation check
# ask capt for a status report on the LBP3300
captstatusui -P LBP3300
# try to print a test page. and
# if it print then !!!! BOOM !!!!
# start ccpd daemon by
sudo /etc/init.d/ccpd start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment