Question: Project 10-2 In this hands-on project, you submit a print job from a graphical program as well as explore the Printers tool and the CUPS
Project 10-2
In this hands-on project, you submit a print job from a graphical program as well as explore
the Printers tool and the CUPS Web administration tool.
1. On your Fedora Linux virtual machine, switch to a graphical terminal (tty1) by pressing
Ctrl+Alt+F1 and log in to the GNOME desktop using the user name of user1 and the
password of LNXrocks!.
2. In the GNOME desktop, click the Activities menu and select the LibreOffice Writer
icon. Type a line of your choice within the document, select the File menu, and choose
Print. Is printer1 listed as the default printer? Click OK to print one copy of your document.
Close the LibreOffice Writer window and click Close without saving when
prompted.
3. In the GNOME desktop, click the Activities menu, select the Show Applications icon,
and click Settings to open the Settings window. Next, click Printers to open the graphical
Printers tool and note that printer1 is displayed.
4. In the Printers tool, click Show Jobs and note that your recently submitted print job is
shown. Why arent the two other print jobs in the printer1 queue shown? Click Close
when finished.
5. In the Printers tool, click Print Test Page to submit a test page print job. Next, click
Show Jobs and note that two jobs are now displayed. Highlight your Test page job,
click the Stop icon to remove the job from the queue and click Close when finished.
Close the Printers tool when finished.
6. In the GNOME desktop, click the Activities menu and select the Firefox icon. Enter
the address localhost:631 in the address bar and press Enter to access the CUPS Web
administration tool.
7. In the CUPS Web administration tool, select the Administration tab and select the Allow
remote administration, Share printers connected to this system, and Allow printing from
the Internet options. Click the Change Settings button to activate your changes. Supply
the user name root and password LNXrocks! when prompted and click OK.
8. On the Administration tab of the CUPS Web administration tool, click Add Class, supply
a name of SampleClass, select printer1, and click Add Class.
9. Select the Printers tab of the CUPS Web administration tool and click printer1. Select
the Maintenance drop-down menu and note the maintenance tasks that you perform
for printer1. Next, select the Administration drop-down menu and note the administrative
tasks that you can perform for printer1. View the print jobs at the bottom of the
page and note the management functions that you can perform for each one.
10. Highlight the Jobs tab of the CUPS Web administration tool. Are the jobs shown the
same as those shown on the Printers tab for printer1? Can you perform the same management
functions for each job?
11. Highlight the Classes tab of the CUPS Web administration tool and click SampleClass.
Select the Maintenance drop-down menu and note the maintenance tasks that you perform
for printer1. Next, select the Administration drop-down menu and note the
administrative tasks that you can perform for printer1. Do these options match those
shown in on the Printers tab for printer1?
12. Close the Firefox Web browser window and switch to a command-line terminal (tty2)
by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the
password of LNXrocks!.
13. At the command prompt, type lpstat -t and press Enter. Is your SampleClass shown
in the output? Why is user1 listed as the user for the most recent print job?
14. At the command prompt, type lp d SampleClass /etc/hosts and press Enter to
print a copy of /etc/hosts to the SampleClass printer class. Why does the print job ID
reflect the printer class name and not printer1?
15. At the command prompt, type lpstat -t and press Enter. Is the print job submitted to
your printer class shown?
16. At the command prompt, type cancel a printer1 SampleClass and press Enter
to remove all print jobs in the queue for printer1 and SampleClass. Next, type lpstat
-t and press Enter to verify that no print jobs exist within the print queue.
17. Type exit and press Enter to log out of your shell.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
