Changes

Jump to: navigation, search

OPS235 Lab 3 - CentOS7 - SSD

10 bytes added, 12:23, 23 June 2016
no edit summary
[[Image:package.png|thumb|right|200px|Learning how to conserve disk space is essential for the efficient operation of a Linux computer system. You will learn how to manipulate the size of Linux file-system sizes (via '''LVM''') in Lab5. ]]
|
[[Image:lbreakout2.png|thumb|right|200px|You will download and compile the a game called '''lbreakout2''' which is only available as compressed source code. ]]
|}
=== Purpose / Objectives of Lab3===
In this lab, you are going to identify solve potential login problems such as running out of space to run a GUI, or forgetting your root password. You will also learn to conserve hard disk space by learning how to compress and decompress files that are stored on your computer server. In addition, you will learn alternative methods of how to install applications (i.e. programs).
<u>Main Objectives</u>
===Part 1: Common Booting Issues===
There are a few "classic problems" that students can may encounter with their virtual machines and their host machine after performing lab2. Although all OPS235 students may not encounter these problems, it is good to be aware of what a potential problem may look like, and know how to solve that problem.
'''A few common problems are:'''
If you cannot log graphically into your machine (first two common problems), there is a trick to boot your system into '''single-user''' mode. This mode does not provide networking, graphics, or logging in as other regular users, but can connect to a text-based interface as the '''root''' user. This method will only work if a GRUB (<u>'''Gr'''</u>and '''<u>U</u>'''nified <u>'''B'''</u>oot-loader) password has not been set, or that you haven't forgotten the GRUB password.
:'''Perform the following steps:'''
#Launch the VMware application.
Unfortunately, booting into Single-User Mode does not work if you forgot your '''root''' password, since the procedure in the previous part requires that you enter your root password. In order to reset your root password, you need to perform a different procedure (shown below).
:'''Perform the following steps:'''
#The procedure to reset root's password is different than shown above. Press <b><code><span style="color:#3366CC;font-size:1.2em;">e</span></code></b> at the Grub boot menu.
One method to help prevent running out of hard disk space is to compress or '''archive''' files so they take up less space on your computer system. Archiving files is also a popular method to '''bundle files together''' into one smaller file for fast transfers to other computer servers.
:'''Perform the following steps:'''
#Boot up your '''centos3''' VM.
===Part 2: Restoring Files From an Archive===
 :'''Perform the following steps:'''
#Remain in your '''centos3''' VM.
Unfortunately, there is no guarantee that a particular software package is contained on the default repository. In order to overcome this problem, you can add other repositories that may contain the application that you wish to install.
:'''Perform the following steps:'''
#Make certain that you are in your '''c7host''' VM.
In order to build software from source code, you must have the appropriate software development tools (such as make and gcc) and libraries (such as GTK) installed. The required tools will vary depending on the computer languages used in the software being built.
:'''Perform the following steps:'''
# Remain in your '''c7host''' VM, but make certain that you are logged in as a regular user (i.e. NOT root!).
We will continue with using shell scripts to create a Software Information Report that manipulates output generated by the '''rpm''' command. The '''sed''' and '''awk''' commands are very useful tools in shell scripting to manipulate text. In this lab, we will be using ''sed'' to allow the user to select certain portions from the rpm command (options -qi).
:'''Perform the following steps:'''
# Use your '''c7host''' VM for this section.
{{Admon/important|Time for a new backup!|If you have successfully completed this lab, make a new backup of your virtual machines as well as your host machine.}}
:'''Perform the Following Steps:'''
# Make certain that your '''c7host''' and '''centos3''' VMs are running.
13,420
edits

Navigation menu