当前位置 |首页 > 作业代写 > 他类 >
分享这个代写网站给同学或者朋友吧!

   IA490 Lab 1 Handout

 

Learning Objectives

 

1. Create working environment for future labs

 

Learn what a virtual machine (VM) is

 

Install and configure VirtualBox

 

Install Ubuntu VM

 

2. Understand basics of working in Ubuntu

 

 

Introduction

 

A virtual machine is a software that emulates a virtual environment on your machine. This entire virtual machine is (ideally) completely contained within the host machine that is hosting it.

 

As an example, if you are running a Windows 7 VM on a Mac, the Windows 7 VM should run exactly like a real Windows 7 on a machine. The operating system on VM does not know that it is being virtualized.

 

This allows us to run the same virtual machine on different computers, so when we run software on the same type of virtual machine we all get the same result. Virtual machine also allows any possible viruses on the virtual computer to be completely self-contained, leaving the host computer safe and unharmed by the viruses.

 

We will be using virtual machines in this class so that everyone has the same, safe environment to work on for future labs.

 

 

Materials

 

VirtualBox: https://www.virtualbox.org/wiki/Downloads

 

Ubuntu 16.04 Desktop ISO: http://www.ubuntu.com/download/desktop

 

 

Discussion

 

Why would people use a virtual machine?

 

What do you want to learn in your lab sections?

 

 

Tasks

 

1. Download the required materials

 

2. Install VirtualBox

 

Run the VirtualBox Installer

 

Proceed with the installation until the installer completes

 

   IA490 Lab 1 Handout

 

3. Create Ubuntu Virtual Machine

 

Within VirtualBox, click the new button (just below file)

 

Fill out the settings as shown and click next:

 

Leave memory size as recommended – click next

 

Create a virtual hard disk now – click create

 

Use VDI – click next

 

Use Dynamically allocated – click next

 

Feel free to customize the size and location – click next

 

3. Install Ubuntu

 

Double click on the VM you just created to start it

 

Click on the folder icon to navigate to where you saved your Ubuntu ISO

 

Click Start

 

Click Install Ubuntu

 

Check the first box and click continue

 

Erase disk and install Ubuntu (if a confirm box pops up, click continue)

 

Click continue on location

 

Continue on language

 

Use your netid for your name, enter a password and click continue

 

 

2


   IA490 Lab 1 Handout

 

Once the installer finishes, click restart to reset the machine

 

If the VM hangs, click the Machine on the VM menu bar and click Reset

 

4. Final Configuration

 

Log into Ubuntu

 

Click Devices in the VirtualBox menu – Insert Guest Additions CD Image

 

Follow the prompts

 

Machine is VirtualBox Menu – Reset

 

5. Start the Terminal

 

Log into your user to get to your desktop

 

The menu bar on the left is called the “Launcher”

 

Start up a terminal

 

Press Ctrl + Alt + T and a terminal should pop up

 

Pin the terminal to the launcher by right clicking its icon in the launcher

 

You can now click on terminal icon to reopen terminal

 

6. Basic Terminal Commands

 

Run the following commands in terminal

 

“whoami”

 

“pwd”

 

“ls --help”

 

“cd ..”

 

“ls”

 

“ping google.com” (Ctrl + C to stop)

 

“nslookup google.com”

 

python” (Ctrl + D to stop)

 

For additional help, refer to this documentation: https://help.ubuntu.com/community/UsingTheTerminal

 

7. Learn to Use a Text Editor

 

Your installation of Ubuntu comes with a preinstalled text editor: nano

 

Practice opening, editing, and saving files using nano

 

For additional help, refer to this documentation: https://help.ubuntu.com/community/Nano

 

8. Write Your First Program

 

Your installation of Ubuntu also comes with python, a handy programming language

 

Create a new text file in nano called hello.py

 

Insert the following line of text: print "hello world"

 

Save and exit nano

 

Run the file by typing into the terminal: “python hello.py”

 

 

 

 

 

 

3


   IA490 Lab 1 Handout

 

Assignment

 

Due on Moodle at 11:55 PM on Thursday, September 1.

 

In a pdf file named netid_vm_lab.pdf, answer the following questions:

 

1. What are two reasons for why someone might want to use a virtual machine?

 

2. Briefly explain what each of these terminal commands do:

 

a. cd

 

b. ls

 

c. pwd

 

d. cp

 

e. mv

 

f. rm

 

g. man

 

h. sudo

 

3. Copy and paste a screenshot of the terminal window after running: python hello.py

 

代写