Professional Documents
Culture Documents
(20110713) Lec 10 - eyeOS
(20110713) Lec 10 - eyeOS
eyeOS
Cmj 2011.07.13
SSLab
Agenda
Installation Programming
INSTALLATION
Download
http://www.eyeos.org/ http://eyeos.org/installation_manual.pdf http://beta.my.eyeos.org/
Requirement
Requirements
Apache HTTP Server 2.x MySQL-server and MySQL-client 5.x php 5.2, or higher
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
INSTALLATION
MySQL
Logging in by root
mysql u root -p
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
INSTALLATION
Step (1)
http://localhost/eyeos/install
Step (2)
Step (3)
Step (4)
Result
Result
PROGRAMMING
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.
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.
Model
eyeOS
<?PHP fun1() { .} fun1() { .} fun1() { .} ?>
Calculator
CASE
Result
XML
Description
Setting
JavaScript
Main function
Definition
JavaScript (cont.)
Basic widget
Layout
JavaScript (cont.)
Button
Execution
JavaScript (cont.)
Draw
Calculator Login
CASE
Result
XML
JavaScript
JavaScript (cont.)
JavaScript (cont.)
Information
Parameter
Callback
PHP
Initialization
PHP (cont.)
CASE
JavaScript
calculator.js
JavaScript (cont.)
Callback