+ All Categories
Home > Documents > 雲端計算 Cloud Computing

雲端計算 Cloud Computing

Date post: 02-Jan-2016
Category:
Upload: georgia-steele
View: 62 times
Download: 7 times
Share this document with a friend
Description:
雲端計算 Cloud Computing. Lab - EyeOS. Agenda. Installation Programming. Download Prepare Work Start Install. Installation. Download. http://www.eyeos.org/ http://eyeos.org/installation_manual.pdf http://beta.my.eyeos.org/. Requirement. Requirements Apache HTTP Server 2.x - PowerPoint PPT Presentation
Popular Tags:
39
雲雲雲雲 Cloud Computing Lab - EyeOS
Transcript
Page 1: 雲端計算 Cloud Computing

雲端計算Cloud Computing

Lab - EyeOS

Page 2: 雲端計算 Cloud Computing

Agenda

• Installation

• Programming

Page 3: 雲端計算 Cloud Computing

INSTALLATION

Download Prepare WorkStart Install

Page 4: 雲端計算 Cloud Computing

Download

• http://www.eyeos.org/• http://eyeos.org/installation_manual.pdf• http://beta.my.eyeos.org/

Page 5: 雲端計算 Cloud Computing

Requirement

• Requirements Apache HTTP Server 2.x MySQL-server and MySQL-client 5.x php 5.2, or higher

Page 6: 雲端計算 Cloud Computing

Test environment

• LAMP Kubuntu 10.10 with kernel 2.6.35-22-generic Apache/2.2.16 (Ubuntu) MySQL 5.1.49-1ubuntu8 (Ubuntu) PHP 5.3.3-1ubuntu9

Page 7: 雲端計算 Cloud Computing

INSTALLATION

Download Prepare WorkStart Install

Page 8: 雲端計算 Cloud Computing

MySQL

• Logging in by root mysql –u root -p

• Add a new database Create DATABASE eyeos

• Add a new user for eyeOS GRANT ALL PRIVILEGES on eyeos.* TO eyeos

IDENTIFIED by ‘PASSWORD’

Page 9: 雲端計算 Cloud Computing

And more

• Extract the download file.• Move to root directory of Apache2• Change the privileges

sudo chown –R www-data.www-data /var/www/eyeos

Page 10: 雲端計算 Cloud Computing

INSTALLATION

Download Prepare WorkStart Install

Page 11: 雲端計算 Cloud Computing

Step (1)

• http://localhost/eyeos/install

Page 12: 雲端計算 Cloud Computing

Step (2)

Recommand:install all items

Page 13: 雲端計算 Cloud Computing

Step (3)

Page 14: 雲端計算 Cloud Computing

Step (4)

Username and password you set before

Page 15: 雲端計算 Cloud Computing

Result

Page 16: 雲端計算 Cloud Computing

Result

Page 17: 雲端計算 Cloud Computing

PROGRAMMING

Page 18: 雲端計算 Cloud Computing

eyeOS 2.0

• eyeOS 2.x is written by PHP, XML, and JavaScript.• PHP

Major functionality for custom service. Background computation.

• XML Service description.

• JavaScript Web interface. Communication between user and server.

qooxdoo

Page 19: 雲端計算 Cloud Computing

Cases

• Every service in eyeOS are applications. Application interface May not use any background resource.

• Calculator Only XML and JavaScript. Computation on client.

• Login Simplified of web skin. Connect to database. New user or authentication.

Page 20: 雲端計算 Cloud Computing

Model

Service.js

app.fun1(); app.fun1();…app.drawGUI(); XML

<meta> ….</meta>

<?PHP fun1() {….} fun1() {….} fun1() {….}?>

callback

eyeOS

Page 21: 雲端計算 Cloud Computing

CASECalculator

Page 22: 雲端計算 Cloud Computing

Result

Page 23: 雲端計算 Cloud Computing

XML

Description

Setting

Page 24: 雲端計算 Cloud Computing

JavaScript

Main function

Definition

Page 25: 雲端計算 Cloud Computing

JavaScript (cont.)

Basic widget

Layout

Page 26: 雲端計算 Cloud Computing

JavaScript (cont.)

Button

Execution

Page 27: 雲端計算 Cloud Computing

JavaScript (cont.)

Draw

Page 28: 雲端計算 Cloud Computing

CASE

CalculatorLogin

Page 29: 雲端計算 Cloud Computing

Result

Page 30: 雲端計算 Cloud Computing

XML

Page 31: 雲端計算 Cloud Computing

JavaScript

Page 32: 雲端計算 Cloud Computing

JavaScript (cont.)

Page 33: 雲端計算 Cloud Computing

JavaScript (cont.)

Callback

Parameter

Information

Page 34: 雲端計算 Cloud Computing

PHP

Initialization

Page 35: 雲端計算 Cloud Computing

PHP (cont.)

Page 36: 雲端計算 Cloud Computing

CASE

CalculatorLogin Caution

Page 37: 雲端計算 Cloud Computing

JavaScriptcalculator.js

Page 38: 雲端計算 Cloud Computing

JavaScript (cont.)

Page 39: 雲端計算 Cloud Computing

Callback


Recommended