Problem

In this hands-on project, you view your printer configuration, control the print process...

In this hands-on project, you view your printer configuration, control the print process, create print jobs, and manage jobs in the print queue.

1. 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 secret.

2. At the terminal screen prompt, type cat /etc/cups/printers.conf and press Enter. Compare the entries in this file for your printer with the settings you specified in Project 10-1.

3. At the command prompt, type lpstat -t and press Enter. Is the cups daemon running? Is spooling and printing enabled for p1?

4. At the command prompt, type cupsdisable –r “To pause print jobs in the print queue” p1 and press Enter to prevent printing for the p1 printer.

5. At the command prompt, type lpstat -t and press Enter. Verify that spooling is enabled but printing is disabled for p1.

6. Next, type lp –n 2 –d p1 /etc/hosts at the command prompt and press Enter to print two copies of /etc/hosts to p1. What print job ID do you receive?

7. At the command prompt, type lpstat and press Enter. Is your print job in the queue?

8. At the command prompt, type sort /etc/hosts | lp and press Enter to sort the file /etc/hosts and send the output to p1. Note that you did not need the –d option to the lp command because it was the default printer. What print job ID did you receive?

9. At the command prompt, type lpstat and press Enter. Verify that both print jobs are in the print queue.

10. At the command prompt, type cancel p1-1 p1-2 (or the numbers of the print jobs on your screen if they are different) to remove both print jobs from the queue. Type lpstat and press Enter to verify that they were removed.

11. At the command prompt, type lpadmin –u allow:all –u deny:user1 –d p1 and press Enter to allow all users to print to p1 except user1.

12. Press Ctrl+Alt+F3 to switch to tty3 and log in as user1 using the password secret. Type lp –d p1 /etc/hosts. Was user1 allowed to print to p1? Type exit to log out of the tty3 terminal.

13. Press Ctrl+Alt+F2 to switch back to tty2, type cancel -a and press Enter to remove any print jobs from the queue.

14. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 10