2014年公司的一台cacon imageclass4010 的小型打印机, 原先单独在行政同事的电脑上驱动 , 该打印机本身没有带网络功能, 于是找了一些相关的驱动成功搭建到局域网共享 .  这个是一年多以前的处理的事情了,翻翻笔记整理出来做个记录.

1. 工作服务器的环境是Linux CentOS , 先安装Cups 管理软件.

yum install cups

在佳能官网的海外站点找来了Linux的下的驱动软件( Linux_UFRII_PrinterDriver_V280_uk_EN.tar.gz ),里面有英文的安装说明.

 Installing the Printer Driver
0J76-005
The printer driver must be installed in order to print from Canon printers using Linux.
The installed files differ depending on the system environment you are using.
The following files are installed in 32-bit systems:
"cndrvcups-common-x.xx-x.i386.rpm" : common module for CUPS drivers
"cndrvcups-ufr2-uk-x.xx-x.i386.rpm" : UFR II printer driver module
The following files are installed in 64-bit systems:
"cndrvcups-common-x.xx-x.x86_64.rpm" : common module for CUPS drivers
"cndrvcups-ufr2-uk-x.xx-x.x86_64.rpm" : UFR II printer driver module
The following files are installed in 32-bit Debian systems:
"cndrvcups-common_x.xx-x_i386.deb" : common module for CUPS drivers
"cndrvcups-ufr2-uk_x.xx-x_i386.deb" : UFR II printer driver module
The following files are installed in 64-bit Debian systems:
"cndrvcups-common_x.xx-x_amd64.deb" : common module for CUPS drivers
"cndrvcups-ufr2-uk_x.xx-x_amd64.deb" : UFR II printer driver module
1.
Start Linux, and log in as 'root'.
$ su
2.
Install the common module for CUPS drivers.
For rpm packages:
Enter the following command:
# rpm -ivh [file name of common module for CUPS drivers]
For deb packages:
Enter the following command:
# dpkg -i [file name of common module for CUPS drivers]
NOTE
When you execute the rpm command from a directory, specify the path or use the cd command to change the current directory to the directory containing the printer driver files.For details about the rpm command, enter "man rpm" with the terminal software, such as GNOME Terminal.
3.
Install the UFR II printer driver module.
For rpm packages:
Enter the following command:
# rpm -ivh [file name of the UFR II printer driver module]
For deb packages:
Enter the following command:
# dpkg -i [file name of the UFR II printer driver module]
4.
Restart CUPS.
For rpm packages:
Enter the following command:
# /etc/init.d/cups restart
For deb packages:
Enter the following command:
# /etc/init.d/cupsys restart
NOTE
Do not register the printer using the "lpadmin" command before restarting CUPS.Depending on the operating system you are using, you may need to use the above rpm package command to restart CUPS, even if the system you are using normally requires deb package commands.The above command may be invalid in some operating systems. If so, use the following command.# service cups restart
5.
Register the printer (PPD) with the print spooler.
NOTE
For the PPD file corresponding to your printer, refer to the Readme file.
Parallel Connection
Enter the following lpadmin command:
# /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v parallel:/dev/lp0 -E
USB Connection
Enter the following lpadmin command:
# /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v usb:[device file location] -E
NOTE
[device file location] differs with the operating system distribution you are using. Normally, you can specify "/dev/usb/lp0" or "dev/usblp0".If you cannot print correctly, specify the device URI for [device file location]. You can confirm the device URI by executing the command "/usr/sbin/lpinfo -v".If you are connected via USB to a device that requires bi-directional communication, specify "cnusb" instead of "usb" in commands. In such cases, you can confirm [device file location] by executing the "/usr/lib/cups/backend/cnusb" command (in the case of 32-bit operating systems) with administrator privileges.For information on printer models that require bi-directional communication, refer to the Readme file.
Network Connection (IPv4)
Enter the following lpadmin command:
# /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v lpd://[Device IP address or FQDN]/[Printer Name] -E
Example: To register the iRC3180 in the print spooler as "CANON-iRC3180":
/usr/sbin/lpadmin -p CANON-iRC3180 -m CNCUPSIRC3180ZK.ppd -v lpd://172.23.2.72/CANON-iRC3180 -E
Network Connection (IPv6)
Enter the following lpadmin command:
<When using a global address>
# /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v lpd://[Device IP address]/[Printer Name] -E
Example: To register the iR3225 in the print spooler as "CANON-iR3225" (IP address: 3ffe:1:1:10:feb0:0:1234:5678):
/usr/sbin/lpadmin -p CANON-iR3225 -m CNCUPSIR3225ZK.ppd -v lpd://[3ffe:1:1:10:feb0:0:1234:5678]/CANON-iR3225 -E
<When using a link local address>
# /usr/sbin/lpadmin -p [Printer Name] -m [PPD file] -v lpd://[[Device IP address]+[Network interface]]/[Printer Name] -E
Example: To register the iR3225 in the print spooler as "CANON-iR3225" (IP address: fe80::200:85ff:1234:5678, network interface: eth0):
/usr/sbin/lpadmin -p CANON-iR3225 -m CNCUPSIR3225ZK.ppd -v lpd://[fe80::200:85ff:1234:5678+eth0]/CANON-iR3225 -E
NOTE
For information on IPv6 support for each printer model refer to the Readme file.In a LAN environment where IP addresses have been assigned, if the status of the printer cannot be displayed, the CUPS security settings must be changed. Add the set IP address to the following items in the cupsd.conf file (/etc/cups/cupsd.conf), and restart CUPS.<Location /><Location /admin>Example:        :<Location />Order Deny,AllowDeny From AllAllow From 127.0.0.1Allow From XXX.XXX.XXX.XXX (Substitute the set IP address here.)</Location>        :        :<Location /admin>        :        :Order Deny,AllowDeny From AllAllow From 127.0.0.1Allow From XXX.XXX.XXX.XXX (Substitute the set IP address here.)        :</Location>For information about the security settings for networks, refer to the "CUPS Software Administrators Manual" at http://www.cups.org/sam.html.

2.按说明书的指导 安装驱动软件

rpm -ivh cndrvcups-common-2.80-1.x86_64.rpm cndrvcups-ufr2-uk-2.80-1.x86_64.rpm

3.重启cups :

 service cups restart

4.注册驱动 ,PPD文件在安装好的驱动目录下面,找到对应型号的文件即可注册驱动:

cd /usr/share/cups/model/
lpadmin -p CanonPrinter -m CNCUPSMF4010ZK.ppd -v parallel:/dev/usb/lp0 -E

5.修改cups的端口和访问权限

vim /etc/cups/cupsd.conf Listen 192.168.1.250:7890<Location />Order allow,denyAllow From 192.168.*</Location>

6.这样服务器的驱动就搞定了, 客户端的指定搜索网络打印机,手动指定 打印机的windows驱动文件就可以用了. 驱动文件到官方下载.

转载于:https://my.oschina.net/francesco/blog/616031

Linux下安装佳能网络打印机cacon imageclass4010相关推荐

  1. linux添加HP网络打印机,在Ubuntu 18.10系统下安装HP网络打印机的方法

    本文介绍在Ubuntu 18.10系统下安装HP网络打印机的方法,只需要四个步骤就可以了.同样的方法也适合在Ubuntu 18.04系统下. 背景 最近做了个双系统Windows+Ubuntu 18. ...

  2. linux使用佳能ip1188,在Linux下安装打印驱动,以佳能LBP2900+为例

    相较于在Windows下安装打印驱动程序,在linux下安装打印驱动程序要复杂一些,不过安装成功后,打印驱动比在Windows下稳定,不会出现让人迷惑无从下手的问题,这正是linux系统相比于wind ...

  3. ccpd文件名转成xml_在Deepin V20/Ubuntu 20.04下安装佳能LBP2900+打印机的方法

    本文为你介绍在Deepin V20系统下安装佳能LBP2900+打印机的方法,同样的方法也适用在Ubuntu 20.04下,但在Ubuntu下需要安装canberra-gtk-module. 在Dee ...

  4. linux下安装sbt_如何在Linux上安装SBT

    linux下安装sbt 介绍 (Introduction) Hi! I am Sanjula, and in this guide I hope to teach you how to install ...

  5. Linux下安装Oracle参数自动初始化脚本

    在linux下安装Oracle通常是一件很头疼的事情, 而如果我们只是为了部署CMS的话,也没有必要对Oracle的参数去做详细的了解. 那么有没有办法简化这个安装过程呢? 下面给出了一个在Linux ...

  6. Linux下安装和使用boost库

    Linux下安装和使用boost库 2016-08-26 20:29:06 zhaomax 阅读数 349更多 分类专栏: C++ 用boost库中的serialization库.Boost库分为两个 ...

  7. SIPp工具Linux下安装

    2019独角兽企业重金招聘Python工程师标准>>> 一.SIPp介绍 SIPp是一个测试SIP协议性能的工具软件,这是一个开源软件.      它可使用INVITE和B YE建立 ...

  8. Linux下安装rabbitmq3.7.8

    Linux下安装rabbitmq 1.安装Erlang环境 1)安装GCC GCC-C++ Openssl等模块 2)安装ncurses 3)安装erlang环境 4)配置安装 5)验证是否安装成功 ...

  9. 如何在Linux下安装Docker

    如何在Linux下安装Docker Docker概念: Docker包括三个基本概念: l  镜像(Image) l  容器(Container) l  仓库(Repository) 理解了这三个概念 ...

最新文章

  1. github远程提交简单入门
  2. iOS系列教程 目录 (持续更新...)
  3. Android ActionBar完全解析,使用官方推荐的最佳导航栏(上)
  4. PCL点云库法向量显示,vtk错误“no override found for vtkActor”
  5. #linux进阶#wget
  6. CentOS7 FTP安装与配置
  7. 解决非javascript浏览器的问题
  8. 计算机基础技能应用查询中心,计算机基础应用教程
  9. 自己动手写操作系统(高清图书+源代码)分享
  10. 软件系统演示脚本实践(草稿)
  11. vi不保存退出的命令
  12. windows系统有那些服务器版本,windows系统有哪些版本
  13. 集群健康值: yellow 问题
  14. CornerNet论文笔记
  15. KingbaseES共享集群存储方案的选择
  16. Android中监听Home键的4种方法总结
  17. Shell脚本实现sshd黑名单
  18. MATLAB如何绘制折线图和美化折线图
  19. C#上位机 串口上位机Modbus协议
  20. H3C 交换机重置console密码

热门文章

  1. Javascript编写翻页时钟(包括定时和闹钟功能)
  2. 一个基于pycuda的矩阵乘法实现,它使用CUDA核心来
  3. windows、linux操作系统下载地址
  4. MSP430时钟设置及应用总结
  5. 用excel图表误差线显示均值和标准差(转)
  6. 计算机控制交通灯实验报告,PLC实验专用周实验报告 交通灯
  7. Ubuntu QT 5.9.0 安装
  8. (考研湖科大教书匠计算机网络)第四章网络层-第五节:静态路由配置及其可能产生的路由环路问题
  9. 线性滤波器非线性滤波器
  10. 混合颜色带(应用篇)