ubuntu12.04设置打印服务器

最近因教研室服务器老化,需要安装一台新的打印机及文件服务器,原来操作系统为Centos6,这次选择用ubuntu作为操作

系统,于是开始了为期数天的蛋疼之旅。

说明:打印机为Canon LBP2900

1. 安装打印机驱动及系统选择

        网上众多资料说可以在14.04或者13.10上安装LBP2900驱动成功,

经过无数次的测试,查找不计其数的网络资源,发现完全不靠谱,没有安装成功。这里不排除

可以安装成功但是本人没有找到具体安装步骤或者是因本人水平不足所造成的错误。总之本人

在ubuntu13.10上没有安装成功。后来选择了ubuntu 12.04,驱动程序的README文件说明

驱动程序能适应该操作系统。

驱动程序下载地址:http://gdlp01.c-wss.com/gds/6/0100004596/03/Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz

       于是选择了ubuntu12.04 的32位版本,采用以下步骤安装:

       参考http://forum.ubuntu.org.cn/viewtopic.php?t=389624  5楼

       1 – 安裝驅動程序
       拷貝Linux_CAPT_PrinterDriver_V260_uk_EN.tar.gz,解壓后
      安裝32/64-bit_Driver/Debian/中的2個文件
       sudo dpkg -i cndrvcups-common_2.60-1_i386.deb
       sudo dpkg -i cndrvcups-capt_2.60-1_i386.deb
      2 – 設定
     1) Create the following directories/file if they are missing:
     sudo mkdir /var/ccpd
     sudo mkfifo /var/ccpd/fifo0
     sudo mkdir /var/captmon

     2) Register the printer:
    sudo /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 –E

     3) Register the printer with ccpd daemon:
     sudo /usr/sbin/ccpdadmin -p LBP2900 -o /dev/usb/lp0

    4) Start ccpd daemon:
    sudo /etc/init.d/ccpd start

    5) Auto Start ccpd
    Sudo update-rc.d ccpd defaults 20

    打印机顺利在本机上运行,于是想采用ubuntu12.04 64位版本,重装系统,采用上述方法没有驱动成功,原因未知。

    所以最后使用了ubuntu12.04 32位版本系统。

2. 设置打印机共享

    设置共享,参考网络上各种资料,让其他机器可以访问服务器打印机,使用 sambd服务,此处没有困难!

    客户端机器windows7 连接服务器打印机后,各种问题, 现做总结如下:  

   1)  打印机使用前需要再服务器启动 ccpd: sudo service ccpd restart  服务,

           cups:   sudo service cups restart  默认已经启动!ccpd 应该在cups之后执行。

   2) smbd 服务:sudo service smbd restart, 应该在cups 激 ccpd启动后启动。

   3) 启动服务使用restart 不要使用start,可能有不明错误。

   4) 安装驱动后应该重启电脑。

   经过以上终于可以在windows看到ubuntu的打印机,但是还有各种蛋疼的问题,有时候是不能打印,有时候

打印一次后,再次打印就无法继续打印,本人能力不足没有找到资料,所以没有解决问题, 直到采用如下方法。


3. 成功的驱动和设置方法

 参考:http://askubuntu.com/questions/326620/printing-problem-canon-lbp2900?rq=1

Remove the printer from the window System - Printers.

Uninstall cndrvcups-capt and cndrvcups-common with Ubuntu Sofware Center.

Go to this page:

http://radu.cotescu.com/how-to-install-canon-lbp-printers-in-ubuntu/

Find the link to download the script, unzip and run it.

The printer is not working.

说明:运行*_install.sh LBP2900 为安装LBP2900 其他类似,*_uninstall.sh 则为卸载。

The wrong way signal on the top of the screen tells us that something was wrong with the dependencies and that we have to type on the terminal:

sudo apt-get install -f cndrvcups-common

and

sudo apt-get install -f cndrvcups-capt
说明:需要根据提示安装 依赖库。 

Dependencies are all right, but the printer is still silent.

Open the printer window and look at the properties: the URI is

ccp://localhost:59687.

Correct it in

ccp://localhost:59787.
说明:此处如在安装前将 *_install.sh 文件中的 59687 修改为59787 则不会有问题。 

The printer is still silent.

Type on the terminal

sudo /etc/init.d/ccpd status

The answer is one number, not two: too bad.

Type on the terminal
sudo /etc/init.d/ccpd restart

and then

sudo /etc/init.d/ccpd status

The answer is two numbers. OK.

Try printing the test page, no paper on the printer, the printer stops and does not restart.

We have to start the printer monitor at bootstrap.

On the system setting - startup applications

click the Add button

Name: Canon printing status monitor

Command: captstatusui -e -P LBP2900

Description: Hidden until an error occurs

The printer now is working properly.

到此为止服务器端设置成功。

说明:打印前重启计算机,并启动ccpd服务。

之后在windows通过添加网络打印机,重新安装windows下的驱动程序,ubuntu打印服务器设置成功。


说明:通过网上所说的复制https://address:631/printers 方式找到打印机,并复制打印机网址,添加

打印机的方式,我再windows下可以通过网页打印测试纸,但是添加网络打印机没有成功!原因未知。

address为服务器的ip


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值