Open main menu

CDOT Wiki β

Changes

Temp OPS235 Lab 1

4,828 bytes removed, 15:42, 11 January 2012
no edit summary
}}
 {{Admon/important|Other Linux InstallsUsing Entire Hard Disk|You may be "hestitant" to want to use the entire disk for just one operating system, but we will be using software that will allow us to run virtual machines for installation of other versions of Fedora and allow them to run at the same time as our main (host) Fedora distribution.|
}}
<li>Remove the Fedora Installation DVD, and click '''Reboot'''.</li>
</ol>
 
{{Admon/important|Boot-up Issues (Fedora16) in Seneca's Computer labs|Each time you boot from your removable hard drives:
}}
# Reboot using the controls on the screen. <ol> <li>When the system starts, it will ask you some final configuration questions.#* Check set or accept the License Agreementtime and date default. What license is used for the Fedora distribution? What activities do have restrictions and obligations?</li>#* <li>Create a user account for yourself using the same name as your learn account, and create a suitable password (do not forget password!).</li>#* Set date and time. <li>Normally, you would want to enable Network Time Protocol, but since we will be experimenting with the networking turned off in later labs, leave it disabled.</li>#* <li> Click on Do Not Send Hardware Profile.</li>#* <li>Finish the post-installation customization, wait for the login screen to appear, and then login to your Learn account.</li> <li>Proceed to Investigation 2</il> </ol>
 
==Investigation 2: How many files packages and files are installed on the system?==
 
For the rest of the tasks in this lab, you must login to your system using your Learn account and execute all commands under your learn account. If you get a Permission Denied message when trying to execute a command, then switch to the superuser account by running the command su - and type in the password for "root". Once the intended command is executed, type "exit" to exit from the superuser account and return to your regular Learn account.
{{Admon/important|Using Superuser Privilege|Throughout this course, you may need to execute commands using the privileges of the the administrative user (username "root", also called the "superuser"). To switch from your account to the root account, type the command: <code>su</code>
After switching user notice and make note of the change in your shell prompt. Also note the difference in output for the <code>whoami</code> and <code>pwd</code> commands.
'''Whenever this is required, make a note of it, and determine why superuser privilege is required.'''
When you are finished using the root account type exit to return to your previous account. '''Avoid using the superuser account unless absolutely necessary, because the superuser account has unlimited privilege and a typo can destroy your system.'''
In some documentation, you may see the command <code>su -</code> used in place of <code>su</code>. The dash argument causes <code>su</code> to go through the steps that would normally be performed when the root user logs in, including (1) running the startup scripts (such as <code>/etc/profile</code> and <code>/root/.bash_profile</code> and (2) changing to the root user's home directory (<code>/root</code>).
Note that the root user's home directory (<code>/root</code>) is ''not'' the same as the root directory of the system (<code>/</code>). It is also in a different directory than the rest of the home directories, which are typically in <code>/home</code> -- the reason for this is that <code>/home</code> is sometimes on a network filesystem shared by another server (as is the case on Matrix), and it's important that the system administrator be able to log in to the system even if the network is not operating normally.
}}
 
 
 
# Enter the command <code>fdisk -l /dev/sda</code> and describe the output in your log book. The output may be similar to the following:
 
Disk /dev/sda: 12.0 GB, 12072517632 bytes
255 heads, 63 sectors/track, 1467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
...
<ol>
<li value="2">Read and study this [http://tldp.org/HOWTO/Partition/fdisk_partitioning.html reading] about how to use the fdisk command before you go on to the next step.</li>
<li>Review the man page for the fdisk command.</li>
</ol>
 
{{Admon/caution | Important/warning! | The following operation will erase the contents of your hard disk. If you have any useful data stored on your disk, you must back it up first or use another hard disk that does not contain useful data on it. Do not plan on sharing the hard disk with the Windows course! You will be doing lots of tasks that may cause you to lose your data.}}
<ol>
<li value="4"> Enter the command <code>fdisk /dev/sda</code> to start the hard disk partition program.</li>
<li>At the fdisk command prompt, enter the letter '''p''' to print out the current partition table of the hard disk. If there are any partitions, use the '''d''' option to delete all of them, starting with the highest partition number first.</li>
<li>At the fdisk command prompt, use the '''n''' and '''t''' commands to create these three partitions:</li>
</ol>
/dev/sda1 - 300MB (primary, Linux Native)
/dev/sda2 - the rest of the hard disk (extended)
/dev/sda5 - 300MB (logical, Linux Native)
<ol>
<li value="7">* Use the '''p''' option the display the new partition and record it in your log book.</li>
<li>Remember to use the '''w''' option to write the new partitions information instead of the '''q''' option to quit without saving.</li>
<li>Enter the command <code>fdisk -l /dev/sda</code> again, and view the partition table to confirm that the partitions were properly created.</li>
<li>Exit the fdisk prompt.</li>
<li>Close all applications, and shutdown the computer. Make certain to remove the Fedora 16 LIVE CD when prompted.</li>
</ol>
 
Answer the Investigation 1 question in your lab log book.
 
===Investigation 2: How do you install Fedora?===
{{Admon/important | Logical Volume Management | Fedora uses a type of storage management called Logical Volume Management (LVM). In LVM, disk partitions are called Physical Volumes (PVs) and provide storage to a Volume Group (VG). This storage is then split into various Logical Volumes (LVs). The advantage to this scheme is that you can change LV size and you can add and remove PVs after installation. For example, you can add a new disk to your system and then increase the size of your existing filesystems using that extra disk space. ''Please be careful to enter all LVM information accurately, including the VG and LV names.'' We will investigate and manipulate LVM in future labs.}}
 
{{Admon/note | Installation Time | The installation process will take about 15 minutes to complete when using DVD. Click the Reboot button on the screen to reboot the system after the installation is complete. There is a post installation setup after boot.}}
 
# Set your computer's drive selector switch to external (since we will be booting from LIVE CD), then power up the computer.
# Insert the Fedora 16 x86_64 Installation DVD into the DVD drive.
# Reboot the system.
# After booting from the Installation DVD, at the Welcome Screen choose "Install or upgrade an existing system" to launch the Graphical installation program and select the following options (you can use the media test to verify that your DVD burned correctly -- It will take some time -- otherwise, skip it):
#* Language - English
#* Keyboard Configuration - U.S. English
#* Type of devices: Basic Storage Devices
#* There should only be one storage drive listed - select it
#* If you get a warning that the drive may need to be initialized, it is because your drive is new and contains no partitition table. Select "Re-Initialize"
 
 
Answer the Investigation 2 questions in your lab log book.
 
{{Admon/tip|Forcing the Resolution on the Projector|The podium computers in the lab rooms are connected to a video splitter. This splitter then connects to both the LCD screen on the podium and the projector at the front of the room. However, the splitter prevents the computer from successfully querying the LCD or screen to find the supported resolutions, and Fedora therefore selects a very low (safe) resolution. If you are using a podium system, you can force the native 1680x1050 resolution of the LCD display using [http://matrix.senecac.on.ca/~chris.tyler/fedora-scripts/1680x1050 this script].}}
 
===Investigation 3: How many files packages and files are installed on the system?===
 
For the rest of the tasks in this lab, you must login to your system using your Learn account and execute all commands under your learn account. If you get a Permission Denied message when trying to execute a command, then switch to the superuser account by running the command su - and type in the password for "root". Once the intended command is executed, type "exit" to exit from the superuser account and return to your regular Learn account.
Record the commands used and the output generated in each of the following steps:
13,420
edits