ComputerSecurityStudent (CSS) [Login] [Join Now]




|UNIX >> Ubuntu >> Ubuntu 12.04 Desktop >> Current Page |Views: 18432

(Ubuntu: Lesson 0)

{ Installing Ubuntu Desktop 12.04 LTS - Disable VMWare Easy Install }


Section 0. Background Information
  1. What is Ubuntu?
    • Ubuntu is a computer operating system based on the Debian Linux distribution and distributed as free and open source software, using its own desktop environment. It is named after the Southern African philosophy of ubuntu ("humanity towards others")

    • Most coverage of Ubuntu focuses on its use on desktop personal computers but it is also used on servers and for cloud computing. 

    • Ubuntu is sponsored by the UK-based company Canonical Ltd., owned by South African entrepreneur Mark Shuttleworth.

     

Section 1. Prerequisite
  1. Download VMware Player

     

  2. Download Ubuntu 12.04

     

  3. Save the iso

 

Section 2. Create a New Virtual Machine
  1. Open VMware Player on your windows machine.

     

  2. Create a New Virtual Machine
    • Instructions
      1. Once VMware Player opens, Click on home, then click on create a new virtual machine.

     

  3. Install Operating System Later.
    • Instructions
      1. Select the "I will install the operating system later." radio button.
      2. Click Next.

     

  4. New Virtual Machine Wizard
    • Instructions
      1. Guest operating system: Linux
      2. Version: Ubuntu
      3. Click Next

     

  5. Virtual machine Name
    • Instructions
      1. Virtual machine name: Ubuntu 12.04
      2. Location: USB:\Ubuntu 12.04
        • In my case, the USB letter is D:

     

  6. Virtual machine Name
    • Instructions
      1. Virtual machine name: Ubuntu 12.04
      2. Location: USB:\Ubuntu 12.04
        • In my case, the USB letter is D:

     

  7. Specify Disk Capacity
    • Instructions
      1. Maximum disk size (GB): 15.0
      2. Select radio button --> Store virtual disk as a single file
      3. Click the Next button

     

  8. Customize Hardware
    • Instructions
      1. Click on the Customize Hardware button

     

  9. Configure Network Adapter
    • Instructions
      1. Click on Network Adapter
      2. Click on the Bridged Radio Button
      3. Click on the Close Button

     

  10. Finish Customization
    • Instructions
      1. Click the Finish Button

     

  11. Edit VM
    • Instructions
      1. Click on Edit Virtual Machine Settings

     

  12. Edit Virtual Machine Settings
    • Instructions
      1. Click CD/DVD (IDE)
      2. Select the "Use image file:" radio button
      3. Select the Browse button and navigate to ubuntu-12.04-desktop-i386.iso
      4. Select the OK button

     

  13. Play VM
    • Instructions
      1. Click on play Virtual Machine

 

Section 3. Ubuntu 12.04 Installation
  1. ISOLINUX Screen
    • Informational Only
      1. This is the first screen before the installation starts.
      2. Nothing is required from you.
      3. Continue to next step.

     

  2. Ubuntu 12.04 Screen
    • Informational Only
      1. This is the second screen you will see.
      2. Nothing is required from you.
      3. Continue to next step.

     

  3. Welcome Screen
    • Instructions
      1. Select English
      2. Select Install Ubuntu

     

  4. Preparing to install Ubuntu
    • Instructions
      1. Click the "Download updates while installing" checkbox
      2. Click the Continue button.

     

  5. Installation type
    • Instructions
      1. Click the "Something else" radio button
      2. Click the Continue button

     

  6. Installation type
    • Instructions
      1. Click the New Partition Table...

     

  7. Create new empty partition table on this device?
    • Instructions
      1. Click Continue.

     

  8. Create the /boot file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 500
      4. Use as: Ext4 journaling file system
        • You can also select ext2, if you do not think your /boot file system will change. For class purposes use ext4.
      5. Mount point: /boot
      6. Click the OK button
    • Note:
      • The /boot partition holds the kernel and other data the system needs when it boots; it cannot be under the control of LVM.

     

  9. Create the / file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 2600
      4. Use as: Ext4 journaling file system
      5. Mount point: /
      6. Click the OK button
    • Note:
      • Any file systems that are not created as a separate partition will become automatically part of the root(/) filesystem.

     

  10. Create the swap file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 1280
      4. Use as: swap area
      5. Click the OK button
    • Note:
      • 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 the system goes into hibernate mode.

     

  11. Create the /usr file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 3000
      4. Use as: Ext4 journaling file system
      5. Mount point: /usr
      6. Click the OK button
    • Note:
      • The size of /usr depends on the number of software packages you install.

     

  12. Create the /home file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 2000
      4. Use as: Ext4 journaling file system
      5. Mount point: /home
      6. Click the OK button
    • Note:
      • Size depends on the number of users on the machine and the type of work they do.

     

  13. Create the /tmp file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 1000
      4. Use as: Ext4 journaling file system
      5. Mount point: /tmp
      6. Click the OK button
    • Note:
      • Temporary files such as *.pid files reside here. For most Linux and Unix operating systems, data is not preserved between reboots.

     

  14. Create the /var file system
    • Instructions
      1. Click on free space
      2. Click on the Add... button
      3. New partition size: 3000
      4. Use as: Ext4 journaling file system
      5. Mount point: /var
      6. Click the OK button
    • Note:
      • /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

     

  15. Install Now
    • Note
      • Notice there is 2725 MB left in free space.
      • This is on purpose and will be used later to expand files systems.
    • Instructions
      1. Click the Install Now Button

     

  16. Where are you?
    • Instructions
      1. Select Time Zone
      2. Click Continue

     

  17. Keyboard layout
    • Instructions
      1. Choose your keyboard layout: English
      2. Click Continue

     

  18. Who are you?
    • Instructions
      1. Your name: Student
      2. Your computer's name: ubuntu
      3. Pick a username: student
      4. Choose a password:
        • At least 8 characters
        • Alpha-Numeric
        • Uppercase and Lowercase
        • Symbols (!@#$%^&*, etc)
      5. Require my password to log in
      6. Click Continue

     

  19. Actual Installations
    • Instructions
      1. This installation will take between 10 and 30 minutes depending on your machine resources.

     

  20. Installation Complete
    • Instructions
      1. Click Restart Now

     

  21. Please remove installation media
    • Instructions
      1. Virtual Machine --> Virtual Machine Settings...

     

  22. Virtual Machine Settings
    • Instructions
      1. Select CD/DVD (IDE)
      2. Select Use physical drive: Auto detect
      3. Click OK

     

  23. Press Enter
    • Instructions
      1. Press Enter

 

Section 4. Initial Login
  1. Logging in for the first time
    • Instructions
      1. Type in the password you created in (Section 3, Step 18)
      2. Press <Enter>

 

Section 5. Start Up Terminal Window
  1. Ubuntu Dash
    • Instructions
      1. Click on the Ubuntu Dash

     

  2. Terminal Windows Search
    • Instructions
      1. Type "terminal" in the search box.
      2. Click on the terminal.

 

Section 6. Becoming the root user
  1. Becoming Root
    • Instructions
      1. sudo su -
        • Note: Enter your student password.
      2. grep sudo /etc/group
        • Note: By default, the initial user created will be added to the sudo group.
      3. grep sudo /etc/sudoers | grep -i all
        • Note: By default, the sudo group in the sudoers file can issue any command on the system.  For this reason, the student user can become root.

     

  2. Changing the Root Password
    • Instructions
      1. passwd root
      2. Enter a new root password
      3. Re-Enter the new root password

 

Section 7. Install Gnome Classic
  1. Determine IP Address
    • Instructions:
      1. Become the root user if you are already (See Section 6, Step 1)
      2. ifconfig -a
    • Notes:
      • eth0 is the name of my interface
      • 192.168.1.108 if my IP Address

     

  2. Install the Gnome Classic Interface
    • Instructions:
      1. apt-get install gnome-panel

     

  3. Install the Gnome Classic Interface (Step 2)
    • Instructions:
      1. Do you want to continue [Y/n]? Y

     

  4. Reboot Machine
    • Instructions:
      1. reboot

     

  5. Change to Gnome Classic
    • Instructions:
      1. Click on the Circle

     

  6. Select Gnome Classic
    • Instructions:
      1. Double Click on GNOME Classic

     

  7. Login to Gnome Classic
    • Instructions:
      1. Provide the student password you created in (Section 3, Step 18).

 

Section 8. Basic Gnome Classic Configuration
  1. Place Terminal on Top Panel
    • Notes:
      • In this step, we are going to drag the terminal window to the top panel.
    • Instructions:
      1. Go to Applications --> Accessories --> Terminal
      2. Hold down on the Left Mouse Button when clicking on the Terminal
      3. Drag the Terminal to Top Panel

     

  2. Place Firefox on Top Panel
    • Notes:
      • In this step, we are going to drag the Firefox to the top panel.
    • Instructions:
      1. Go to Applications --> Internet --> Firefox Web Browser
      2. Hold down on the Left Mouse Button when clicking on Firefox
      3. Drag Firefox to Top Panel

 

Section 9. Configuring Date and Time
  1. Go to System Settings
    • Instructions:
      1. Applications --> System Tools --> System Settings

     

  2. Date and Time
    • Instructions:
      1. Click on Date and Time

     

  3. Change Date and Time
    • Instructions:
      1. Region: Set to your Region, in my case, America.
      2. City: Set to a city in your Timezone, in my case, I am in the central time zone.
      3. Network Time: Make sure ON is selected.
        • By selecting ON, both your time and date will automatically be sync'ed toward your timezone.
      4. Click on the X to close

 

Section 10. Post VMware Configuration
 
  1. Virtual Machine Settings
    • Instructions:
      1. Virtual Machine --> Virtual Machine Settings...

     

  2. Edit CD/DVD (IDE)
    • Instructions:
      1. Select CD/DVD (IDE)
      2. Select the radio button "Use physical drive:"
      3. Make sure Auto Detect is selected from the down drop box.
      4. If #2 and #3 were NOT already set, Click OK.  If #2 and #3 WERE already set, Click Cancel.

 

Section 11. Install VMware Tools
 
  1. Install VMware Tools
    • Instructions:
      1. Virtual Machine --> Install VMware Tools...

     

  2. Become Root
    • Instructions:
      1. sudo su -
        • This is not necessary if you are already root.
      2. df -k
        • Notice the new file system called /media/VMware Tools

     

  3. Unzip VWware Tools
    • Instructions:
      1. cd /media/VMware\ Tools/
      2. cp VMwareTools*.tar.gz /var/tmp/
      3. cd /var/tmp
      4. tar zxovf VMwareTools*.tar.gz

     

  4. Execute the vmware-install.pl
    • Instructions:
      1. cd vmware-tools-distrib/
      2. ./vmware-install.pl
      3. Accept all the default answer by pressing Enter for every question.

 

Section 12. Proof of Lab
 
  1. Start up a Terminal Windows
    • Instructions:
      1. Click on the Terminal Window
        • OR
      2. Applications --> Accessories --> Terminal

     

  2. Proof of Lab
    • Proof of Lab Instructions
      1. su - root, if you are not already root.
      2. grep student /etc/shadow
      3. uptime
      4. date
      5. echo "Your Name"
        • Replace the string "Your Name" with your actual name.
        • e.g., echo "John Gray"
      6. Do a <PrtScn>
      7. Paste into a word document
      8. Upload to Moodle


Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth