Question: Project 10-1. Boot your Fedora Linux virtual machine. After your Linux system has been loaded, switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and

Project 10-1.

Boot your Fedora Linux virtual machine. After your Linux system has been loaded, switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.

2.

At the command prompt, type lpadmin -p printer1 -E -v /dev/null -m raw and press Enter to create a sample printer called printer1 that prints to the /dev/null device using a raw print driver.

3.

At the command prompt, type lpoptions d printer1 and press Enter to ensure that printer1 is the default printer on the system.

4.

At the terminal screen prompt, type cat /etc/cups/printers.conf and press Enter. Do you see an entry for printer1 that prints to /dev/null?

5.

At the command prompt, type lpstat -t and press Enter. Is the CUPS daemon running? Is printer1 enabled and accepting requests? Is printer1 the default printer on the system?

6.

At the command prompt, type cupsdisable r To keep print jobs in the queue printer1 and press Enter to disable printer1 with an appropriate reason. Next, type lpstat -t at the command prompt and press Enter. Is printer1 disabled with a reason?

7.

At the command prompt, type lp n 2 /etc/inittab and press Enter to print two copies of /etc/inittab to printer1. What is the print job ID? Why did you not need to specify the printer name when running the lp command?

8.

At the command prompt, type lp /etc/hosts /etc/nsswitch.conf and press Enter to print the /etc/hosts and /etc/nsswitch.conf files. What is the print job ID?

9.

At the command prompt, type mount | lp and press Enter to print the output of the mount command to printer1. What is the print job ID?

10.

At the command prompt, type lpstat and press Enter. Are your print jobs shown in the queue? How long will they remain in the queue and why?

11.

At the command prompt, type ls /var/spool/cups and press Enter. You should notice contents within this directory for your three print jobs. The data for your print jobs should have file names that start with d, and the settings for your print jobs should have file names that start with c. Type cat /var/spool/cups/d00001-001 at the command prompt and press Enter to view the data for the first print job on the system. What is shown and why?

12.

At the command prompt, type cancel printer1-1 and press Enter to remove the first print job from the queue. Next, type lpstat printer1 at the command prompt and press Enter. Has the printer1-1 job been removed?

13.

At the command prompt, type lpc status and press Enter to view the status of CUPS using the traditional BSD lpc command. Is the CUPS daemon running? Is the status of printing and spooling correct? Next, type lpq at the command prompt and press Enter. Do you see the two remaining jobs in the print queue for printer1? Do the job numbers displayed correspond with the job numbers in the lpstat output from the previous step?

At the command prompt, type lpr -#2 /etc/inittab and press Enter to print two copies of /etc/inittab to the default printer using the traditional BSD lpr command. Next, type lpq at the command prompt and press Enter. Do you see an additional job in the print queue? What is the job ID?

In this hands-on project, you use commands to create and configure a printer as well as submit and manage print jobs.

At the command prompt, type lprm 4 and press Enter to remove the most recent print job that you submitted. Next, type lpq at the command prompt and press Enter. Was print job 4 removed successfully? Type exit and press Enter to log out of your shell.

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.

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.

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

Project 10-3. In this hands-on project, you view the configuration of the System Log Daemon and the logrotate utility on Ubuntu Server 14 Linux.

At the command prompt, type cat /etc/logrotate.d/cups-daemon and press Enter. How many copies of old log files are kept for the log files in the /var/log/cups directory? Will the log files be rotated if they contain no contents?

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

Project 10-4. In this hands-on project, you view the configuration and log entries created by the Systemd Journal Daemon as well as the configuration of the logrotate utility on Fedora Linux.

At the command prompt, type cat /etc/logrotate.d/cups and press Enter. How many copies of old log files are kept for the log files in the /var/log/cups directory? Will the log files be rotated if they contain no contents?

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

Project 10-5. In this hands-on project, you observe user account databases on Fedora Linux and create a user account using command-line utilities.

At the command prompt, type ls -a /home/bozo and press Enter. How many files are in this directory? Compare this list to the one obtained in Step 11. Is the inittab file present?

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

Project 10-6. In this hands-on project, you modify user accounts on Fedora Linux using command-line utilities.

At the command prompt, type chage W 5 bozo and press Enter to warn the user bozo five days before a password change is required. Next, type grep bozo /etc/shadow at the command prompt and press Enter. Which field was changed?

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

Project 10-7.

Switch to tty6 by pressing Ctrl+Alt+F6 and attempt to log in to the terminal using the user name of bozo and the password of LINUXrocks!. Were you successful?

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

Switch back to tty5 by pressing Ctrl+Alt+F5.

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

Project 10-8.

At the command prompt, type ls la /home/bozo and press Enter. Who owns most files in this directory? Why? Can bozoette manage these files?

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

Project 10-9.

At the command prompt, type groupdel groupies and press Enter to remove the group groupies from the system. Which file is edited by the groupdel command?

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!