标签:安装
Ubuntu 12.04.3 Server LTS amd64
https://github.com/csirtgadgets/massive-octo-spice/wiki/PlatformUbuntu
$ curl -Ls https://raw.githubusercontent.com/csirtgadgets/massive-octo-spice/master/hacking/platforms/easybutton_curl.sh | sudo bash -
$ sudo chown `whoami`:`whoami` ~/.cif.yml
其中第二句sudo chown
whoami:
whoami~/.cif.yml
在easybutton_curl>sh
中有提到,因此安装使用第一句就ok了。
##some code in easy_button_curl.sh
case $OS in
"Ubuntu" )
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install -y htop build-essential automake autoconf git
git clone https://github.com/csirtgadgets/massive-octo-spice.git -b $BRANCH
cd massive-octo-spice
bash autogen.sh
sudo bash ./hacking/platforms/easybutton.sh
更新无法安装后,可能是源的问题,最后使用了阿里源。
Ubuntu.sh
中geoipupdate
无法执行## some code in Ubuntu.sh
apt-get update
apt-get install -y monit geoipupdate ........
报错:函数依赖无法安装,需要版本怎样怎样。aptitude
对依赖的支持较好。使用aptitude
解决依赖问题。
解决方案:
Installing on Ubuntu
MaxMind provides a PPA for recent version of Ubuntu. To add the PPA to your sources, run:
$ sudo add-apt-repository ppa:maxmind/ppa
Then install geoipupdate by running:
$ sudo aptitude update
$ sudo aptitude install geoipupdate
cpanm
无法安装(自己安装上cpanm
就成。)echo ‘installing cpanm...‘
curl -L https://cpanmin.us | sudo perl - App::cpanminus
报错:
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....
done.
done.
installing cpanm...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (60) SSL certificate problem: certificate is not yet valid
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn‘t adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you‘d like to turn off curl‘s verification of the certificate, use
the -k (or --insecure) option.
原因:证书验证出错,实际上并没有添加上证书。
解决方案:
curl -Lk https://cpanmin.us | sudo perl - App::cpanminus
cpanm
还是无法安装。使用手动安装解决此问题,换了地址。$ wget http://xrl.us/cpanm --no-check-certificate -O /sbin/cpanm
$ chmod +x /sbin/cpanm
cpanm ZMQx::Class
无法安装,源文件中有--force
选项。多安装几次就强制安装上了。提示failed,but installed
使用cpanm
安装DateTime模块
依赖无法安装。多人反映此问题。
解决方案:不使用cpanm
安装,使用apt
安装。
sudo apt-get install libdatetime-perl
echo ‘restarting apache...‘
service apache2 restart
原因:内存1G根本不够用,卡死。
解决方案:调成2G,解决问题。
sh
脚本要有一定的阅读能力。期间多次改写Ubuntu.sh
文件。Ubuntu.sh
必须在根目录下执行,因为sh
中有cd ../../../
语句。标签:安装
原文地址:http://blog.csdn.net/bugmeout/article/details/46664077