Skip to content

Instantly share code, notes, and snippets.

@Jiezhi
Last active April 19, 2020 06:12
Show Gist options
  • Save Jiezhi/9f822a78cf1c01c82b2d41b90d3f204e to your computer and use it in GitHub Desktop.
Save Jiezhi/9f822a78cf1c01c82b2d41b90d3f204e to your computer and use it in GitHub Desktop.
my centos init script
yum update -y
yum upgrade -y
yum groupinstall 'Development Tools' -y
yum install wget vim zsh git tmux htop lsof nload zlib-devel openssl-dev -y
# install htop
wget dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm -ihv epel-release-7-11.noarch.rpm
yum install htop -y
# install sdkman
# curl -s "https://get.sdkman.io" | bash
# install python3
yum install yum-utils -y && yum-builddep python -y
curl -O https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
tar xf Python-3.8.2.tgz
cd Python-3.8.2
./configure
make
make install
cd ~
pip3 install --upgrade pip virtualenv
# set vimrc
wget https://gist.githubusercontent.com/Jiezhi/68eb577baf7ca1ba6115b475cbaec78a/raw/2b303aa75c71bcc67b726094b4a53c09126dbe06/vimrc && mv vimrc ~/.vimrc
# set zsh
wget https://gist.githubusercontent.com/Jiezhi/47c72cc05ae43b5a77978a49a8b449bb/raw/d86267a12e8c86bccec75c7750710dd5c7689862/zshrc && mv zshrc ~/.zshrc && source ~/.zshrc
# set tmux
wget https://gist.githubusercontent.com/Jiezhi/2492e77ff444fefd23a596251cb97649/raw/dc91b2fd6191e3223c5f5fa9978b26a19a0d2ed5/tmux.conf && mv tmux.conf ~/.tmux.conf
# install docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-compose -y
systemctl start docker
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment