美文网首页
centos7 install script

centos7 install script

作者: Helen_Cat | 来源:发表于2018-09-16 10:36 被阅读35次
#! /bin/bash
yum update -y
yum -y groupinstall "Development tools"

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel docker-io postgresql golang maven docker

yum -y install automake cmake  golang libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel  socat htop 

yum -y install wget lrzsz nano nc telnet httpd ntp mod_ssl readline-devel openssl-devel ant
yum -y install cyrus-sasl-lib.x86_64 cyrus-sasl-devel.x86_64 libgsasl-devel.x86_64 saslwrapper-devel.x86_64
sudo yum -y install mpich mpich-devel gcc-c++ gcc gcc-gfortran compat-gcc-44 compat-gcc-44-c++ compat-gcc-44-gfortran compat-libf2c-34 boost boost-devel boost-doc

yum -y install httpd mod_ssl java-1.8.0-openjdk java-1.8.0-openjdk-devel mysql-connector-java



#install python3
cd  /opt/
echo "downlaod python3 "
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
echo "python3 download complete"
mkdir -p  /usr/local/python3 
echo "untar  python tar gz"

tar -xvJf  Python-3.6.2.tar.xz -C  /usr/local/
cd  /usr/local/Python-3.6.2
echo "configure"
./configure --prefix=/usr/local/python3 --with-ssl --enable-optimizations

echo "make install"
make && make install

echo "create link"
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3

mkdir ~/.pip
touch ~/.pip/pip.conf
echo [global] >> ~/.pip/pip.conf
echo index-url=https://pypi.douban.com/simple >>  ~/.pip/pip.conf
echo trusted-host=pypi.douban.com >> ~/.pip/pip.conf
pip3 install numpy pandas scipy scikit-learn xgboost tensorflow keras lightgbm jupyter notebook lore pyspark

cd /opt  
git clone git@github.com:mullerhai/tools.git
cd tools

awk '{cmd="pip3 install " $1;system(cmd)}' ./piplist

rpm  -ivh jdk-8u172-linux-x64.rpm
rpm -ivh  scala-2.10.7.rpm
tar -zxvf sbt-1.2.1.tgz -C /usr/local
ln -s /usr/local/sbt/bin/sbt /usr/local/bin/sbt
mkdir  ~/.sbt
cp  repositories ~/.sbt/

#thrift 
cd /tools
tar -zxvf thrift-0.11.0.tar.gz  -C /usr/local/
mv thrift-0.11.0/ thrift
cd thrift 
./bootstrap.sh 
./configure --enable-coverage --with-go=no --with-golang=no  --with-js-no --with-node=no --with-nodejs=no
 make && make install


yum install -y kernel-devel-3.10.0-862.9.1.el7.x86_64 kernel kernel-header
yum install -y kernel kernel-devel kernel-devel-3.10.0-862.9.1.el7.x86_64
yum install -y   VirtualBox-5.2-5.2.16_123759_el7-1.x86_64.rpm
/usr/lib/virtualbox/vboxdrv.sh setup
cp helm minikube s2i sti kubectl docker-compose ks /usr/local/bin
minikube start

yum install -y rpmfusion-free-release-7.noarch.rpm 
yum install -y  rpmfusion-nonfree-release-7.noarch.rpm 


tar -zxvf mongodb-linux-x86_64-rhel70-4.0.0.tgz -C /usr/local

 yum install -y filezilla-3.7.4.1-1.el7.x86_64.rpm

 yum install -y google-chrome-stable_current_x86_64.rpm

 yum install -y teamviewer_13.1.8286.x86_64.rpm

#grpc 
 cd /usr/local
 git clone https://github.com/grpc/grpc.git 
 cd grpc 
 git submodule update --init 
 make 
 make install

pip3 install grpcio-tools


tar -zxvf redis-4.0.1.tar.gz -C /usr/local

tar -xjvf sublime_text_3_build_3176_x64.tar.bz2 -C /opt
tar -xJvf node-v8.11.1-linux-x64.tar.xz -C /usr/local

mkdir -p /usr/local/goterminal

tar -zxvf goterminal_amd64_0.0.5.tar.gz  -C /usr/local/goterminal/


service docker start
docker pull mullerhelen/centos7-jdk8:0.2

cp pycharm_color.jar  idea_settings.jar  /home/

rpm -ivh  ./policycoreutils-python-2.5-22.el7.x86_64.rpm 
yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo

rpm -ivh sogoupinyin-1.2.0.0056-1.fc22.x86_64.rpm 
yum install -y ./sogoupinyin-1.2.0.0056-1.fc22.x86_64.rpm 
gsettings set org.gnome.settings-daemon.plugins.keyboard active false
imsettings-switch fcitx


yum -y install epel-release
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-2.1 -y
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
sudo yum install aspnetcore-runtime-2.1 nuget -y

sudo yum install dotnet-sdk-2.1 -y

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum install ntfs-3g -y
yum install -y ntfs*
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum install -y kmod-hfsplus

cd /usr/local

mv node-v8.11.1-linux-x64/ nodejs
mv simplenote-1.1.6/ simplenote
mv mongodb-linux-x86_64-rhel70-4.0.0/ mongodb
mv pycharm-2018.1.4/ pycharm
mv clion-2018.2/ clion
mv idea-IU-181.5540.7/ idea

mv WebStorm-182.3684.70/ webstorm





相关文章

网友评论

      本文标题:centos7 install script

      本文链接:https://www.haomeiwen.com/subject/zevxnftx.html