16.3. Print Settings
Important
cupsd.conf man page documents configuration of a CUPS server. It includes directives for enabling SSL support. However, CUPS does not allow control of the protocol versions used. Due to the vulnerability described in Resolution for POODLE SSLv3.0 vulnerability (CVE-2014-3566) for components that do not allow SSLv3 to be disabled via configuration settings, Red Hat recommends that you do not rely on this for security. It is recommend that you use stunnel to provide a secure tunnel and disable SSLv3. For more information on using stunnel, see the Red Hat Enterprise Linux 7 Security Guide.
SSH as described in Section 12.4.1, “X11 Forwarding”.
Note
16.3.1. Starting the Print Settings Configuration Tool
system-config-printer at a shell prompt. The Print Settings tool appears. Alternatively, if using the GNOME desktop, press the Super key to enter the Activities Overview, type Print Settings and then press Enter. The Print Settings tool appears. The Super key appears in a variety of guises, depending on the keyboard and other hardware, but often as either the Windows or Command key, and typically to the left of the Spacebar.

Figure 16.1. Print Settings window
16.3.2. Starting Printer Setup
root user password. Local printers connected with other port types and network printers need to be set up manually.
- Start the Print Settings tool (refer to Section 16.3.1, “Starting the Print Settings Configuration Tool”).
- Go to → → .
- In the Authenticate dialog box, enter an administrator or
rootuser password. If this is the first time you have configured a remote printer you will be prompted to authorize an adjustment to the firewall. - Select the printer connection type and provide its details in the area on the right.
16.3.3. Adding a Local Printer
- Open the Add printer dialog (refer to Section 16.3.2, “Starting Printer Setup”).
- If the device does not appear automatically, select the port to which the printer is connected in the list on the left (such as Serial Port #1 or LPT #1).
- On the right, enter the connection properties:
- for Other
- URI (for example file:/dev/lp0)
- for Serial Port
- Baud RateParityData BitsFlow Control

Figure 16.2. Adding a local printer
- Click .
- Select the printer model. See Section 16.3.8, “Selecting the Printer Model and Finishing” for details.
16.3.4. Adding an AppSocket/HP JetDirect printer
- Open the
New Printerdialog (refer to Section 16.3.1, “Starting the Print Settings Configuration Tool”). - In the list on the left, select → .
- On the right, enter the connection settings:
- Hostname
- Printer host name or
IPaddress. - Port Number
- Printer port listening for print jobs (
9100by default).

Figure 16.3. Adding a JetDirect printer
- Click .
- Select the printer model. See Section 16.3.8, “Selecting the Printer Model and Finishing” for details.
16.3.5. Adding an IPP Printer
IPP printer is a printer attached to a different system on the same TCP/IP network. The system this printer is attached to may either be running CUPS or simply configured to use IPP.
TCP connections on port 631. Note that the CUPS browsing protocol allows client machines to discover shared CUPS queues automatically. To enable this, the firewall on the client machine must be configured to allow incoming UDP packets on port 631.
IPP printer:
- Open the
New Printerdialog (refer to Section 16.3.2, “Starting Printer Setup”). - In the list of devices on the left, select and or .
- On the right, enter the connection settings:
- Host
- The host name of the
IPPprinter. - Queue
- The queue name to be given to the new queue (if the box is left empty, a name based on the device node will be used).

Figure 16.4. Adding an IPP printer
- Click to continue.
- Select the printer model. See Section 16.3.8, “Selecting the Printer Model and Finishing” for details.
16.3.6. Adding an LPD/LPR Host or Printer
- Open the
New Printerdialog (refer to Section 16.3.2, “Starting Printer Setup”). - In the list of devices on the left, select → .
- On the right, enter the connection settings:
- Host
- The host name of the LPD/LPR printer or host.Optionally, click to find queues on the LPD host.
- Queue
- The queue name to be given to the new queue (if the box is left empty, a name based on the device node will be used).

Figure 16.5. Adding an LPD/LPR printer
- Click to continue.
- Select the printer model. See Section 16.3.8, “Selecting the Printer Model and Finishing” for details.
16.3.7. Adding a Samba (SMB) printer
Note
root:
yum install samba-client- Open the
New Printerdialog (refer to Section 16.3.2, “Starting Printer Setup”). - In the list on the left, select → .
- Enter the SMB address in the smb:// field. Use the format computer name/printer share. In Figure 16.6, “Adding a SMB printer”, the computer name is
dellboxand the printer share isr2.
Figure 16.6. Adding a SMB printer
- Click to see the available workgroups/domains. To display only queues of a particular host, type in the host name (NetBios name) and click .
- Select either of the options:
- Prompt user if authentication is required: user name and password are collected from the user when printing a document.
- Set authentication details now: provide authentication information now so it is not required later. In the Username field, enter the user name to access the printer. This user must exist on the SMB system, and the user must have permission to access the printer. The default user name is typically
guestfor Windows servers, ornobodyfor Samba servers.
- Enter the Password (if required) for the user specified in the Username field.
Warning
Samba printer user names and passwords are stored in the printer server as unencrypted files readable byrootand the Linux Printing Daemon,lpd. Thus, other users that haverootaccess to the printer server can view the user name and password you use to access the Samba printer.Therefore, when you choose a user name and password to access a Samba printer, it is advisable that you choose a password that is different from what you use to access your local Red Hat Enterprise Linux system.If there are files shared on the Samba print server, it is recommended that they also use a password different from what is used by the print queue. - Click to test the connection. Upon successful verification, a dialog box appears confirming printer share accessibility.
- Click .
- Select the printer model. See Section 16.3.8, “Selecting the Printer Model and Finishing” for details.
16.3.8. Selecting the Printer Model and Finishing
- In the window displayed after the automatic driver detection has failed, select one of the following options:
- Select a Printer from database — the system chooses a driver based on the selected make of your printer from the list of Makes. If your printer model is not listed, choose Generic.
- Provide PPD file — the system uses the provided PostScript Printer Description (PPD) file for installation. A PPD file may also be delivered with your printer as being normally provided by the manufacturer. If the PPD file is available, you can choose this option and use the browser bar below the option description to select the PPD file.
- Search for a printer driver to download — enter the make and model of your printer into the Make and model field to search on OpenPrinting.org for the appropriate packages.

Figure 16.7. Selecting a printer brand
- Depending on your previous choice provide details in the area displayed below:
- Printer brand for the Select printer from database option.
- PPD file location for the Provide PPD file option.
- Printer make and model for the Search for a printer driver to download option.
- Click to continue.
- If applicable for your option, window shown in Figure 16.8, “Selecting a printer model” appears. Choose the corresponding model in the Models column on the left.
Note
On the right, the recommended printer driver is automatically selected; however, you can select another available driver. The print driver processes the data that you want to print into a format the printer can understand. Since a local printer is attached directly to your computer, you need a printer driver to process the data that is sent to the printer.
Figure 16.8. Selecting a printer model
- Click .
- Under the
Describe Printerenter a unique name for the printer in the Printer Name field. The printer name can contain letters, numbers, dashes (-), and underscores (_); it must not contain any spaces. You can also use the Description and Location fields to add further printer information. Both fields are optional, and may contain spaces.
Figure 16.9. Printer setup
- Click to confirm your printer configuration and add the print queue if the settings are correct. Click to modify the printer configuration.
- After the changes are applied, a dialog box appears allowing you to print a test page. Click to print a test page now. Alternatively, you can print a test page later as described in Section 16.3.9, “Printing a Test Page”.
16.3.9. Printing a Test Page
- Right-click the printer in the Printing window and click .
- In the Properties window, click Settings on the left.
- On the displayed Settings tab, click the button.
16.3.10. Modifying Existing Printers
16.3.10.1. The Settings Page

Figure 16.10. Settings page
16.3.10.2. The Policies Page
16.3.10.2.1. Sharing Printers

Figure 16.11. Policies page
TCP connections to port 631, the port for the Network Printing Server (IPP) protocol. To allow IPP traffic through the firewall on Red Hat Enterprise Linux 7, make use of firewalld's IPP service. To do so, proceed as follows:
Procedure 16.24. Enabling IPP Service in firewalld
- To start the graphical firewall-config tool, press the Super key to enter the Activities Overview, type
firewalland then press Enter. The Firewall Configuration window opens. You will be prompted for an administrator orrootpassword.Alternatively, to start the graphical firewall configuration tool using the command line, enter the following command asrootuser:~]#
The Firewall Configuration window opens.firewall-configLook for the word “Connected” in the lower left corner. This indicates that the firewall-config tool is connected to the user space daemon,firewalld.To immediately change the current firewall settings, ensure the drop-down selection menu labeled Configuration is set to . Alternatively, to edit the settings to be applied at the next system start, or firewall reload, select from the drop-down list. - Select the Zones tab and then select the firewall zone to correspond with the network interface to be used. The default is the zone. The tab shows what interfaces have been assigned to a zone.
- Select the Services tab and then select the service to enable sharing. The service is required for accessing network printers.
- Close the firewall-config tool.
firewalld, see the Red Hat Enterprise Linux 7 Security Guide.
16.3.10.2.2. The Access Control Page

Figure 16.12. Access Control page
16.3.10.2.3. The Printer Options Page

Figure 16.13. Printer Options page
16.3.10.2.4. Job Options Page

Figure 16.14. Job Options page
16.3.10.2.5. Ink/Toner Levels Page

Figure 16.15. Ink/Toner Levels page
16.3.10.3. Managing Print Jobs

Figure 16.16. GNOME Print Status
lpstat -o. The last few lines look similar to the following:
Example 16.15. Example of lpstat -o output
$ lpstat -o
Charlie-60 twaugh 1024 Tue 08 Feb 2011 16:42:11 GMT
Aaron-61 twaugh 1024 Tue 08 Feb 2011 16:42:44 GMT
Ben-62 root 1024 Tue 08 Feb 2011 16:45:42 GMTlpstat -o and then use the command cancel job number. For example, cancel 60 would cancel the print job in Example 16.15, “Example of lpstat -o output”. You cannot cancel print jobs that were started by other users with the cancel command. However, you can enforce deletion of such job by issuing the cancel -U root job_number command. To prevent such canceling, change the printer operation policy to Authenticated to force root authentication.
lp sample.txt prints the text file sample.txt. The print filter determines what type of file it is and converts it into a format the printer can understand.
16.3.11. Additional Resources
Installed Documentation
lp(1)— The manual page for thelpcommand that allows you to print files from the command line.lpr(1)— The manual page for thelprcommand that allows you to print files from the command line.cancel(1)— The manual page for the command-line utility to remove print jobs from the print queue.mpage(1)— The manual page for the command-line utility to print multiple pages on one sheet of paper.cupsd(8)— The manual page for the CUPS printer daemon.cupsd.conf(5)— The manual page for the CUPS printer daemon configuration file.classes.conf(5)— The manual page for the class configuration file for CUPS.lpstat(1)— The manual page for thelpstatcommand, which displays status information about classes, jobs, and printers.
Online Documentation
- http://www.linuxprinting.org/ — The OpenPrinting group on the Linux Foundation website contains a large amount of information about printing in Linux.
- http://www.cups.org/ — The CUPS website provides documentation, FAQs, and newsgroups about CUPS.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.