Download gcc source code from https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
$ wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
Install dependencies
#!/bin/bash | |
ETCD_VER=v3.4.13 | |
DOWNLOAD_URL=https://github.com/etcd-io/etcd/releases/download | |
DATA_DIR=/var/lib/etcd | |
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
tar xvzf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /usr/local/bin --strip-components=1 | |
rm -rf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz |
#!/bin/bash | |
set -e | |
download_nsq() { | |
wget -O /tmp/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz https://github.com/nsqio/nsq/releases/download/v1.2.0/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz | |
tar xvzf /tmp/nsq-1.2.0.linux-amd64.go1.12.9.tar.gz -C /tmp/ | |
mv /tmp/nsq-1.2.0.linux-amd64.go1.12.9/bin/* /usr/local/bin | |
rm -rf /tmp/nsq-1.2.0.linux-amd64.go1.12.9 | |
} |
#!/bin/bash | |
set -e | |
# Default settings | |
NFS_DATA_DEV=${NFS_DATA_DEV:-/dev/sdb} | |
NFS_DATA_DIR=${NFS_DATA_DIR:-/nfs/data} | |
install_dep() { | |
sudo yum install nfs-utils -y | |
} |
#!/bin/bash | |
set -e | |
CNI_VERSION="v1.3.0" | |
ARCH="amd64" | |
CRICTL_VERSION="v1.27.1" | |
CONTAINERD_VERSION="1.7.26" | |
# The [ -t 1 ] check only works when the function is not called from | |
# a subshell (like in `$(...)` or `(...)`, so this hack redefines the |
#!/bin/bash | |
set -e | |
install_docker() { | |
sudo yum install yum-utils -y | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install docker-ce docker-ce-cli containerd.io -y | |
sudo systemctl is-active --quiet docker || sudo systemctl start docker |
Download gcc source code from https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
$ wget https://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz
Install dependencies
Download cmake from https://cmake.org/download/
$ wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
Build from source and install
#!/bin/bash | |
set -e | |
CEPH_VER=${CEPH_VER:-"15.2.1"} | |
OSD_DEV=${OSD_DEV:-/dev/sdb} | |
ssh_test() { | |
if [[ $(ssh root@$1 exit) -ne 0 ]] | |
then | |
echo "failed to login $1 as root" && exit 1 |
#!/bin/bash | |
set -e | |
main() { | |
yum update -y | |
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org | |
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm | |
yum --enablerepo=elrepo-kernel install kernel-ml -y | |
sudo awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg | |
sudo grub2-set-default 0 |
#!/bin/bash | |
set -e | |
GOOGLE_URL=https://storage.googleapis.com/etcd | |
GITHUB_URL=https://github.com/etcd-io/etcd/releases/download | |
DOWNLOAD_URL=${GOOGLE_URL} | |
main() { | |
os=linux | |
if [[ "$(uname -s)" == "Darwin" ]]; then |