Search
AND
OR
Front page
|
Reload
|
New
|
List of pages
|
Search
|
Recent changes
|
Help
product/pandacloud
Main Menu
TOP
Readme
Contents
Download
recent(20)
2023-10-16
noritsuna
2022-03-17
product
2019-01-06
aboutus
member
yamaz
2017-07-22
50usd_ground_station
2016-10-31
Space Probe Contest 2016
hirotaka
2016-08-15
Ene-1 GP SUZUKA KV-BIKE 2016
2014-07-18
slime lamp
2014-01-22
product/ScanningDrone
2013-09-06
product/MakerStyleGoogleGlass
2013-05-23
product/TreasureHuntingRobot
2012-12-27
product/nebula
2012-02-15
product/AutoChasingTurtle
product/pandacloud
2007-11-22
schedule
2007-10-11
sipropproject
2007-10-09
yusuke
masaxmasa
Total:0/Today:0
Start:
[[FrontPage]]
*What's this? [#t2517dfb]
-[[Google App Engine:http://code.google.com/appengine]] r...
&ref(Structure.png);
***Materials [#rb9533c4]
-Presentation material
--[[On slideshare:http://www.slideshare.net/noritsuna/pan...
-Video
--[[On YouTube:http://www.youtube.com/watch?v=pSGNf0KZ71c]]
-Twitter
--[[Linaro:https://twitter.com/#!/LinaroConnect/status/13...
-Blog
--[[Linaro Blog:http://www.linaro.org/linaro-blog/2011/11...
&BR;
&BR;
&BR;
-Pictures~
&ref(server_front.jpg);
&ref(server_side.jpg);~
&ref(codereview.png);
&BR;
*Why? [#dd51ec12]
-This is a very powersaving server!
--The powersaving is the most important issue for server.~
&ref(powersaving.png);
*Using hardwares & softwares [#k6673c1e]
***Hardwares [#r1276cb5]
-[[Pandaboard x 6:http://pandaboard.org/]]
--[[Linaro/Ubuntu:http://www.linaro.org/downloads/]]
***Middleware [#v367ba79]
-[[Google App Engine:http://code.google.com/appengine]]
--Sample GAE Application
---[[Rietveld:http://code.google.com/intl/ja/appengine/ar...
---Code review system(ITS) for GAE
--Datastore Backend
---[[MySQL:http://www.mysql.com]]
--Memory cache
---[[Memcached:http://memcached.org]]
--Task Queue / Messaging
---[[RabbitMQ:http://www.rabbitmq.com]]
---[[Ejabberd:http://www.process-one.net/en/ejabberd]]
--HTTP Server via FastCGI
---[[NGINX:http://nginx.net/]]
---[[Apache2:http://httpd.apache.org/]]
---[[FastCGI:http://www.fastcgi.com]]
--Supervisor
---[[Supervisor:http://supervisord.org]]
--Load balancer
---Apache2?s load balancer
*How to setup [#b4562a9c]
+Setup Linaro/Ubuntu
++Please look at [[Linaro's homepage:http://www.linaro.or...
+Install softwares needed by [[TyhoonAE:http://code.goog...
--You have to install as ''NOT'' root user.
---OpenJDK 6
---MySQL
---Python
---Erlang
---Apache2 & proxy
---gettext
---xsltproc
---expat1
++apt-get commands:
$ sudo apt-get update
$ sudo apt-get install openjdk-6-jdk mysql-server python...
+Build [[TyhoonAE:http://code.google.com/p/typhoonae/]]
--You have to install as ''NOT'' root user.
++Download [[typhoonae-buildout-0.2.0:http://typhoonae.go...
++Unzip to ''/home/linaro/tyhoonae''
++Edit 'buildout.cfg"
+++pcre's URL is wrong. Change to "http://vps.googlecode....
++Exec following commands:
$ sudo python bootstrap.py
$ ./bin/buildout
---If you have an error & stop command, you shuold try fo...
+++Stop "generate_app" part
---Edit "./parts/rabbitmq/Makefile"~
Change line:
From:
TARGETS=$(EBIN_DIR)/rabbit.app $(INCLUDE_DIR)/rabbit_fra...
To:
TARGETS=$(INCLUDE_DIR)/rabbit_framing.hrl $(BEAM_TARGETS)
Delete line:
$(EBIN_DIR)/rabbit.app: $(EBIN_DIR)/rabbit_app.in $(BEAM...
escript generate_app $(EBIN_DIR) $@ < $<
+++Stop "checking erl" part
--Edit "./eggs/rod.recipe.ejabberd-1.1.3-py2.7.egg/rod/re...
Delete line:
retcode = subprocess.call(cmd)
if retcode != 0:
raise Exception("building ejabberd failed")
--Change files:
wget http://www.noritsuna.com/download/buildout.cfg
wget http://www.noritsuna.com/download/ejabberd-2.1.5.ta...
cp ejabberd-2.1.5.tar.gz ./downloads/
+++If it stops other part, you shuold try again "./bin/bu...
+Setup configs
++[[TyhoonAE:http://code.google.com/p/typhoonae/]]
+++Change "typhoonae.cfg"
datastore = mysql
mysql_db = mysql
mysql_host = [MySQL server's IP Address]
mysql_passwd = [MySQL root's password]
mysql_user = root
++MySQL
+++Change "/etc/mysql/my.ini" ((This setting has some sec...
Delete line:
bind-address = 127.0.0.1
+++Change grant connection limit
mysql -u root -p
grant all on *.* to root@"[your network address].%" iden...
Ex.
grant all on *.* to root@"192.168.1.%" identified by 'pa...
+++If you can't connet to MySQL, you have to change MySQL...
Add to "./eggs/MySQL_python-1.2.3c1-py2.7-linux-armv7l.eg...
kwargs2['client_flag'] = client_flag
kwargs2['db'] = 'mysql'
kwargs2['host'] = '[MySQL server's IP address]'
kwargs2['user'] = 'root'
kwargs2['passwd'] = '[MySQL root password]'
++Apache
+++Enable some mobules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balan...
LoadModule proxy_connect_module modules/mod_proxy_connec...
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
+++Edit "/etc/apache2/sites-available/001-default"~
Add following lines:
ProxyRequests Off
ProxyPass / balancer://cluster/ lbmethod=byrequests
ProxyPassReverse / balancer://cluster/
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
<Proxy balancer://cluster/>
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
</Proxy>
***Install GAE application [#h89ced0a]
-Ex.Rietveld
--Get Rietveld for panda
wget http://www.noritsuna.com/download/rietveld-panda.ta...
--Install Rietveld
cd [TyphoonAE dir]
./bin/apptool --datastore=mysql [Rietveld unziped dir]/...
***Manage GAE server [#i7d746da]
-Start
./bin/supervisord
-Shutdown
./bin/supervisorctl shutdown
-Check status
./bin/supervisorctl
*Info [#kd2988ad]
***Contact us [#x3299774]
-info
--info atmark siprop.org
-Noritsuna
--noritsuna atmark siprop.org
End:
[[FrontPage]]
*What's this? [#t2517dfb]
-[[Google App Engine:http://code.google.com/appengine]] r...
&ref(Structure.png);
***Materials [#rb9533c4]
-Presentation material
--[[On slideshare:http://www.slideshare.net/noritsuna/pan...
-Video
--[[On YouTube:http://www.youtube.com/watch?v=pSGNf0KZ71c]]
-Twitter
--[[Linaro:https://twitter.com/#!/LinaroConnect/status/13...
-Blog
--[[Linaro Blog:http://www.linaro.org/linaro-blog/2011/11...
&BR;
&BR;
&BR;
-Pictures~
&ref(server_front.jpg);
&ref(server_side.jpg);~
&ref(codereview.png);
&BR;
*Why? [#dd51ec12]
-This is a very powersaving server!
--The powersaving is the most important issue for server.~
&ref(powersaving.png);
*Using hardwares & softwares [#k6673c1e]
***Hardwares [#r1276cb5]
-[[Pandaboard x 6:http://pandaboard.org/]]
--[[Linaro/Ubuntu:http://www.linaro.org/downloads/]]
***Middleware [#v367ba79]
-[[Google App Engine:http://code.google.com/appengine]]
--Sample GAE Application
---[[Rietveld:http://code.google.com/intl/ja/appengine/ar...
---Code review system(ITS) for GAE
--Datastore Backend
---[[MySQL:http://www.mysql.com]]
--Memory cache
---[[Memcached:http://memcached.org]]
--Task Queue / Messaging
---[[RabbitMQ:http://www.rabbitmq.com]]
---[[Ejabberd:http://www.process-one.net/en/ejabberd]]
--HTTP Server via FastCGI
---[[NGINX:http://nginx.net/]]
---[[Apache2:http://httpd.apache.org/]]
---[[FastCGI:http://www.fastcgi.com]]
--Supervisor
---[[Supervisor:http://supervisord.org]]
--Load balancer
---Apache2?s load balancer
*How to setup [#b4562a9c]
+Setup Linaro/Ubuntu
++Please look at [[Linaro's homepage:http://www.linaro.or...
+Install softwares needed by [[TyhoonAE:http://code.goog...
--You have to install as ''NOT'' root user.
---OpenJDK 6
---MySQL
---Python
---Erlang
---Apache2 & proxy
---gettext
---xsltproc
---expat1
++apt-get commands:
$ sudo apt-get update
$ sudo apt-get install openjdk-6-jdk mysql-server python...
+Build [[TyhoonAE:http://code.google.com/p/typhoonae/]]
--You have to install as ''NOT'' root user.
++Download [[typhoonae-buildout-0.2.0:http://typhoonae.go...
++Unzip to ''/home/linaro/tyhoonae''
++Edit 'buildout.cfg"
+++pcre's URL is wrong. Change to "http://vps.googlecode....
++Exec following commands:
$ sudo python bootstrap.py
$ ./bin/buildout
---If you have an error & stop command, you shuold try fo...
+++Stop "generate_app" part
---Edit "./parts/rabbitmq/Makefile"~
Change line:
From:
TARGETS=$(EBIN_DIR)/rabbit.app $(INCLUDE_DIR)/rabbit_fra...
To:
TARGETS=$(INCLUDE_DIR)/rabbit_framing.hrl $(BEAM_TARGETS)
Delete line:
$(EBIN_DIR)/rabbit.app: $(EBIN_DIR)/rabbit_app.in $(BEAM...
escript generate_app $(EBIN_DIR) $@ < $<
+++Stop "checking erl" part
--Edit "./eggs/rod.recipe.ejabberd-1.1.3-py2.7.egg/rod/re...
Delete line:
retcode = subprocess.call(cmd)
if retcode != 0:
raise Exception("building ejabberd failed")
--Change files:
wget http://www.noritsuna.com/download/buildout.cfg
wget http://www.noritsuna.com/download/ejabberd-2.1.5.ta...
cp ejabberd-2.1.5.tar.gz ./downloads/
+++If it stops other part, you shuold try again "./bin/bu...
+Setup configs
++[[TyhoonAE:http://code.google.com/p/typhoonae/]]
+++Change "typhoonae.cfg"
datastore = mysql
mysql_db = mysql
mysql_host = [MySQL server's IP Address]
mysql_passwd = [MySQL root's password]
mysql_user = root
++MySQL
+++Change "/etc/mysql/my.ini" ((This setting has some sec...
Delete line:
bind-address = 127.0.0.1
+++Change grant connection limit
mysql -u root -p
grant all on *.* to root@"[your network address].%" iden...
Ex.
grant all on *.* to root@"192.168.1.%" identified by 'pa...
+++If you can't connet to MySQL, you have to change MySQL...
Add to "./eggs/MySQL_python-1.2.3c1-py2.7-linux-armv7l.eg...
kwargs2['client_flag'] = client_flag
kwargs2['db'] = 'mysql'
kwargs2['host'] = '[MySQL server's IP address]'
kwargs2['user'] = 'root'
kwargs2['passwd'] = '[MySQL root password]'
++Apache
+++Enable some mobules:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balan...
LoadModule proxy_connect_module modules/mod_proxy_connec...
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
+++Edit "/etc/apache2/sites-available/001-default"~
Add following lines:
ProxyRequests Off
ProxyPass / balancer://cluster/ lbmethod=byrequests
ProxyPassReverse / balancer://cluster/
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
<Proxy balancer://cluster/>
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
BalancerMember http://[Panda server's IP address]/ loadf...
</Proxy>
***Install GAE application [#h89ced0a]
-Ex.Rietveld
--Get Rietveld for panda
wget http://www.noritsuna.com/download/rietveld-panda.ta...
--Install Rietveld
cd [TyphoonAE dir]
./bin/apptool --datastore=mysql [Rietveld unziped dir]/...
***Manage GAE server [#i7d746da]
-Start
./bin/supervisord
-Shutdown
./bin/supervisorctl shutdown
-Check status
./bin/supervisorctl
*Info [#kd2988ad]
***Contact us [#x3299774]
-info
--info atmark siprop.org
-Noritsuna
--noritsuna atmark siprop.org
Page: