Top Banner
COMPUTER SYSTEM LABORATORY Lab1 - Environment Setup I
21

Computer System Laboratory

Feb 13, 2016

Download

Documents

Oleg

Computer System Laboratory. Lab1 - Environment Setup I. Experimental Goal. Install necessary software for coming Labs. Environment. Host System Windows XP Build System VirtualBox + Ubuntu 8.04 Target System Creator XScale PXA270 Software VirtualBox Putty TFTP Server Domingo - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Computer System Laboratory

COMPUTER SYSTEM

LABORATORYLab1 - Environment Setup I

Page 2: Computer System Laboratory

/ 212Lab 1

Experimental Goal• Install necessary software for coming Labs.

2013/9/17

Page 3: Computer System Laboratory

/ 213Lab 1

Environment• Host System

• Windows XP

• Build System• VirtualBox + Ubuntu 8.04

• Target System• Creator XScale PXA270

• Software• VirtualBox• Putty• TFTP Server• Domingo

• You can download all software from RSWiki CSL Course Software2013/9/17

Page 4: Computer System Laboratory

/ 214Lab 1

Install VirtualBox (1/2)•Please download VirtualBox from https://www.virtualbox.org/ or course website (VirtualBox-4.2.18-88780-Win.exe).

• Install VirtualBox.• Using default settings is fine.• Note that the network will be disconnected temporarily during the

installation.• The related networking drivers should be installed.

2013/9/17

Page 5: Computer System Laboratory

/ 215Lab 1

Install VirtualBox (2/2)•After complete installation, you can execute “Oracle VM VirtualBox” to manage your virtual machines.

2013/9/17

Page 6: Computer System Laboratory

/ 216Lab 1

Create a Virtual Machine in VirtualBox•Step1: click “ 新增” in “Oracle VM VirtualBox 管理員” .•Step2: create a Ubuntu Linux virtual machine.

• Using default settings is fine.

•Step3: adjust the sizes of memory and disk for your virtual machine.• The size of disk needs at least 20 GB.

2013/9/17

Page 7: Computer System Laboratory

/ 217Lab 1

Install Ubuntu 8.04 in VirtualBox (1/2)• Download Ubuntu 8.04 (ubuntu-8.04.4-desktop-i386.iso) from

course website.• Step1: start your virtual machine.• Step2: choose the Ubuntu image file for booting from CD/DVD.

• “ 裝置” “ CD/DVD 裝置” “選擇虛擬 CD/DVD 磁碟檔案”• Step3: install Ubuntu 8.04.

• English version is more stable.• Using default settings is fine.• Change time zone to “Asia” “Taipei”.• Remember to create an account to login Linux.

• Now, you can see the Ubuntu 8.04 desktop.2013/9/17

Page 8: Computer System Laboratory

/ 218Lab 1

Install Ubuntu 8.04 in VirtualBox (2/2)•To uncaptured the keyboard and the mouse from virtual machine to Windows XP, please press the host key, right ctrl key by default.

• In Ubuntu, if you want to execute commands like Linux in CSIE workstation, you can use “Terminal”.• “Applications” “Accessories” “Terminal”• If you want to execute commands with root privilege, you can type

“sudo <command>”.• e.g. % sudo mkdir /etc/test

2013/9/17

Page 9: Computer System Laboratory

/ 219Lab 1

Add Share Folders• Step1: create a folder, <shared folder>, in Windows XP.• Step2: install guest additions in Ubuntu 8.04.

• “ 裝置” “安裝 Guest Additions”• Execute the script in Ubuntu 8.04.

• % sudo /media/cdrom/VBoxLinuxAdditions.run

• Step3: set up the shared folder in VirtualBox.• “ 裝置” “共享資料夾”• Add a shared folder in “ 機器資料夾” .• Set the folder name to <shared folder>.• Mark it to be “ 自動掛載” and “ 永久性” .

• Step4: mount the shared folder in Ubuntu 8.04.• % sudo mkdir –p /mnt/<your path>• % sudo mount.vboxsf <shared folder> /mnt/<your path>

2013/9/17

Page 10: Computer System Laboratory

/ 2110Lab 1

Test Your Shared Folder•Step1: create a file and a directory in the shared folder, e.g., <mounted folder>, in Ubuntu8.04.• % cd <mounted folder>• % touch test1• % mkdir test2

•Step2: check your shared folder in Windows XP.

2013/9/17

Page 11: Computer System Laboratory

/ 2111Lab 1

Share Clipboard•After complete installation of guest additions, you can also share clipboard between Windows XP and Ubuntu.

• In VirtualBox:• “ 機器” “設定值” “一般” “進階”• Change the setting of “ 共用剪貼簿” from “ 停用” to “ 雙向” .

2013/9/17

Page 12: Computer System Laboratory

/ 2112Lab 1

Install Putty•Step1: download putty from http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html or course website (putty).

•Step2: putty can be executed without installation.

2013/9/17

Page 13: Computer System Laboratory

/ 2113Lab 1

Install TFTP Server (1/2)•Step1: download TFTP server (tftpserver-setup.exe) from our course website and install it.• Please allow the TFTP services executing in the firewall.

•Step2: after complete installation, execute “TFTP Server Manager”.

•Step3: connect to local TFTP server.

2013/9/17

Page 14: Computer System Laboratory

/ 2114Lab 1

Install TFTP Server (2/2)•Now, you can see the window of “TFTP Server Manager”.

• You can change the root virtual folder by “Manage Virtual Folders”.• Files in this virtual folder can be downloaded from TFTP client.• For convenience, you can set the path of virtual folder to the shared folder,

i.e., the <shared folder> in slide 9.• The default path is C:\Documents and Settings\All Users\Application Data\WinAgents\TFTP Server 4\TFTPRoot\.

2013/9/17

Page 15: Computer System Laboratory

/ 2115Lab 1

Install Domingo•Step1: download domingo (DomingoforLinux_V131923.iso) from our course website.

•Step2: you can mount this image file to virtual CD/DVD drives by DAEMON-tools or directly extract this image by WinRAR.

•Step3: click autorun.exe in CD to install.

2013/9/17

Page 16: Computer System Laboratory

/ 2116Lab 1

Create a PXA270 Project in Domingo (1/4)•Step1: after complete installation, execute “Domingo for Linux 1.3”.

•Step2: choose “New Project”.

2013/9/17

Page 17: Computer System Laboratory

/ 2117Lab 1

Create a PXA270 Project in Domingo (2/4)•Step3: configure “TargetMachine” and “Processor”.

• TargetMachine = Carrier ICE/WINeZ/WIN2K ARM• Processor = PXA270

2013/9/17

Page 18: Computer System Laboratory

/ 2118Lab 1

Create a PXA270 Project in Domingo (3/4)•Step4: configure “peripheral configuration manager (PCM)”.

• Import creator_pxa270.pcm.• Click “To Initialize PCM when Connect” and “Ok”.

2013/9/17

Page 19: Computer System Laboratory

/ 2119Lab 1

Create a PXA270 Project in Domingo (4/4)•Now, you can see a project window in Domingo for our target board Creator XScale PXA270.

2013/9/17

Page 20: Computer System Laboratory

/ 2120Lab 1

Misc•We collect some common commands in Linux and questions in course website.• http://rswiki.csie.org/dokuwiki/courses:102_1:csl_common_ins_errors• If you have any problems, please refer to the document first.

2013/9/17

Page 21: Computer System Laboratory

/ 2121Lab 1

Lab Requirement & Bonus•Show that you can share files between Ubuntu and Windows.

•Bonus:Answer the question of lab1 on RSWiki CSL course website.Write it in your report.

•Please send your report to both TAs.• Please use this title format: [CSL] G# Lab# Ver#• E.g., [CSL] G15 Lab1 Ver1

2013/9/17