Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7 - VMware

152 bytes removed, 16:46, 2 June 2016
no edit summary
<li>Finally, add a swap partition (Mount Point: swap) for '''16 GB'''.</li>
<li>Check that your partition settings are correct (you can ask your instructor or lab monitor to confirm), and then click '''Done''' (possibly '''<u>twice</u>''') in order to proceed<br><br></li></ol>
 {{Admon/tip|Error indicating /boot/efi partition required|If there is an error message associated with your created partitions, you may need to add a '''/boot/efi''' partition (as a new mount). The capacity should be: 2954MB (i.e. 2,954 MB). Once finished, click '''Done'''.</span>|
}}
#<span style="background-color:yellow">Remember to record this host installation information in the '''installation comparison chart''' in the lab2 logbook</span>.
#When installation is complete, you will notice a message at the bottom of the screen stating: '''CentOS is now successfully installed and ready for you to use!'''
#Click the '''Reboot ''' button. Your DVD will <u>briefly</u> open in the DVD drive bay. Make certain to remove this installation DVD so that Centos will boot from your hard drive.
#After the system reboots, a boot menu should briefly appear, then prompt the user to accept the License Information (this is only a one-time occurrence).<br> In order to accept the license agreement, issue the following keystrokes:<br><br>'''1''' followed by ENTER (to select the license agreement prompt<br>'''2''' followed by ENTER (to accept the license agreement)<br>'''c''' followed by ENTER (to save the selection)<br>'''c''' followed by ENTER (a second time to continue booting into the system)<br><br>
#The system should then graphically prompt the user to login with their regular user account. Click on your '''regular user account name''' and '''enter your regular user password'''.<br><br>
For the remainder of this lab, we will be using the '''centos1''' virtual machine that we installed in Investigation 1.
First, we will focus on using the virtual machine and become familiar with some command VM operations like such as switching between the full-screen and window modes. We will also learn to turn-off the screen-saver settings so you do NOT have to periodically re-issue passwords to gain access to your account (although it is a good security feature to consider in the future beyond this lab). We will also show you how to temporarily log in as the root account user in order to perform tasks that are only allows for require a Linux administrator. Finally, we will continue using Shell Scripting to help automate routine tasks. For lab1, this will be creating shell scripts in order to generate information regarding the Linux system that we just installed. It would make sense that not only should a system administrator have access to hardware specifications for the computers that they support, but also information regarding the Linux operating system.
==Part 1: Managing your Virtual Machine==
===VMware Workstation Toolbar===
[[Image:taskbar.png|thumb|right|500px|The '''VM Workstation taskbar''' is useful when in full-screen mode to perform common virtual machine management tasks. ]]
The VM Workstation application allows virtual machines to run in '''windows mode''' or '''full screen mode ''' (which is toggled by pressing the key combination: '''ALT-CTRL-ENTER'''). You can press the key-combination ALT-CTRL in order to return to your host computer system (i.e. running the VM Workstation application. The VM Workstation Toolbar (displayed on right-hand side) can be accessed while in full screen mode when the mouse pointer is at the top of the virtual machine display.
Below is a table with some useful toolbar buttons and their purpose:
Your system automatically enables a '''screen-saver''' application which is a useful security tool to prevent unauthorized viewing of information on a terminal after a certain amount of inactivity. Turning-off the locked screen-saver for this (and other) virtual machine can be useful when waiting for your instructor to come over to "sign-off" your computer lab without having to re-issue user passwords.
'''If you find this feature annoying and want to turn it off or adjust To Disable the idle time perform Locked Screen-saver, Perform the following steps:'''
#Click on your '''username at the top right-hand screen'''
#Change the amount of time in the '''Power Saving''' section to '''Never''' or a '''longer period of time'''
#Close the ''Settings'' Dialog box.
 
===Disable SELinux and Perform Software Updates===
'''Perform the following Steps:'''
# Disabling SELinux is quite simple, just edit the file '''/etc/selinux/config''' and set SELINUX to '''disable<u>d</u>'''.# Add additional text regarding disabling SELinuxand save your editing session.
#The CentOS software is updated frequently to add features, fix bugs, and upgrade security. Perform a system update to get the latest versions of the packages installed: Start the Firefox web browser, turn off popup window blocking (select '''Edit''', '''Preferences''', then select the '''Content''' tab and uncheck the box to '''Block Popups'''), then return to your web-browser, load a page, and when prompted, login to SeneNET.
#Make certain that you have at least 30 minutes available in your lab-time prior to performing a system update. Never abort a system update since it may damage your system files and render your host mahcine inoperable!
'''Perform the following Steps:'''
#Shut down your centos1 VM.
#Determine the location that contains your centos1 virtual machine files. Here are some common locations for various Operating Systems:
[[Image:moved.png|thumb|right|300px|When starting the VM, you need to respond to the system prompt to confirm that you moved the VM to another platform.]]
<ol>
<li value="2">Create a zipped archive of the '''centos1 directory contained .vmx''' file located in the '''centos1''' VM storage location (noted in step1)directory.</li>
<li>Copy the zipped archive to your USB key.</li>
</ol>
<ol>
<li value="4">To move work to your computer system running VMware Workstation, copy the archived file from your USB key to the appropriate VM storage location.</li>
<li>Restore the archived file</li>
<li>Launch the other VMware Workstation.</li>
'''Perform the Following Steps:'''
# Launch your centos1 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.# Make a directory called '''/root/bin''' where you will be storing your shell scripts.# Change to the '''/root/bin''' directory.# Issue the Linux command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">wget http://matrix.senecac.on.ca/~murray.saul/ops235/lab1-check.bash</span></code></b>
# Give the '''lab1-check.bash''' file execute permissions (for the file owner).
# Run the shell script and if any warnings, make fixes and re-run shell script until you receive "congratulations" message.
13,420
edits

Navigation menu