Summer 2020
Assignment 3 ( 10 points )
Due Date : June 12, 2020 11:59 PM
Lectures:
June 2, 2020 https://youtu.be/UPlB6FkZDLU // CentOS
June 3, 2020 https://youtu.be/mLTV6kgaztg // Scripting
June 7, 2020 https://youtu.be/HJHj9luCsq0 // Ubuntu / Firewalls
June 8, 2020 https://youtu.be/nMxyCT7rwH4 // Q&A
| prerequisites
- Restore the VM to a vanillastate.
That is restore all VMs and do not select any additional packages or add-ons during the main installation screen. In Ubuntu please remember to add SSH so that you and I can connect to the server.
__________________________________________________________________________
| csv
To retrieve your CSV please download it from the URL below. Make sure to replace USERNAME with the first part of your 001@fiu.edu email.
i.e http://users.cis.fiu.edu/~ggome002/files/ttrex001.csv
// csv headers username,first,last,gender,dob,country,event,sport,medal,shell,permission |
CentOS // 4pts
| Firewall // 1pt
Open the following ports and services: https, 53, dhcp, 80, mysql
| Account Management // 3 pts
From the csv, use the event as the filter to complete the following tasks. Additionally the values of country, sport, medal and shell as content for the files shown below
Replace both SPORT and COUNTRY with all the values from your CSV.
| Olympic
– Base directory
/home/olympic/SPORT/
– Files
$ ls /home/olympic/SPORT/roary001
country
event
medal
– Content
$ cat /home/olympic/SPORT/roary001/country
united_states
$ cat /home/olympic/SPORT/roary001/event
olympic
$ cat /home/olympic/SPORT/roary001/medal
gold
| Paralympic
– Base directory –
/home/paralympic/COUNTRY/
– Files
$ ls /home/paralympic/COUNTRY/roary001
sport
event
shell
– Content
$ cat /home/paralympic/COUNTRY/roary001/sport
archery
$ cat /home/paralympic/COUNTRY/roary001/event
paralympic
$ cat /home/paralympic/COUNTRY/roary001/shell
/bin/bash
Ubuntu // 4pts
| Firewall // 1pt
Open the following ports and services: 22, 25, 53, 80, 443
| Apache2 // 3pt
Install Apache on the server
$ apt-get install apache2
From the csv, use the gender as the filter to complete the following tasks.
| Male
Base directory
/var/www/html/MALE/
Folders
$ ls /var/www/html/MALE/
aquatics
archery
athletics
…
Content
Organize the content of the file using the following header order.
$ cat /var/www/html/MALE/AQUATICS/index.html
first,country,event,medal,shell,dob,sport,gender,permission,username,last
| Female
Base directory
/var/www/html/FEMALE/
Folders
$ ls /var/www/html/FEMALE/
albania
algeria
andorra
…
Content
Organize the content of the file using the following header order.
$ cat /var/www/html/FEMALE/ALBANIA/index.html
permission,username,country,first,sport,gender,last,medal,shell,event,dob
Fedora // 2pts
// scripts All scripts must be placed on the /root folder. Scripts can not be executed prior to submission. This will cause issues. Make sure to test your scripts before turning in the assignment. * Ensure that all file references in your scripts are absolute paths. |
| useradd
Create a script named useradd.sh. This script will complete the same steps outlined on CentOS, but will run them on demand.
| httpd
Create a script named httpd.sh. This script will complete the same steps outlined on Ubuntu, but will run them on demand.
* Keep in mind that to install apache2 on Fedora you need to use the command below. The folder structure for the web server is the same.
$ dnf install httpd.
The post VMs and do not select any additional packages appeared first on My Assignment Online.