Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2 - CentOS7

2,652 bytes added, 07:26, 28 March 2015
no edit summary
'''Answer the Investigation observations / questions in your lab log book.'''
== Investigation 7INVESTIGATION 3: Kickstart Files =LOOKING AHEAD =
Even when you perform a non-Kickstart installation, the installation program creates a Kickstart file in the <code>/root</code> directory for reference.==Part 1: Disable SELinux and Perform Software Updates==
{|cellpadding="15" width="100%"|- valign="top" | # Disabling SELinux is quite simple, just edit the file '''/etc/selinux/config''' and set SELINUX to disabled.# Add additional text regarding disabling SELinux<br><br># Obtain The CentOS software is updated frequently to add features, fix bugs, and upgrade security. Perform a system update to get the kickstart files for all four latest versions of your installations the packages installed: Start the Firefox web browser, turn off popup window blocking (your disk pack select '''Edit'c7host'', plus the ''centos1'Preferences''', then select the '''centos2Content'', ' tab and uncheck the box to ''centos3'Block Popups''' virtual machines), then return to your web-browser, load a page, and when prompted, login to SeneNET.# To prevent confusionOpen a terminal and type <b><code>su</code></b> to start a shell as root. Enter the command <b><code><span style=" pointer-events:none;cursor:default;color:#3366CC;">yum update</span></code></b> This will download and install all of the packages that have been updated since the installation DVD image was created. If you complete this command at Seneca it should run quite fast as Seneca College hosts a CentOS Repository mirror (a copy of all of the current CentOS packages, copy your kickstart files on a local web server). |width="40%" |{{Admon/important|SELinux|SELinux stands for '''Security-Enhanced Linux'''. It is a component that helps to better secure the system to kickstart filenames that describe their purpose protect against intrusion (eghackers). kickstart_hostSELinux is enabled upon the default install of CentOS. SELinux can be a good thing, kickstart_centos1, kickstart_centos2, etcif you take care of it and know how it works.For this course it is strongly recommended that you '''disable SELinux by default''' because we won't have the time to reconfigure it every time the labs make it necessary.}}|}  ==Part 2: Automating Routine Tasks (Shell Scripting)==[[Image:lab1-script-1.)png|thumb|right|175px|When executed as '''root''' or using '''sudo''' command, allows for automatically performing routine tasks such as generating information of a newly installed Linux server]]# Copy You may have learned about creating and running Bash Shell Scripts in your ULI101 course. Shell scripts help Linux users and system administrators to automatic repetitive tasks to become more efficient and to help them all save time.#The <b><code>wget</code></b> command can be used to your c7host system (tipquickly download files from the Internet. Issue the following command: use <blockquote><b><code>scp<span style="pointer-events: none;cursor: default;color:#3366CC;">wget https://scs.senecac.on.ca/~murray.saul/text-report.bash</span></code>, webmail, or </b></blockquote>#Verify that the file '''text-report.bash''' was downloaded to your current directory.#Assign read and execute permissions for this file by issuing the command: <b><code>chmod u+rx text-line mailreport. Refer to bash</code></b>#Run this Bash Shell script by issuing the manpages for help)command: <b><code>./text-report.bash</code></b># Compare these filesCheck to see if it created a report in your current directory. What are is the differencespurpose of the report? Similarities#Use the <b>vi</b> text editor to view the contents of the file <b>text-report.bash</b>. Can you understand how this script works? (Tip<br><br>#Use the <b><code>wget</code></b> command to download, study, and run the following shell scripts on-line: you may want to use tools such as <blockquote><b><code>sdiff<span style=" pointer-events:none;cursor:default;color:#3366CC;">https://scs.senecac.on.ca/~murray.saul/report.bash<br>https://scs.senecac.on.ca/~murray.saul/report3.bash</span></code> </b></blockquote>#Try to help with the comparison)understand what these Bash Shell scripts do.# How could you use the kickstart file produced by the installation program You have completed lab1. Proceed to perform additionalCompleting The Lab, identical installations?and follow the instructions for "lab sign-off".
'''Answer the Investigation 7 observations / questions in your lab log book.'''
13,420
edits