Fedora 28 打印机配置 ( HP pro 1136M ,基于Windows 打印服务器使用 smb 协议)

   2023-02-10 学习力0
核心提示:Fedora 28 本身是没有打印服务的。我们需要安装下列软件:System-Config-PrinterCommon Unix Printing System - CUPShplip.x86_64 : HP Linux Imaging and Printing Projecthplip-3.18.6-plugin.run  (其他版本, 安装的plugin 版本要和hplip 对应)samba 

Fedora 28 本身是没有打印服务的。我们需要安装下列软件:

安装好后,启动cups 系统、samba 系统、配置好防火墙,然后打开 system-config-printer 软件就能进行添加打印机了。

安装:

安装系统配置GUI :

~ sudo yum install system-config-printer.x86_64
~ sudo yum install cups (本身 fedora 已经安装了 cups 打印系统)

安装 hplip 相关:

~ sudo yum install hplip hplip-gui

之后使用 hp-plugin 命令使用绝对路径安装: hplip-3.18.6-plugin.run (注意:不安装插件会导致插件安装失败, 此插件如果在线下载不成功)

也可以下载 hplip-xx.run , hplip-xx-plugin.run 来进行安装, 推荐使用 curl -O 命令下载,并 使用 chmod +x 添加执行权限。 

chmod +x ./hplip-3.16.11.run
sudo ./hplip-3.16.11.run

安装samba:

~ sudo yum install samba

并进行修改配置如下(例子,可以单独修改):

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run \'testparm\' to verify the config is correct after
# you modified it.

[global]
        workgroup = WORKGROUP  # 重点,windows 打印服务器一般默认用户组是 workgroup
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

添加防火墙规则:

sudo firewall-cmd --add-service samba
sudo firewall-cmd --permanent --add-service samba
~ sudo firewall-cmd --reload

启动 :

重新启动 samba 服务:

~ sudo systemctl enable {s,n}mb.service
~ sudo systemctl start {s,n}mb

重新启动 cups 服务:

~ sudo systemctl start cups

可以使用 systemctl status  cups 命令来进行查看服务状态。

man cups :

NAME
       cups - a standards-based, open source printing system

DESCRIPTION
       CUPS  is  the  software  you use to print from applications like word processors, email readers, photo
       editors, and web browsers. It converts the page descriptions produced by your application (put a para\u2010
       graph here, draw a line there, and so forth) into something your printer can understand and then sends
       the information to the printer for printing.

       Now, since every printer manufacturer does things differently, printing can be very complicated.  CUPS
       does  its  best to hide this from you and your application so that you can concentrate on printing and
       less on how to print. Generally, the only time you need to know anything about your  printer  is  when
       you use it for the first time, and even then CUPS can often figure things out on its own.
View Code

添加打印机:

安装 cups 后,可以使用 cups web 服务( http://localhost:631/jobs/ )来添加 打印机。但是我们已经安装了 system-config-printer 我们可以使用此gui 界面来添加打印机。因为我们使用打印的服务器是windows

打印服务器,所以我们需要使用 smb 协议来进行访问网络打印机,输入凭据,选择驱动。具体的配置截图可以参照如下博客。最后添加打印机成功后,可以打印测试页来进行验证。如果没有成功,请参照系统报错,进行修改配置。最后祝你使用打印服务愉快!

 

保持更新,转载请注明出处。如果本文对你有所帮助,请点击右下角推荐给予支持。

参考链接:

 https://blog.csdn.net/allan_bst/article/details/72026980 

 https://blog.csdn.net/gaoprincess/article/details/79591632

 https://www.cnblogs.com/sztsian/p/3462170.html

 http://www.mintos.org/hardware/hplip-skill.html

 http://www.mintos.org/hardware/hplip-cupsext.html

Setting the printer: 2019.8.1

 

 

 
反对 0举报 0 评论 0
 

免责声明:本文仅代表作者个人观点,与乐学笔记(本网)无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
    本网站有部分内容均转载自其它媒体,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责,若因作品内容、知识产权、版权和其他问题,请及时提供相关证明等材料并与我们留言联系,本网站将在规定时间内给予删除等相关处理.

  • [转]Fedora 15 安装与配置一览
    Fedora 15 将于2011.5.24日发布,今日离正式版发布还有4天。笨兔兔这里提前给大家支招用好Fedora 15。下面是笨兔兔在安装、配置Fedora 15 过程中的小结,希望给大家配置自己的Fedora 15 带来方便。仅供参考,如有错误,敬请指出。『一』安装介绍Fedora 15 Bet
    03-08
  • 新换的 Fedora Core Linux 桌面,来秀一秀(多
    1、桌面、终端、文件浏览器,已经设置好字体、自动挂载硬盘,不是很麻烦2、即时通讯:QQ,Skype3、firefox4、D4X、BT、电驴5、开发工具:eclipse netbeans6、openoffice 大开 word 公式文档,输出 PDF7、小企鹅输入法,支持微软双拼8、星际译王,linux 下免费
    02-10
  • Fedora 14添加RPM Fusion源
    RPM Fusion 是 Fedora 和 Red Hat 企业版的软件仓库,是由Dribble, Freshrpms 和 RPM Fusion 合并而来的。各种各样的应用程序包含在这个软件仓库中,比如MP3、未加密的DVD 、Mplayer, VLX, Xine 等多媒体应用程序使用的解码库,以及闭源的 Nvidia 和 ATI 显卡
    02-10
  • Fedora中安装VMtools步骤 vmware虚拟机安装fedo
      第一次玩Fedora的系统,通过VMware工具安装的一个虚拟机,由于公司要求尽可能的留有足够空间,所以安装的时候就没选开发环境选项。安装成功后,又要准备安装VMware--tools工具,在此记录安装的过程,以及安装过程中遇到的一些问题。一、准备工作  确保
    02-10
  • Fedora 23 配置
    刻到u盘上下好iso后准备刻录到u盘...可是查了一下只能在用一个叫dd的东西刻= =于是学了下...然而就是一句话:dd if=/path/xxx.iso of=/dev/sdx其中前面是文件,后面是盘,注意是整个盘sdx而不是什么sdx1啥的,注意这样做会格式化整个盘...请不要乱实验...。(
    02-10
  • Fedora 9安装说明 Fedor
     Fedora 9 安装手册◆准备工作硬件       硬盘空间:5G以上;       内存容量:384 M以上(256M也可以,但在分区后会提示您启用swap分区);       光盘介质:Fedora 9 安装光盘(1张DVD);设置BIOS为从光盘引导;启动计算机,将安装盘的
    02-10
  • fedora linux源代码下载
    fedora linux源代码下载
    yumdownloader --source kernel如果是下载insight就是 yumdownloader --source insight下载到的是当前目录.然后在用rpm2cpio 生成 压缩文件rpm2cpio insight-7.4.50-8.20120403cvs.fc17.src.rpm|cpio -idrpm2cpio 的使用 在 http://www.rpm.org/max-rpm/s1-rp
    02-10
  • Fedora 7系统安装配置心得(转)(有图哦)
    Fedora 7系统安装配置心得(转)(有图哦)
    计算机基本配置如下: CPU:Intel Core 2 Duo E4300 显卡:NVidia GeForce 7600GS 主板:ABit IB9(P965+ICH8) 内存2G/硬盘160G 安装时选择用户定制,加上开发环境,以防止编译时找不到相关的模块. 系统内核为默认的2.6.21-1.3194.fc7. 以下配置基于Gnome环境. 来
    02-10
  • fedora27安装DB2 Express-C 11
    首先在官网下载对应的安装包和语言包两个文件。然后通过tar -zxvf命令将下载的两个文件解压。其中一个文件解压后是名为expc的文件,进入这个文件。里面有一个名为db2setup的文件。在命令行下首先通过命令su切换到超级用户,然后通过./db2setup进入图形化界面
    02-10
  • Red Hat Linux、rhel 和 Fedora Core 以及 Cent
    Red Hat Linux、rhel 和 Fedora Core 以及 Centos 区别与联系1. Red Hat LinuxLinux是GNU/Linux的缩写,通常指各种Linux发行版的通称,Red Hat Linux是redhat最早发行的个人版本的linux, 其1。0版本于1994年11月3日发行。虽然其历史不及其它linux发行
    02-10
点击排行