ubuntu安裝花生殼2.0
安裝gcc-c++
$sudo apt-get install build-essential
解壓
$sudo tar -zxvf phddns-2.0.3.16858.tar.gz
$cd phddns-2.0.3.16858
安裝過程中最好使用高級管理員模式,
$sudo su
# aclocal
# autoconf
# automake
# ./configure
# make
# cd src
# ls -l phddns
-rwxr-xr-x 1 root root 42700 2011-09-27 11:00 phddns
# ./phddns
輸入服務器地址,如無特殊情況可使用默認值
Enter server address(press ENTER use phlinux3.oray.net):
輸入您的Oray帳號名稱
Enter your Oray account:
對應的Oray帳號密碼
Password:
選擇幫定的網卡,如無特殊,默認即可
Network interface(s):
eth0:192.168.141.18
lo:127.0.0.1
Choose one(default eth0):
選擇日誌保存到哪個文件
Log to use(default /var/log/phddns.log):
保存配置文件,選擇yes則直接保存到/etc/phlinux.conf,輸入other可以指定文件
Save to configuration file (/etc/phlinux.conf)?(yes/no/other):
接下來程序將已交互模式開始運行
192.168.141.18
NIC bind success
OnStatusChanged okConnecting
OnStatusChanged okDomainListed
OnDomainRegistered skyvense22.gicp.net
OnStatusChanged okDomainsRegistered
UserType: 0
看到上面這些就表示登錄成功,這個時候可以按ctrl+c先退出程序
將phddns拷貝到你希望的位置
# cp phddns /usr/bin/
以後臺模式啓動花生殼並檢查運行情況
# /usr/bin/phddns -c /etc/phlinux.conf -d
phlinux started as daemon!
# tail /var/log/phddns.log
退出花生殼
查看進程ID
# ps -A | grep phddns
19049 ? 00:00:00 phddns
讓後臺進程退出
# kill -9 19049
將花生殼加到系統啓動時運行
# vi /etc/rc.local
在文件的末尾加上一行:/usr/bin/phddns -c /etc/phlinux.conf -d