https://wiki.archlinux.org/api.php?action=feedcontributions&user=Archipel&feedformat=atomArchWiki - User contributions [en]2024-03-28T11:17:39ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Canon_CAPT&diff=77879Canon CAPT2009-10-15T22:04:05Z<p>Archipel: /* Requirements */</p>
<hr />
<div>[[Category:Printers_(English)]]<br />
=Introduction=<br />
This is a brief manual about how to make '''Canon i-sensys LBP2900''' (LBP2900) to work with arch. This manual can be also applied on folowing printer models:<br />
LBP3010/LBP3018/LBP3050, LBP3100/LBP3108/LBP3150, LBP3250, LBP3310, LBP5100, LBP5300, LBP3500, LBP3300, LBP5000, LBP3210, LBP3000, LBP2900, LBP3200, LBP-1120, LBP-1210<br />
<br />
'''Note: if you can find your printer model on the list use this manual, and switch [printer model] with your printer model'''<br />
=Requirements=<br />
*cups<br />
*ghostscript<br />
*gsfonts<br />
*rpmextract.sh<br />
*system-config-printer<br />
Install with:<br />
# pacman -S cups ghostscript gsfonts rpmextract system-config-printer<br />
<br />
== Additional requirements on Arch64 ==<br />
<br />
*lib32-cups<br />
*lib32-heimdal<br />
*lib32-libxml2<br />
*lib32-popt [http://aur.archlinux.org/packages.php?ID=19535 from aur version 1.14-1]<br />
<br />
Install with:<br />
# pacman -S lib32-cups lib32-heimdal lib32-libxml2<br />
<br />
And build the aur package using ABS or yaourt<br />
<br />
=Driver=<br />
*http://files.canon-europe.com/files/soft31118/software/CAPTDRV180.tar.gz<br />
For information about setting up cups, refer to [[CUPS]].<br />
=Installation=<br />
Download the driver and extract it:<br />
# wget http://files.canon-europe.com/files/soft31118/software/CAPTDRV180.tar.gz<br />
# tar -xvf CAPTDRV180.tar.gz<br />
# cd CANON_UK/Driver/RPM<br />
# rpmextract.sh *<br />
The last command abow will extract all rpm-s and merge all directories that were stored in them. So basically you'll get two directories: '''etc''' and '''usr'''. Next thing you need to do is to open '''etc''' directory and change '''init.d''' to '''rc.d'''. You can also do it by command:<br />
# mv etc/init.d etc/rc.d<br />
Now you can remove rpm-s:<br />
# rm *.rpm<br />
and execute the nexth command wich will merge '''etc''' end '''usr''' directories with appropriate ones in '''/''' directory:<br />
# cp -var * /<br />
=Restart cups=<br />
# /etc/rc.d/cups restart<br />
=Add cups daemon in '''/etc/rc.conf'''=<br />
Open /etc/rc.conf with a text editor of your choice (e.g. nano), and put cups in the list of daemons:<br />
DAEMONS=(... @bluetooth cups gdm)<br />
<br />
=Make folowing directories and fifo0=<br />
# mkdir /var/ccpd /var/captmon<br />
# mkfifo /var/ccpd/fifo0<br />
Make fifo0 accessable to everyone:<br />
# chmod 777 /var/ccpd/fifo0<br />
Change the owner of fifo0 into root:<br />
# chown root /var/ccpd/fifo0<br />
=Register printer=<br />
Register the printer driver with the print spooler with the following command, replacing [printer model] with your printer model and [printer driver file] with your driver file:<br />
# /usr/sbin/lpadmin -p [printer model] -m [printer driver file] -v ccp:/var/ccpd/fifo0 -E<br />
for this manual it would be<br />
# /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E<br />
Register the printer with ccpd daemon, once again replace [printer model] with your printer model: <br />
# /usr/sbin/ccpdadmin -p [printer model] -o /dev/usb/lp0<br />
in this case it is:<br />
# /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0<br />
<br />
=Make udev rule for your printer=<br />
Create an udev rule so when you turn the printer on, printer daemon (ccpd) will start.<br />
More about udev rules you can see here: http://reactivated.net/writing_udev_rules.html<br />
# echo -e '#Own udev rule for [printer model]\nSUBSYSTEM=="usb", KERNEL=="lp0", RUN+="/etc/rc.d/ccpd restart"' <no line break><br />
> /etc/udev/rules.d/85-[printer model].rules<br />
in this case:<br />
# echo -e '#Own udev rule for Canon i-sensys LBP2900\nSUBSYSTEM=="usb", KERNEL=="lp0", RUN+="/etc/rc.d/ccpd restart"' <no line break><br />
> /etc/udev/rules.d/85-LBP2900.rules<br />
<br />
=Start printer daemon and print=<br />
# /etc/rc.d/ccpd start<br />
The printer should now be installed. You could test it by pressing the Print Test Page button. <br />
=Turboprint=<br />
{{stub}}<br />
=Related Links/Additional Information=<br />
https://help.ubuntu.com/community/HardwareSupportComponentsPrinters/CanonPrinters/Canon_LBP_2900 - A guide for setting up the printer on ubuntu</div>Archipel