Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Introduction to Linux UNIX DCOM 224 Final Project Overview: This final is a practical based activity covering several areas of Linux management we discussed throughout the semester

Introduction to Linux UNIX DCOM 224 Final Project Overview: This final is a practical based activity covering several areas of Linux management we discussed throughout the semester

Computer Science

Introduction to Linux UNIX

DCOM 224 Final Project

Overview: This final is a practical based activity covering several areas of Linux management we discussed throughout the semester. Read each section carefully and thoroughly before executing the tasks within the section. Remember, you have access to the any book(s), self-prepared notes, labs the internet, and the system's help, man, and info pages. You should not ask any other students for assistance!

 

A couple of suggestions and things to note:

 

  • Each section should be completed in order, as later sections may rely on earlier sections.
  • Some tasks will require root access using the sudo command.
  • This Final will assume that you are logged in as the student user.
  • When completed properly, you should not see any error messages from the commands run. If you are seeing errors, check to make sure you are performing the task correctly.
  • Remember that Linux commands and file/directory names are case sensitive. Full credit will not be awarded if files or directories are spelled incorrectly.

 

Be certain you are working in your own Virtual Machine as the student user!

 

Section 0: Initial Preparation

 

  1. Log into your VM as student.
  2. Create a snapshot and label it as “Final”

3. Change the hostname of your CentOS Linux to your last name by typing this command

sudo hostnamectl set-hostname <your lastname>

sudo systemctl restart system-hostnamed

reboot or restart your CentOS and verify the host name is changed when you open the terminal

 

Section 1: Storage Management

You added 5GB drive and partitioned 4GB and 1GB space is available in Lab 2 and Lab 3. Using the free space you created in lab 2 and Lab 3, partition the free space using the specification provided.

 

Step 0

Before you proceed, enter the following command:

sudo pvs

 

Make sure you get the following result

 

Enter

sudo parted /dev/sdb

 

 

If your console (terminal) does not provide the result, you may have to go back and complete lab 2 and lab 3.

 

This picture shows that you will be partitioning unallocated space to do partition, create physical volume, volume group and logical volume and mount to /hrdata folder.

Sdb1 and sdb2 have been partitioned, added to the volume group, backup and created three logical volumes, sysbk, databk and logbk.

 

This final lab, you will be partitioning sdb3, create physical volume, volume group and logical volume to the given criteria.

 

 

 

Step1:  

This step criteria is

Partition Type: primary

File system type: ext4

Size: 50MB

 

Use “parted” command to create third partition in unallocated space of 5GB disk size you added in lab 2

 

Create a new logical partition, physical volume, and volume group to store the HR data. 

Partition characteristics: Recommended to use “parted” command.

After creating primary partition of 50MB size in sdb3

 

Step 2:

Enter “sudo partprobe” command to write the new partition in kernel

 

Enter sudo parted /dev/sdb and enter “p” to view the newly created partition

 

[Paste Screen Shot]

 

 

Step 3: After allocating the third partition, create physical volum.

 Create a physical volume /dev/sdb3 using pvcreate command

 

Step 3: Verify physical volume, sdb3 is created by sudo pvdisplay

 

[Paste Screenshot]

 

Step 4: Create a volume group and label as “hvrg”

 

Criteria:

Volume group characteristics:

Name: hrvg

 

Step 5: Verify volume group, hrvg is created .

 

Enter  sudo vgdisplay  hrvg

 

[Paste Screen Shot]

 

Step 6: Create Logical Volume for the given criteria:

 

LV name: hrdatalv

LV Size: 40 MB

Type: ext4

Disk: sdb

Label: HRdata

Directory to mount on: /hrdata

 

  1. Create logical volume using lvcreate and name “hrdatalv and allocated 40MB of the volume group hrvg
  2. Add Filesystem “ext4” for the logical volume using mkfs command

 

 

Step 7: Verify logical Volume is created

 

Enter sudo  lsblk –f /dev/hrvg/hrdatalv

 

[Paste Screen Shot]

 

Step 8: Mount the logical volume to a directory

 

  1. Create a directory in root, hrdata (/hrdata)
  2. Mount the logical volume to /hrdata using mount command

 

Step 9: Verify the logical volume is mounted

 

Enter sudo  lsblk –f /dev/hrvg/hrdatalv

 

[Paste Screen Shot]

 

 Section 2: Package management

 

References:

https://www.cyberciti.biz/howto/question/linux/linux-rpm-cheat-sheet.php

https://access.redhat.com/articles/yum-cheat-sheet

 

 

  1. Create a directory called “final” in your home directory and change to “final” directory.

 

  1. Download the package for John the Ripper into /home/student/FINAL

 

  1. https://packages.endpoint.com/rhel/7/os/x86_64/john-1.8.0-6.ep7.x86_64.rpm

 

Enter the following command in terminal

wget https://packages.endpoint.com/rhel/7/os/x86_64/john-1.8.0-6.ep7.x86_64.rpm

 

Verify you download the file in final directory

 

[Paste Screen shot]

 

 

  1. Install John the Ripper package, by using “rpm” command.

 

  1. Validate you installed in correctly

 

Command:

 

[Paste Screen Shot]

 

             

  1. List installed package, john information along with package version and short description.

All the files that were installed with the john package.   Use “rpm” command

             

              Command:

              [Paste Screen shot]

 

  1. Use the yum command to show info on John

 

Command:

[Paste Screen Shot]

             

Section 3: Automation – Extra Credit

 

1.  Create a crontab entry for student to run /bin/echo "1st day of the month!" at 1:10 PM on the first day of the month

             

2.  Create a crontab entry for student to run /bin/echo "doing weekday backups" at 10:30 PM Monday through Friday

 

3.  Verify you entered last two requirements by viewing the content of  /var/spool/cron/student

 

[Paste Screen Shot]

 

Grading Rubrics:

 

  1. Section 1:                                                                                                              60 pts
  2. Section 2: Package Management                                                                 40 pts
  3. Extra Credit: Automation                                                                               10 pts

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE