centos7 init

#!/bin/sh

CUR_TIME=`date  +"%Y%m%d-%H:%M:%S"`
#install ntfs-3g

echo -e "$CUR_TIME \n" |tee -a log

wget https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz;

tar zxf ntfs-3g_ntfsprogs-2017.3.23.tgz;cd ntfs-3g_ntfsprogs-2017.3.23 ;chmod 755 * ;

./configure && make && make install

# change yum source

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y epel-release
rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

#install google chrome

echo -e " [google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub" > /etc/yum.repos.d/google-chrome.repo

yum install -y google-chrome-stable

猜你喜欢

转载自my.oschina.net/u/3457287/blog/1021835