Heres a procedure for
Fedora 14 (FC14) 64 bit x86_64 using the latest
Canon printer drivers version 2.20.
Thanks to
http://www.linuxquestions.in/tips-tr...nter-lbp-3250/ and
http://www.fedoraforum.org/forum/sho...ght=canon+capt
Disable SELINUX
Code:
# vim /etc/sysconfig/selinux
to confirm
you need to reboot so that the* kernel is aware of SELINUX is disabled.
Now connect the printer
this should show /dev/usb/lp0 ( the printer is detected at this port )
Code:
# vim /etc/ccpd.conf
This file will be blank.
Code:
# vim /etc/cups/printers.conf
This file will also be blank.
Stop Haldaemon service - apparently this stops the Canon rpm's from installing correctly!
Code:
# service haldaemon stop
Check ghost-script is installed.
Code:
# rpm -qa |grep ghost
ghostscript-cups-8.71-16.fc14.x86_64
ghostscript-8.71-16.fc14.x86_64
ghostscript-fonts-5.50-23.fc12.noarch
Code:
# ghostscript –version
you can also check it by typing the following command on the terminal.
Code:
# gs -h | grep opvp
If the Ghostscript has the OpenPrinting Driver Interface, you can see the text includes both "opvp" and "oprp" as following.
lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus nullpage
opvp oprp pbm
Note if ghostscript is not installed please install it before moving forward.
Code:
# yum install cups-libs popt compat-libstdc++-33
# yum install cups-libs.i686 popt.i686 compat-libstdc++-33.i686
install the RPMS from canons download Version 2.20 Released on 26-01-2011
http://software.canon-europe.com/software/0040567.asp
This will be a tarball - untar and then untar the two tarballs inside that and find the rpms for your system:
Code:
# rpm -ivh cndrvcups-common-2.20-1.x86_64.rpm
# rpm -ivh cndrvcups-capt-2.20-1.x86_64.rpm
Restart cups
Code:
# /etc/init.d/cups restart
Register the printer with the Print Spooler
Code:
# ls /var/ccpd/fifo*
if nothing exists
Code:
mkfifo /var/ccpd/fifo0
Set permissions
Code:
chmod a+rw /var/ccpd/fifo*
Check the symlinks are in place – ie you should not need to do the following because they are there already (the install without disabling haldaemon doesnt create these – if you dont have these you should remove ccpd and restart the install)
ln -vs /usr/lib64/cups/backend/ccp /usr/lib/cups/backend/ccp
ln -vs /usr/lib64/cups/filter/pstocapt /usr/lib/cups/filter/pstocapt
ln -vs /usr/lib64/cups/filter/pstocapt2 /usr/lib/cups/filter/pstocapt2
ln -vs /usr/lib64/cups/filter/pstocapt3 /usr/lib/cups/filter/pstocapt3
Code:
# lpadmin -p LBP5050n -m CNCUPSLBP5050CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
register the printer with the daemon setup file
Code:
# /usr/sbin/ccpdadmin -p LBP5050n -o /dev/usb/lp0
this will show you something like this
Code:
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787
Entry Num : Spooler : Backend : FIFO path : Device Path : Status
----------------------------------------------------------------------------
[0] : LBP5050n : ccp : /var/ccpd/fifo0 : /dev/usb/lp0 : New!!
--------------------------------------------------------
confirm it by viewing the following file
Code:
# more /etc/ccpd.conf
it should contain something like this
Code:
<Printer LBP5050n>
DevicePath /dev/usb/lp0
</Printer>
restart ccpd daemon
Code:
# /etc/init.d/ccpd restart
make the ccpd service bootable
add the following below the first 2 lines:
Code:
### BEGIN INIT INFO
# Provides: ccpd
# Required-Start: $local_fs $remote_fs $syslog $network $named
# Should-Start: $ALL
# Required-Stop: $syslog $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start Canon Printer Daemon for CUPS
### END INIT INFO
Code:
# chkconfig --add ccpd
# chkconfig --level 345 ccpd on
check cups starts every time you boot your machine
Code:
# chkconfig --level 35 cups on
To solve the following error seen in /var/log/cups/error_log:
Unable to bind socket for address 0.0.0.0:631 - Address already in use.
E [03/May/2011:13:48:59 +0100] Unable to bind socket for address :::631 - Address already in use.
Code:
# vi /etc/cups/cupsd.conf
change
Code:
Listen localhost:631
to
Code:
Listen 127.0.0.1:631
/etc/cups/cupsd.conf.default should be adapted too.
(Actually, I don't know why localhost wouldn't be ok.)
set default printer
Code:
# lpadmin -d LBP5050n
# if you want to set the paper size to stop the printer hanging on wrong size (in this case I use Legal size you might use A4 instead)
Code:
# lpadmin -p LBP5050n -o media=Legal
test:
Code:
# lpr /etc/fedora-release
You should get a printout.
Code:
# cat /var/log/cups/error_log
You should see no errors in the log
renable selinux
Code:
# vi /etc/sysconfig/selinux
SELINUX=enforcing