ComputerSecurityStudent (CSS) [Login] [Join Now]




|UNIX >> Fedora >> Current Page |Views: 50360

(Fedora: Lesson 1)

{ Installing Fedora 14 }


Section 0. Background Information
  1. What is Fedora?
    • Fedora is an RPM-based, general purpose collection of software, including an operating system based on the Linux kernel, developed by the community-supported Fedora Project and sponsored by Red Hat. The Fedora Project's mission is to lead the advancement of free and open source software and content as a collaborative community.

      One of Fedora's main objectives is not only to contain software distributed under a free and open source license, but also to be on the leading edge of such technologies. Fedora developers prefer to make upstream changes instead of applying fixes specifically for Fedora—this ensures that their updates are available to all Linux distributions.

  2. Legal Disclaimer
    • As a condition of your use of this Web site, you warrant to computersecuritystudent.com that you will not use this Web site for any purpose that is unlawful or that is prohibited by these terms, conditions, and notices.
    • In accordance with UCC § 2-316, this product is provided with "no warranties, either express or implied." The information contained is provided "as-is", with "no guarantee of merchantability."
    • In addition, this is a teaching website that does not condone malicious behavior of any kind.
    • You are on notice, that continuing and/or using this lab outside your "own" test environment is considered malicious and is against the law.
    • © 2012 No content replication of any kind is allowed without express written permission.

     

Section 1: Prerequisite
  1. Download Fedora14 (On Host Computer)
    • Instructions:
      1. Click the Start Button
      2. Type "firefox" in the Search Box
      3. Click on Mozilla FireFox
    • Note(FYI):
      1. The Host Computer is the computer in which VMware Player is installed.

     

  2. Download Fedora14

     

  3. When Saving the ISO File
    • Instructions:
      1. Save To C:\ISOs\ or USB:\ISOs\
      2. Accept the default iso name (e.g., Fedora-14-i686-Live-Desktop)
      3. Click the Save Button
    • Note(FYI):
      1. In my case, I am saving the iso to an external hard-drive, hence the (G:)

 

Section 2: Create a New Virtual Machine
  1. Open VMware Player on your windows machine.
    • Instructions:
      1. Click the Start Button
      2. Type "vmware player" in the search box
      3. Click on VMware Player

     

  2. Create a New Virtual Machine. (See Below)
    • Instructions:
      1. Click on Home
      2. Click on Create a New Virtual Machine

     

  3. Installation Media
    • Instructions:
      1. Select the radio button "Installer disc image file (iso):"
      2. Click the Browse Button.
      3. Navigate to where your Fedora14 iso is located and select it.
      4. Click Next

     

  4. Select a Guest Operating System
    • Instructions:
      1. Guest operating system:  Linux
      2. Version: Red Hat Linux
      3. Select Next

     

  5. Name the Virtual Machine
    • Instructions:
      1. Virtual machine name: Fedora14
      2. Location: G:\Virtual Machines\Fedora14
        • In my case, I saved it to my USB drive.
      3. Click the Next Button

     

  6. Specify Disk Capacity.
    • Instructions:
      1. Make the disk size to 13 GB.
      2. Select the radio button name Store virtual disk as a single file.
      3. Select Next.

     

  7. Customize the Hardware.
    • Instructions:
      1. Select the Customize Hardware Button.

     

  8. Configure Memory
    • Instructions:
      1. Click on Memory.
      2. Up the memory to 640 MB
      3. Do NOT Click the Close Button, we still have more to configure.

     

  9. Configure the Network Adapter
    • Instructions:
      1. Click on Network Adapter
      2. Selected the Bridged radio button.
      3. Now, select OK.

     

  10. Click Finish (See Below)
    • Instructions:
      1. Click the Finish Button

     

Section 3: Install Fedora to Hard Drive
  1. Start the Fedora14 VM
    • Instructions:
      1. Click on the Fedora14 VM
      2. Click on Play virtual machine

     

  2. You will see the black VMware loading screen followed by the below Fedora loading screen.

     

  3. Install Fedora to Hard Drive
    • Instructions:
      1. Select Application --> System Tools --> Install to Hard Drive.

     

  4. Select Next
    • Instructions:
      1. Click the Next Button

     

  5. Select Language
    • Instructions:
      1. Select English.
      2. Click Next 

     

  6. Select Storage Device
    • Instructions:
      1. Select Basic Storage Devices
      2. Select Next

     

  7. Re-initialize all
    • Instructions:
      1. Click the Re-initialize all Button

     

  8. Name the server
    • Instructions:
      1. Name the host to fedora14 or whatever you want.
      2. Select Next.

     

  9. Select Time Zone
    • Instructions:
      1. Select the time zone of your choice.
      2. Select Next.

     

  10. Select a root password.
    • Instructions:
      1. Root Password:  <Supply A Strong Root Password>
      2. Confirm: <Re-Enter the previous Root Password>
    • Note(FYI):
      • At least 8 characters
      • Alpha-Numeric
      • Uppercase and Lowercase
      • Symbols (!@#$%^&*, etc)

     

Section 4: Creation Partitions
  1. Create Custom Layout.
    • Instructions:
      1. Select Create Custom Layout
      2. Click the Next Button

     

  2. Select the drive.
    • Instructions:
      1. Click on SDA
      2. Click the Create Button
    • Note(FYI):
      1. In my case, the drive type is sda.
      2. Notice, that there is 13311 MB free, which is the 13 GB we allocated earlier.

     

  3. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  4. Create /boot
    • Instructions:
      1. Mount: /boot
      2. File System Type: ext4 or ext2
        • ext2 is sufficient if you do not think your /boot file system will change.  For class purposes use ext4.
      3. Size: 500 (300 MB minimum)
      4. Addition Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. The /boot partition holds the kernel and other data the system needs when it boots; it cannot be under the control of LVM. 

     

  5. Verify /boot was created, then click the create button.
    • Instructions:
      1. Click on the sda drive
      2. Click the Create Button

     

  6. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  7. Create /
    • Instructions:
      1. Mount: /
      2. File System Type: ext4
      3. Size: 2200 (Fedora recommended is 2111)
      4. Additional Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. Any file systems that are not created as a separate partition will become automatically part of the root(/) filesystem.

     

  8. Verify the / file system was created, Click the Create Button
    • Instructions:
      1. Click the Create Button

     

  9. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  10. Create swap
    • Instructions:
      1. File System Type: swap
      2. Size: 1280 (Swap should double memory).
      3. Additional Size Options: Select the Fixed size radio button
      4. Click OK.
    • Note(FYI):
      1. Linux temporarily stores programs and data on a swap partition when it does not have enough RAM to hold all the information during processing.  Also, swap is used when your hibernate the system.

     

  11. Verify swap was created, Click Create
    • Instructions:
      1. Click the Create Button

     

  12. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  13. Create /usr
    • Instructions:
      1. Mount: /usr
      2. File System Type: ext4
      3. Size: 3000 (2 to 16 GB)
      4. Additional Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. The size of /usr depends on the number of software packages you install.

     

  14. Verify the /usr filesystem, Click Create.
    • Instructions:
      1. Click the Create Button

     

  15. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  16. Create /home
    • Instructions:
      1. Mount: /home
      2. File System Type: ext4
      3. Size: 2000
      4. Additional Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. Size depends on the number of users on the machine and the type of work they do.

     

  17. Verify the /home filesystem, Click Create
    • Instructions:
      1. Click the Create Button

     

  18. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  19. Create the /tmp filesystem.
    • Instructions:
      1. Mount: /tmp
      2. File System Type: ext4
      3. Size: 1000 (Minimum 500 MB)
      4. Additional Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. Temporary files such as *.pid files reside here.  For most Linux and Unix operating systems, data is not preserved between reboots.

     

  20. Verify the /tmp filesystem, Click Create
    • Instructions:
      1. Click the Create Button
    • Note(FYI):
      1. Notice that the remaining space is 3327 MB

     

  21. Create Partition
    • Instructions:
      1. Select Standard Partition
      2. Click Create

     

  22. Create the /var filesystem
    • Instructions:
      1. Mount: /var
      2. File System Type: ext4
      3. Size: 3327 (Required minimim is 500 MB; however, we are putting the remaining free space on the drive identified in step 20).
      4. Additional Size Options: Select the Fixed size radio button
      5. Click OK
    • Note(FYI):
      1. /var is short for variable.  Data in this partition changes frequently.
        • /var/log - Where the system log messages are stored.
        • /var/mail - Where mail is stored.

     

  23. Verify the /var filesystem, and click NEXT.
    • Instructions:
      1. Click the Next Button

     

  24. Format Warning
    • Instructions:
      1. Click the Format Button

     

  25. Confirm
    • Instructions:
      1. Write Changes to Disk.
    • Note(FYI):
      1. Once you click the write button, you will see formatting and creation messages for each file system.

     

  26. Fedora Installer
    • Instructions:
      1. Check the Install boot loader checkbox.
      2. Click the Radio Button associated with /dev/sda (See Picture)
      3. Click Next
    • Note(FYI):
      • If you check the "Use a boot loader password", then "E" cannot be used to clear out root's password if you loose it.
      • In the following labs, we will learn how to exploit the grub boot loader.

     

  27. Copying the image, Post Installation Process
    • Note(FYI):
      1. Wait for about 10 to 20 minutes depending on your machines resources.

     

  28. Congratulations
    • Instructions:
      1. Click Close

     

  29. Let's Shutdown the system
    • Instructions:
      1. System --> Shutdown

     

  30. Click Shutdown
    • Instructions:
      1. Click Shut Down

 

Section 5: Post VMware Configuration
 
  1. Edit the virtual machine settings
    • Instructions:
      1. Highlight the fedora14 VM
      2. Click on Edit virtual machine settings.

     

  2. Set Physical Device Type (See Below)
    • Instructions:
      1. Click on CD/DVD (IDE)
      2. Click on the "Use physical drive:" radio button
      3. Select Auto Detect
      4. Click OK.

 

Section 6: Post Fedora14 Configuration
 
  1. Play the fedora14 VMware Instance
    • Instructions:
      1. Select fedora14
      2. Click on Play virtual machine

     

  2. Welcome Screen
    • Instructions:
      1. Click Forward

     

  3. License Information.
    • Instructions:
      1. Click Forward

     

  4. Create User
    • Instructions:
      1. Create the user account called "student".
      2. Remember to use a strong password.
      3. Click Forward

     

  5. Set Date and Time information
    • Instructions:
      1. Set Date
      2. Set Time
      3. Click Forward

     

  6. Hardware Profile
    • Instructions:
      1. Click the Do not send profile radio button
      2. Click Finished

     

  7. Login as student
    • Instructions:
      1. Login as student

     

Section 7: Update Yum Repository Archive Files
  1. Switch User to Root
    • Instructions:
      1. su - root
      2. Provide the Root Password

     

  2. Download Yum Fedora Repository File
    • Instructions:
      1. firefox http://www.computersecuritystudent.com/UNIX/FEDORA/lesson1/fedora.repo &

     

  3. Save Yum Fedora Repository File (Part 1)
    • Instructions:
      1. File --> Save Page As...

     

  4. Save Yum Fedora Repository File (Part 2)
    • Instructions:
      1. Name: fedora.repo
      2. Save in folder: root
      3. Click the Save Button
      4. Click X to Close Firefox

     

  5. Download Yum Fedora Updates Repository File
    • Instructions:
      1. firefox http://www.computersecuritystudent.com/UNIX/FEDORA/lesson1/fedora-updates.repo &

     

  6. Save Yum Fedora Updates Repository File (Part 1)
    • Instructions:
      1. File --> Save Page As...

     

  7. Save Yum Fedora Updates Repository File (Part 2)
    • Instructions:
      1. Name: fedora-updates.repo
      2. Save in folder: root
      3. Click the Save Button
      4. Click X to Close Firefox

     

  8. Update Yum Repository Files
    • Instructions:
      1. ls -l /etc/yum.repos.d/*
      2. cd /root/
      3. ls -l *.repo
      4. yes | cp -ruv *.repo /etc/yum.repos.d/
      5. grep -i archive /etc/yum.repos.d/*

 

Section 8: Install Perl, GCC, and WGET
  1. Switch User to Root
    • Instructions:
      1. su - root
      2. Provide the Root Password

     

  2. Install Perl
    • Instructions:
      1. yum list perl.i686
      2. yum install perl.i686
      3. Is this ok [y/N]: y

     

  3. Install GCC
    • Instructions:
      1. yum list gcc.i686
      2. yum install gcc.i686
      3. Is this ok [y/N]: y

     

  4. Install WGET
    • Instructions:
      1. yum list wget
      2. yum install wget
      3. Is this ok [y/N]: y

 

Section 9: Install VMware Tools
  1. Start VMware Tools Download
    • Instructions:
      1. Player --> Manage --> Install VMware Tools...

     

  2. Untar VMware Tools tarball
    • Instructions:
      1. df -k
      2. cp /media/VMware\ Tools/VMwareTools*.tar.gz /var/tmp
      3. cd /var/tmp
      4. tar zxvf VMwareTools*.tar.gz

     

  3. Install VMware Tools
    • Instructions:
      1. cd /var/tmp/vmware-tools-distrib
      2. perl vmware-install.pl default
    • Note(FYI):
      • The default install mode will take 45 to 90 seconds.

     

  4. Install VMware Tools (Cont...)
    • Note(FYI):
      1. Upon successful complete, you will see a screen similar to the below.
      2. A reboot might be necessary for some of the VMware tools to take effected (Mouse and Graphics). 

 

Section 10: Proof of Lab
  1. Start Up a Terminal Window
    • Instructions:
      1. Applications --> Terminal

     

  2. Proof of Lab
    • Instructions:
      1. df -k
      2. ls --full-time /etc/passwd
      3. date
      4. echo "Your Name"
        • Put in your actual name in place of "Your Name"
        • e.g., echo "John Gray"
    • Proof of Lab Instructions
      1. Press the <Ctrl> and <Alt> key at the same time.
      2. Press the <PrtScn> key.
      3. Paste into a word document
      4. Upload to Moodle

     

  3. Consistency Reboot
    • Instructions:
      1. poweroff
    • Note(FYI):
      • Please continue to the next step to make backup copies of them Virtual Machine for future lessons.

 

Section 11: Prepare Backup Virtual Machines
  1. Open a Command Prompt (On Your Host Machine)
    • Instructions:
      1. Click the Start Button
      2. Type "command" in the search box
      3. Click on the Command Prompt

     

  2. Start Up a Terminal Window
    • Note(FYI):
      • This is only necessary if you intend on completing the following Web Security Lessons: DVWA and Mutillidae
    • Instructions:
      1. C:\> mkdir "G:\Virtual Machines\Fedora14 - DVWA"
      2. C:\> copy "G:\Virtual Machines\Fedora14\*" "G:\Virtual Machines\Fedora14 - DVWA\"
      3. C:\> mkdir "G:\Virtual Machines\Fedora14 - Mutillidae"
      4. C:\> copy "G:\Virtual Machines\Fedora14\*" "G:\Virtual Machines\Fedora14 - Mutillidae\"

 



Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth