redhat-printer confiure

# install 10relate rpm packges
yum groupinstall printing
 
# chkconfig cups on
 
# CUPS Configuration Files
/etc/printcap
 Adds a list of printers for sharing; used by Samba
 
/etc/cups/classes.conf
 Configures groups of printers in a class
 
/etc/cups/client.conf
 Sets the default CUPS server for this computer; it can be local or another
remote print server
 
/etc/cups/cupsd.conf
 The main CUPS configuration file
 
/etc/cups/printers.conf
 Documents printers configured by the CUPS Web-based tool
 
# Printer Configuration Tool
system-config-printer
 
lpr, lpq, and lprm. They are used to add print requests, list queued print requests, and remove print requests
 
#print /root
 
ls /root | lpr -P pritnername
lpq -a
lprm *
ls /var/spool/cups
 
#set up host-based security has to modify directly from /etc/cups/cupsd.conf
#access to a CUPS printer is limited to the local computer  by default
Browsing Off
 
#configure a CUPS printer to be shared with the local network,
BrowseAddress @LOCAL
#support access from all connected networks
BrowseAddress @ALL
 
# The DefaultAuthType Basic directive uses the /etc/passwd configuration file to search for allowed users.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
DefaultAuthType Basic
 
For example, printer administrators are as specified in the following cupsd.conf container, which supports basic authentication using /etc/passwd based on users in the @SYSTEM group, also known as sys in /etc/group. Remote access to the Web-based tool is supported on the @LOCAL network.
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
 
#limit access to specific IP address networks or domain names.
Allow From 192.168.30.0/255.255.255.0
Allow From *.example.com 
#setup  user-based security can be modified by access tab on system-config-printer tool
 

你可能感兴趣的:(redhat,职场,休闲)