Skip to content

Instantly share code, notes, and snippets.

@nikuuchi
Last active December 17, 2015 01:58
Show Gist options
  • Select an option

  • Save nikuuchi/5531898 to your computer and use it in GitHub Desktop.

Select an option

Save nikuuchi/5531898 to your computer and use it in GitHub Desktop.
ase.sh

ADS のインストール

  1. ase.shを実行する
  2. AssuranceScriptEditor/client/config.php にURLを記入
  3. サーバ側にMySQLの設定

MySQLにユーザの作成

$ mysql -u root -p

mysql> GRANT ALL PRIVILEGES ON *.* TO ユーザー名@localhost IDENTIFIED BY 'パスワード';

AssuranceScriptEditor/server/config.k に、作成したMySQLのユーザ、パスワードの設定

AssuranceScriptEditor/server/misc/ASEserver.sqlの実行

$ mysql -u root -p < ASEserver.sql

Apacheの設定

/etc/apache2/sites-enabled/000-default へ、以下のを追加する

	<Directory /var/www/dcase/>
		AddHandler cgi-script .cgi
		Options ExecCGI Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>
#!/bin/bash
cd $HOME
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install vim tmux build-essential cmake cmake-curses-gui python-setuptools git tig subversion curl tasksel -y
sudo tasksel install lamp-server
sudo tasksel install openssh-server
sudo apt-get install libmysqlclient-dev libcurl4-openssl-dev libpcre3-dev librsvg2-bin ttf-takao -y
git clone https://github.com/konoha-project/AssuranceScriptEditor.git
git clone https://github.com/konoha-project/konoha3.git
# Konoha
mkdir -p $HOME/konoha3/build
cd $HOME/konoha3/build
cmake ..
make -j2
sudo make install
cd $HOME
# ADS
## Client
sudo ln -s $HOME/AssuranceScriptEditor/client /var/www/dcase
cd $HOME/AssuranceScriptEditor/client
sudo ln -s ../server/application/api ./cgi
cp config.php.sample config.php
## Server
cd $HOME/AssuranceScriptEditor/server
sudo mkdir -p /usr/local/lib/konoha/3.0/package/Deos.DCaseCloud
sudo cp DCaseCloud_glue.k /usr/local/lib/konoha/3.0/package/Deos.DCaseCloud
cd $HOME/AssuranceScriptEditor/server/application/api
cp config.k.sample config.k
@nikuuchi
Copy link
Author

nikuuchi commented May 7, 2013

TODO
ASEのIP設定(インストールスクリプトを作成?)
Apacheの設定
mysqlのユーザとテーブルの設定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment