Incredible PBXという交換機システムの構築メモ

raspberry pi 2となるべく大きなサイズのmicro sdカード(64ギガとか)を用意する。
micro sdカードにはraspberry pi用のos Raspbian Wheezy(Raspbian Jessieだとインストール時にエラーとなる)を書き込み、raspberry pi 2に挿入して起動する。raspi-config画面が表示されるので、micro sdのサイズを最大容量に指定する。設定したら次にHostNameをオプションのA2でincrediblepi2に書き換える。終了するとrebootされる。raspberry piのアップデートとかは後で行われるのでここでは不要だ。
再起動後、ネットワークの設定を変更して、ipアドレスを固定(static)してしまう。

nano /etc/network/interfaces

を実行して書き換えてしまう。

auto lo

iface lo inet loopback
iface eth0 inet static

address 192.168.100.200
netmask 255.255.255.0
gateway 192.168.100.1
network 192.168.100.0
broadcast 192.168.100.255

保存して再起動する。

続いて、rootのパスワードを変更する。パスワードはセキュリティの高いほうが良いので、英大文字小文字、数字、記号の混在が好ましい。
私は以下のurlでパスワードを生成している。16桁のHigh Securityを生成すればまず侵入される可能性は無い。
http://www.graviness.com/temp/pw_creator/

sudo passwd root

再起動したらrootと先に設定したパスワードでログインして以下のコマンドを1行ずつコピペして実行する

cd /root
wget http://incrediblepbx.com/incrediblepbx13-12.3.raspbian.tar.gz
tar zxvf incrediblepbx13-12.3.raspbian.tar.gz
rm -f incrediblepbx13-12.3.raspbian.tar.gz
./IncrediblePBX13-12.3-raspbian.sh

最後の./IncrediblePBX13-12.3-raspbian.sh+enterキーを押すと画面にインストールして良いか?を聞いてくるので問題なければenterキーを押す

この後、raspberry のプログラムを最新版に更新する。更新後にいったん再起動されるので、再起動したら再度

./IncrediblePBX13-12.3-raspbian.sh

を入力してenterキーを押す。
再び画面に

SUCCESS: Incredible PBX 13 installer detected Raspbian platform.
UPDATED: Your Raspbian server has been updated successfully.
We now are ready to begin the Incredible PBX 13 installation.

Your Current WINDOW SIZE: Columns=80 Lines=24
MAKE SURE WINDOW SIZE IS AT LEAST 80 x 24 or install fails!

Press Enter to proceed at your own risk...

の表示がされるのでenterキーを押す

If you do not agree with these terms and conditions of use, press Ctrl-C now.
Otherwise, press Enter to proceed at your own risk...

.-.                          .-. _ .-.   .-.            .---. .---. .-..-.
: :                          : ::_;: :   : : v13-12.3  : .; :: .; :: `' :
: :,-.,-. .--. .--.  .--.  .-' :.-.: `-. : :   .--.     :  _.':   .' `  '
: :: ,. :'  ..': ..'' '_.'' .; :: :' .; :: :_ ' '_.'    : :   : .; :.'  `.
:_;:_;:_;`.__.':_;  `.__.'`.__.':_;`.__.'`.__;`.__.'    :_;   :___.':_;:_;
Copyright (c) 2005-2015, Ward Mundy & Associates LLC. All rights reserved.

Installing The Incredible PBX. Please wait. This installer runs unattended.
Consider a modest donation to Nerd Vittles while waiting. Return in 30 minutes.
Do NOT press any keys while the installation is underway. Be patient!

の画面が表示されIncrediblePBX13のインストールが開始される。

基本的にはインストールが開始されたら終了するまで何もする必要はない。

参照ホームページ http://nerdvittles.com/?p=14787