Open main menu

CDOT Wiki β

Changes

OPS235 Lab 1 - CentOS7 - SSD

10 bytes removed, 17:56, 9 June 2016
no edit summary
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">su </span></code></b> Issue the '''pwd''' and '''whoami''' commands to confirm your directory pathname. When finished logout of this account.
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">su - </span></code></b> Issue the '''pwd''' and '''whoami''' commands to confirm your directory pathname. What do you notice are the main differences between using '''su''' versus using '''su -''' ?
# An installation log file called <b><code><span style="color:#3366CC;font-size:1.2em;">/var/log/anaconda/packaging.log</span></code></b> has been created to record the installation of your centos1 c7host machine. This file is an ASCII file which can be viewed with the <b><code><span style="color:#3366CC;font-size:1.2em;">more</span></code></b> command.
# You can make use of this file to determine how many packages have been installed: complete the following command to count the number of packages that are labelled "Installing" in the installation log file:
:: <b><code><span style="color:#3366CC;font-size:1.2em;">grep -i packaging /var/log/anaconda/packaging.log | wc -l'''</span></code></b>
'''Perform the Following Steps:'''
# Study the Linux commands and their purpose to note computer software information for your installed centos1 VMc7hostVM. You should take time to issue each of these commands to view the output, and record this chart in your lab1 logbook.<br><br># Login to your centos1 VMc7hostVM, open a Bash Shell terminal, and login as root by issuing the command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">su -</span></code></b><br><br>
# Make certain to record output from these commands (except for the '''ps -ef''' output) in your lab1 logbook.
Shell scripting is <u>so essential</u> for Linux administration that this course has created a shell script for every lab for this course that a student must download and run in order to check their work.
If you have performed the lab correctly, then you will get a series of <b><code><span style="color:#66cc00;border:thin solid black;font-size:1.2em;">&nbsp;OK&nbsp;</span></code></b> messages and you can proceed with the SIGN-OFF for lab1. On the other hand, if there were errors, then a <b><code><span style="color:#ff0000;border:thin solid black;font-size:1.2em;">&nbsp;WARNING&nbsp;</span></code></b> message will appear with general suggestions that you will need to fix on your centos1 VM c7hostVM in order to have your OPS235 sign-off in this lab in order to proceed to the next lab.
You need to show that the downloaded and run lab-checking script displays with all <b><code><span style="color:#66cc00;border:thin solid black;font-size:1.2em;">&nbsp;OKs&nbsp;</span></code></b> and a congratulation message is displayed (along with other required submission requirements) in order to proceed until the next lab.
'''Perform the Following Steps:'''
# Launch your '''centos1c7host''' VM, open the Bash Shell terminal and issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">su -</span></code></b> and enter root's password.<br><br>
# Make a directory called '''/root/bin''' where you will be storing your shell scripts.<br><br>
# Change to the '''/root/bin''' directory.<br><br>
::<span style="color:green;font-size:1.5em;">&#x2713;</span> '''Lab1 logbook''' containing the values for:
:::* '''IP address''', '''MAC address''', '''Default route (gateway)''' and<br>'''DNS name server IP Address'''
::<span style="color:green;font-size:1.5em;">&#x2713;</span> '''lab2 logbook''' with '''first column of Comparison Chart for centos1 VMc7hostVM'''.
13,420
edits