• CentOS 下配置CUPS


    一、共享打印机的设置

    1.在http://www.openprinting.org/printer/HP/HP-LaserJet_1010检查打印机的支持情况,两个企鹅以上表示Mostly,支持大部分功能

    2.根据其提供的链接安装打印机驱动

    3.开始配置CUPS->Common Unix Printing System

    yum install cups cups-libs
    vim /etc/cups/cupsd.conf

    默认这个web配置只对localhost开放,需要编辑配置文件来打开

    #Only listen for connections from the local machine.
    Listen localhost:631
    Listen IP:631
    Listen /var/run/cups/cups.sock
    #也可以直接改为Port 631监听所有端口
    # Show shared printers on the local network.
    Browsing On
    BrowseOrder deny,allow
    ............
    BrowseAllow @LOCAL
    #Show printers shared by other systems
    BrowseAddress @LOCAL
    #Share printers connected to this system
    #Allow @LOCAL表示允许本地子网
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    DefaultEncryption IfRequested
    #上面加密还可以改成Never.因为不知道什么原因使用https://ip:631总是打不开
    # Restrict access to the server...
    <Location />
      Order deny,allow
      Deny From All
      Allow From 127.0.0.1
      Allow From 192.168.1.*
      Allow @LOCAL
    ..........
    </Location>
    # Restrict access to the admin pages...
    <Location /admin>
      #Encryption Required
     Encryption Never
     Order deny,allow
      Deny From All
      Allow From 127.0.0.1
      Allow From 192.168.1
      Allow @LOCAL
    </Location>
    # Restrict access to configuration files...
    <Location /admin/conf>
      Encryption Never
      AuthType Default
      Require user @SYSTEM
      #Order allow,deny
      Order deny,allow
      Deny From All
      Allow From 127.0.0.1
      Allow From 192.168.1
      Allow @LOCAL
    </Location>
    # Set the default printer/job policies...
    .......................

    重启服务

    service cups restart
  • 相关阅读:
    PHP 基础复习 2018-06-21
    PHP 基础复习 2018-06-17
    php 基础复习 2018-06-20
    [Android] ImageView.ScaleType设置图解
    Android中滑屏实现----触摸滑屏以及Scroller类详解 .
    Android Scroller简单用法 --View滚动
    Android下如何理解onMeasure,onLayout的过程
    ( 转)从四分钟到两秒——谈谈客户端性能优化的一些最佳实践
    8种形式的Android Dialog使用举例
    Android加载图片导致内存溢出(Out of Memory异常)
  • 原文地址:https://www.cnblogs.com/tswcypy/p/4152468.html
Copyright © 2020-2023  润新知