Archive for May 18th, 2018
18
May
SYS02 setup env
# yum groupinstall “Development tools”
# yum install epel-release
mariadb.repo
https://downloads.mariadb.org/mariadb/repositories/#mirror=nethub&distro=CentOS&distro_release=centos6-amd64–centos6&version=10.2
#yum install MariaDB-server MariaDB-client MariaDB-devel
# mysql_secure_installation
# For CentOS/RHEL/Scientific Linux 6 i386 or x86_64 #
wget http:
//rpms
.famillecollet.com
/enterprise/remi-release-6
.rpm
# rpm -ivh remi-release-6.rpm
#yum remove php #yum remove php-common
yum-config-manager --enable remi-php54
#yum install php php-mysql php-dom php-devel php-snmp re2c
download https://github.com/phalcon/cphalcon/releases/tag/phalcon-v2.0.13
unzip cphalcon-master.zip
#cd build
#./install
===================== radius OTP perl ====================
====================== Devtools2 for CentOS ======================
PHP-CPP
https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY
#wget 'https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY/archive/master.zip' #unzip php-cpp-master.zip #cd PHP-CPP-LEGACY-master/
#make; make install
LibSSH
#wget 'https://git.libssh.org/projects/libssh.git/snapshot/master.zip'
download v0.7.5 at https://git.libssh.org/projects/libssh.git/
#mv master.zip libssh-master.zip #unzip libssh-master.zip #cd master/build
#cmake -DCMAKE_INSTALL_PREFIX=/usr ..
#make ; make install
CNetconf
https://github.com/CESNET/libnetconf
#wget 'https://github.com/CESNET/libnetconf/archive/master.zip'
https://github.com/CESNET/libnetconf/tree/0.10.x
#mv master.zip netconf-master.zip #unzip netconf-master.zip
#yum install libxml2-devel libxslt-devel curl-devel
# ./configure --prefix=/usr
#vi src/ssh.c
int strict=0;
ssh_options_set(retval->ssh_sess, SSH_OPTIONS_STRICTHOSTKEYCHECK, &strict);
case NC_SSH_AUTH_INTERACTIVE:
VERB("Keyboard-interactive authentication");
break;
#make ; make install
=========== CENTOS 7 ============
install mariadb 5.5 , remi php70 , php-cpp
cnetconf branch 0.10.x not the latest one
========== CENTOS 6 ===============
cd /root/ yum -y install epel-release yum -y install centos-release-scl yum -y install devtoolset-6 yum -y install MariaDB-server MariaDB-client MariaDB-devel /etc/init.d/mysql start mysql_secure_installation export http_proxy=http://10.103.19.251:3128 export https_proxy=http://10.103.19.251:3128 wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -ivh remi-release-6.rpm yum remove php yum remove php-common yum-config-manager --enable remi-php54 yum -y install php php-mysql php-dom php-devel php-snmp re2c wget https://github.com/phalcon/cphalcon/archive/phalcon-v2.0.13.tar.gz tar -xvf phalcon-v2.0.13.tar.gz cd cphalcon-phalcon-v2.0.13/ cd build/ ./install cd /root/ wget 'https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY/archive/master.zip' mv master.zip PHP-CPP-LEGACY.zip unzip PHP-CPP-LEGACY.zip cd PHP-CPP-LEGACY-master/ make make install ldconfig cd /root/ wget https://git.libssh.org/projects/libssh.git/snapshot/libssh-0.7.5.tar.gz tar -xvf libssh-0.7.5.tar.gz cd libssh-0.7.5 mkdir build cd build/ yum -y install cmake cmake -DCMAKE_INSTALL_PREFIX=/usr .. make make install ldconfig cd /root/ wget https://github.com/CESNET/libnetconf/archive/0.10.x.zip unzip 0.10.x.zip cd libnetconf-0.10.x/ yum -y install libxml2-devel libxslt-devel curl-devel ./configure --prefix=/usr make make install