[分享]Ubuntu 9.10 驱动CanonLBP2900打印机

CPU/显卡/打印机/USB设备等硬件问题
回复
sqxx
帖子: 1
注册时间: 2009-12-01 16:43

[分享]Ubuntu 9.10 驱动CanonLBP2900打印机

#1

帖子 sqxx » 2009-12-01 17:13

我参考了下面的连接,在我的Ubuntu9.10中连接成功Winxp下共享的CanonLBP2900,说的不明白的地方还请各位谅解,也可以直接看英文帖子,应该比我说的清楚,希望给使用CanonLBP2900系列打印机的朋友提供一点帮助。谢谢大家!

以下文字有很多复制自上面的2个连接中,感谢原帖作者。另外:此驱动好像可以支持好几款佳能打印机,其他机型也可以试一下

英文参考连接:https://help.ubuntu.com/community/Hardw ... n_LBP_2900
英文参考连接:https://help.ubuntu.com/community/CanonCaptDrv190

主要问题是:先按照第一个连接里面的提示安装Ubuntu9.10新版驱动程序,地址:http://support-au.canon.com.au/EN/searc ... u=Download

选择
Linux Printer Driver (CAPT) Ver.1.90E [preview]下载。注意先不要安装

还需要2个软件,libcupsys2和 libstdc ,分别在http://packages.ubuntu.com/jaunty/all/libcupsys2/download 和 http://packages.ubuntu.com/jaunty/libstdc++5(这里选择cpu32位坂本和64位)下载后安装。

然后解压打印机驱动安装dpkg -i 解压后的.deb包。

接下来

停止 CUPS:


$ sudo /etc/init.d/cups stop

检查是否停止
$ sudo ps ax | grep cupsd

如果这样或类似就可以了
username 24738 0.0 0.0 2896 836 pts/0 S+ 21:21 0:00 grep cupsd

如果不是,用kill命令杀死

$ sudo killall -9 cupsd



重启t CUPS again:

$ sudo /etc/init.d/cupsys start

Step 4:

注册打印机驱动

$ sudo /usr/sbin/lpadmin -p [printer model] -m [printer driver file] -v ccp:/var/ccpd/fifo0 -E

Canon LBP 2900 这样写:

$ sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E


安装:我照搬英文了,我安装的是网络winxp打印机,不知道这个本地的正确不正确
Once registered your printer should appear in the System > Administration > Printing dialog. For 8.10 users: first be sure to delete old printer which was "installed" before the driver installation.

Register the printer with ccpd daemon, once again replace [printer model] with your printer model:

$ sudo /usr/sbin/ccpdadmin -p [printer model] -o /dev/usblp0

For example, the command for the Canon LBP 2900 would be:

$ sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usblp0

Step 5:替换ccpd脚本

保存旧的sudo cp /etc/init.d/ccpd /etc/init.d/ccpd.orig

编辑新的

sudo gedit /etc/init.d/ccpd

把下面的脚本粘贴到打开的gedit后保存

# 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

加上执行权限
$ sudo chmod a+x /etc/init.d/ccpd

启动ccpd
sudo /etc/init.d/ccpd restart
* Restarting Canon Printer Daemon for CUPS: ccpd [ OK ]

测试打印

At this point you can test your printer by going to: System->Administration->Printing

You should see a icon for the printer you have just setup. There maybe another printer in there with a similar name just ignore this one for the time being. Right click on the printer and choose properties. Click the buttons "Print Test Page". Hopefully your page should print.

We have replaced the script to start the driver. Next we need to tell the system we want the script to start when the system next boots. This is where i had most problems with the ccpd daemon.

9.10 自动运行 ccpd

终端运行下面的命令

sudo update-rc.d ccpd defaults 50

至于网络打印机就直接在系统-管理-打印机里面安装smb打印机就行了
我的打印机地址是smb://192.168.31/CanonLBP,然后接下来找到驱动就行了
上次由 sqxx 在 2009-12-01 22:36,总共编辑 1 次。
头像
大宝
帖子: 3049
注册时间: 2008-06-30 22:32
联系:

Re: [分享]Ubuntu 9.10 驱动CanonLBP2900打印机

#2

帖子 大宝 » 2009-12-01 20:49

:em11
yw3008
帖子: 185
注册时间: 2006-09-25 15:08

Re: [分享]Ubuntu 9.10 驱动CanonLBP2900打印机

#3

帖子 yw3008 » 2010-05-26 20:54

非常感谢楼主!!!
解决了多日困扰我的问题。
虽然主帖有的步骤我的机子没反应,但我不管它,往下走,终于成功打印。
stsdllj
帖子: 13
注册时间: 2011-03-07 12:32

Re: [分享]Ubuntu 9.10 驱动CanonLBP2900打印机

#4

帖子 stsdllj » 2011-03-09 1:24

sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E

这一步出错,提示:
无法设定 PPD 文件:
您必须先指定一个打印机名称!

-p参数改了,大小写,-m都试了

........这帖子有人看么?
jerry_hz
帖子: 6
注册时间: 2018-11-08 9:47
系统: ubuntu+win10

Re: [分享]Ubuntu 9.10 驱动CanonLBP2900打印机

#5

帖子 jerry_hz » 2018-11-13 10:47

请问楼主:我用的是ubuntu18.04。也是添加xp下的2900,同局域网。我能看到xp的共享文件夹,xp也可以访问ubuntu的共享文件夹。可是我看不到xp共享的打印机。于是,2900在ubuntu安装之后,ubuntu打印时提示打印完成,可打印机没任何动作。这个要怎么设置。谢谢!
回复