Install canon LBP2900 driver in linux
1. Switch off Printer
1. install pre-install packages
sudo apt-get install libcupsys2
sudo apt-get install libstdc++5
2. Download Cannon drivers from official site unzip them install packages
sudo dpkg -i cndrvcups-common_2.00-2_i386.deb
sudo dpkg -i cndrvcups-capt_2.00-2_i386.deb
3. Run
sudo /etc/init.d/cups restart
output:
[OK]
4. Run
sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
5. Run (registration of drinter in domain)
sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
Output:
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP2900 : ccp : /var/ccpd/fifo0 : /dev/usb/lp0 : New!!
6. Switch ON Printer.
7.1 Backup /etc/init.d/ccpd
7.2 Run
gksudo gedit /etc/init.d/ccpd
and put new content for file
#!/bin/sh
# startup script for Canon Printer Daemon for CUPS (ccpd)
### BEGIN INIT INFO
# 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
### END INIT INFO
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
8. Run
sudo /etc/init.d/ccpd restart
output:
* Restarting Canon Printer Daemon for CUPS: ccpd [ OK ]
9. Run
sudo update-rc.d ccpd defaults 50
(selecting of non standard value for default is explaned in help)
Output:
update-rc.d: warning: ccpd start runlevel arguments (2 3 4 5) do not match LSB Default-Start values (2 3)
update-rc.d: warning: ccpd stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (0 1 4 5 6)
Adding system startup for /etc/init.d/ccpd ...
/etc/rc0.d/K50ccpd -> ../init.d/ccpd
/etc/rc1.d/K50ccpd -> ../init.d/ccpd
/etc/rc6.d/K50ccpd -> ../init.d/ccpd
/etc/rc2.d/S50ccpd -> ../init.d/ccpd
/etc/rc3.d/S50ccpd -> ../init.d/ccpd
/etc/rc4.d/S50ccpd -> ../init.d/ccpd
/etc/rc5.d/S50ccpd -> ../init.d/ccpd
Ignore warnings and go further
10. Open nemu -- Administration -- Printing, you can see two printers there LBP2900 и LBP2900-2.
According to Help we need to ignore second printer, BUT DO NOT remove it,
Right click over LBP2900 -> "Properties" and "Print test page"
11. Switch Off Printer.
12. Reboot PC
13. Switch on Printer. run
sudo /etc/init.d/ccpd status
output:
Canon Printer Daemon for CUPS: ccpd: 1818 1689
You will have different numbers. It is important thet you have 2 numbers.
In you have only one number you have problem with ccpd demon.
14. Run
sudo captstatusui -P LBP2900
Output:
UI application should be opened with message "Ready to Print". It is OK.
15. Open System - Preferences - Startup Applications
Press "Add" and put
Name = "Canon Printing Status Monitor"
Command =
captstatusui -e -P LBP2900
Info:
"-e" parameter make motinor be hidden till error is appear, for example "paper is absent"
16. Make LBP2900 as default printer
manu Administration -> Printing. Select LBP2900, right click, "Set as Default"
https://askubuntu.com/questions/487627/how-to-install-canon-lbp2900b-printer-in-14-04-lts-i-tried-the-method-for-lbp2
ReplyDeletehttps://riku.titanix.net/wordpress/canon-2900-working-on-linux/
ReplyDeletehttps://unix.stackexchange.com/questions/244266/canon-printer-lbp2900b-in-linux-mint-17-2-cinnamon-32bit
ReplyDeleteIn some system don't exist lp0 some system have lp1 so replace the blow command with lp1
ReplyDeletesudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0
to make lp0 if not exist, sudo mknod /dev/usb/lp0 b 6 0
ReplyDeleteAfter first line "sudo apt-get install libcupsys2" I get .......Package libcupsys2 is not available, but is referred to by another package.
ReplyDeleteThis may mean that the package is missing, has been obsoleted, or
is only available from another source
https://forums.linuxmint.com/viewtopic.php?t=228715
ReplyDeleteUse this file to install the via synaptic driver portserve, gsfonts, gsfonts-other, gsfonts-x11
ReplyDeleteafter changing the file /etc/init.d/ccpd with the given script, the system will not restart or shutdown it will waiting for a long time., please help
ReplyDelete