最近因教研室服务器老化,需要安装一台新的打印机及文件服务器,原来操作系统为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

ubuntu12.04设置打印服务器相关推荐

  1. Ubuntu12.04设置软件源

    修改/etc/apt/sources.list文件如下: # deb cdrom:[Ubuntu 12.04.1 LTS _Precise Pangolin_ - Release i386 (2012 ...

  2. Ubuntu12.04 设置1080P分辨率

    http://blog.sina.com.cn/s/blog_49f3f2ed0101956r.html 由于是笔记本外籍显示器,可是Ubuntu无法识别我的philips,所以使用xrandr来设置 ...

  3. Ubuntu12.04 root用户登录设置

    Ubuntu12.04 root用户登录设置 ubuntu12.04默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录.以普通身份登陆Ubuntu后我们需要做一些修改,  www.2ct ...

  4. 用win7的NT6引导Ubuntu12.04手动设置方法和错误修复

    首先,本文采用的全部是手动制作引导的方式,没有使用第3方的EasyBCD等软件实现Win7的NT6.x引导ubuntu12.04系统. 本文讨论也是单独分区安装ubuntu12.04系统,不是虚拟机安 ...

  5. ubuntu12.04装机后设置

    ubuntu12.04默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录.以普通身份登陆Ubuntu后我们需要做一些修改, 普通用户登录后,修改系统配置文件需要切换到超级用户模式,在终端 ...

  6. 【转】 ubuntu12.04更新源

    原文网址:http://blog.chinaunix.net/uid-26404477-id-3382633.html 摘 要:本文列出ubuntu 12.04 LTS更新源列表,内容为网友整理,此处 ...

  7. ubuntu12.04 alternate win7 双系统安装

    ubuntu alternate的安装比desktop复杂一点,因为alternate的安装过程有个步骤是检测cd-rom,如果你是刻盘安装,自然没问题,但是,现在的安装一般是将系统刻到U盘里,或者在 ...

  8. Ubuntu12.04版本安装arm-linux-gcc 4.3.3

    由于Ubuntu12.04是64位系统,如果安装4.3.3版本的arm gcc,系统将会找到,所以要让其可用,就要安装ia32-lib包,以便让系统使用32bit软件: apt-get install ...

  9. ubuntu12.04+fuerte 下跑通lsd-slam——数据集

    lsd-slam(下载链接:https://github.com/tum-vision/lsd_slam)提供了两种方法,一种是用数据集(下载地址http://vision.in.tum.de/lsd ...

最新文章

  1. Windows10 右键 cmd
  2. R语言实战应用精讲50篇(十三)-如何使用JAVA调用R语言,两种语言的完美结合
  3. IOS 开发中判断NSString是否为空字符
  4. Java 比较两个日期的方法
  5. 文件操作-读取文件后文件指针会发生变化
  6. Java二元运算和三元运算速度测试
  7. nginx反向代理配置实例分享
  8. dataframe合并两个表_Pandas 数据处理 | 怎么对多个数据表合并,你了解么?
  9. 浅谈ztree节点的增加和获取
  10. CISCO基础之局域网交换机配置
  11. flutter html 加载_Flutter开发:项目加载本地html文件的步骤
  12. NLP学习—24.Pre-trained Word Embedding—ELMO、GPT、Bert
  13. 将多个pdf合并为一个
  14. 做在线交易你必须知道的关于支付的知识
  15. S32K144之芯片锁死解锁——关闭debug端口
  16. 学了C语言想装x能干点啥?手把手教你写个聊天软件来玩玩
  17. np.stack()函数详解
  18. 商汤科技面试——AI算法岗
  19. 《网络是怎样连接的》学习笔记-3
  20. Python简单浪漫表白代码鲜花

热门文章

  1. 名编辑电子杂志大师教程 | 名编辑电子杂志大师软件简介
  2. 软件测试新手误区-追求最新版本的测试工具
  3. 学习古月课程遇到的问题以及实践过程
  4. vc2010编译openssl
  5. Qt之QUdpSocket定时器网络广播
  6. 易中天品三国--要点记录
  7. COOX培训材料 — SCADA(6.Silo)
  8. Jlink给目标板供电 外部电源给目标板供电
  9. 近世代数--唯一分解整环上的多项式环--本原多项式的可约问题
  10. 利用CMailServer搭建邮件服务器