2014年4月3日木曜日

phpでscssを使う

http://qiita.com/MasatoYoshioka@github/items/b8f07b7ef398f4baba05

2013年7月10日水曜日

chef knife-solo インストール

$sudo gem install knife-solo --pre

Successfully installed knife-solo-0.3.0.pre5
1 gem installed

成功

2013年7月9日火曜日

vagrant 設定

$vagrant init
$vi Vagrantfile
$ diff Vagrantfile Vagrantfile.org
112,116d111
< Vagrant::Config.run do |config|
< config.vm.box = "base"
< config.vm.network:hostonly,
< "192.168.50.12"
< end

$vagrant up
#ログインする
$vagrant ssh

成功

vagrant install

chefを利用するためにvagrantをインストールする

Mac OS X 10.7.5

$sudo gem install vagrant
$vagrant box add base http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box

Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.

error
#vagrantのヴァージョンを確認
$ vagrant -v
Vagrant version 1.0.7

調べた
http://nushu123.blogspot.jp/2013/06/vagrant-box-addfailed-to-untar-box.html
https://github.com/mitchellh/vagrant/issues/977

VAGRANT_HOME??

$VAGRANT_HOME=/vagrant/path
$export VARGRANT_HOME
もう一回実行
Failed to untar the box file. This is usually because you're
attempting to add a box that isn't a valid box file. Please
double check that the box file is properly packaged.
同じエラー

http://zakuni.blogspot.jp/2013/06/macvagrant.html
http://docs.vagrantup.com/v2/installation/

------

Gem Install?

Vagrant 1.0.x had the option to be installed as a RubyGem. This installation method has been removed for installers and packages only.
------
アンインストール
$sudo gem uninstall vagrant

vagrant 再インストール
http://downloads.vagrantup.com/tags/v1.2.2/
Vagrant-1.2.2.dmg
インストール

$ which vagrant
/usr/bin/vagrant

$ vagrant -v
Vagrant version 1.2.2

再度実行
Successfully added box 'base' with provider 'virtualbox'!
成功

2013年6月26日水曜日

codeIgniter インストール

$wget http://ellislab.com/codeigniter/download
$unzip CodeIgniter_2.1.3.zip

$mv CodeIgniter_2.1.3 webapp

$cd webapp
$mkdir htdocs

apacheのDocumentRootをhtdocsにする

#systemとapplicationのパスを変更
vi index.php
$ diff index.php index.php.org
59c59
<       $system_path = '../system';
---
>       $system_path = 'system';
75c75
<       $application_folder = '../application';
---
>       $application_folder = 'application';

httpd.confの設定
<IfModule rewrite_module>
    RewriteEngine On
    RewriteCond $1 !^/(index\.php|images/js/css/robot\.txt|favicon\.ico)
    RewriteRule ^(.*)$ /index.php$1 [R,L]
</IfModule>


2013年6月21日金曜日

PNP4 install

PNP4 install

$wget http://sourceforge.net/projects/pnp4nagios/files/latest/download
$ tar -zxmf pnp4nagios-0.6.21.tar.gz
$cd pnp4nagios-0.6.21/
$ ./configure \
> --prefix=/usr/local/nagios/pnp4nagios \
> --with-nagios-user=nagios\
> --with-nagios-group=nagios \
> --with-httpd-conf=/home/httpd/conf

-----
configure: error:  is a directory! PNP needs the Path to the rrdtool binary!
-----
#yum -y install rrdtool

retry

$make all
#make install
#make install-webconf
#make install-config
#make install-init

cd /usr/local/nagios/pnp4nagios/etc
#for file in *.cfg-sample; do mv -i $file `echo $file|sed "s/-sample//g"`; done



2013年6月20日木曜日

nrpe インストール

nrpe インストール

$wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz

$tar -zxmf nrpe-2.14.tar.gz
$cd nrpe-2.14
$./configure --with-nrpe-user=nagios --with-nrpe-group=nagios
$make
#make install
#cp init-script /etc/init.d/nrpe
#cp sample-config/nrpe.cfg /usr/local/nagios/etc/nrpe.cfg
#chmod 755 /etc/init.d/nrpe
# chkconfig --add nrpe
# chkconfig --list | grep nrpe

nrpe            0:off   1:off   2:on    3:on    4:on    5:on    6:off