Skip to content

Instantly share code, notes, and snippets.

@yonglai
Created October 7, 2017 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yonglai/1f36f3c8ab7851aa706f19cb3ebfdcec to your computer and use it in GitHub Desktop.
Save yonglai/1f36f3c8ab7851aa706f19cb3ebfdcec to your computer and use it in GitHub Desktop.
#! /bin/bash
echo update all
yum -y update
echo install glibc
yum -y install glibc.i686
echo install libstdc++
yum -y install compat-libstdc++-33.x86_64
echo install vim
yum -y install vim
echo install utils package
yum -y install yum-utils
echo update timezone to Toronto
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime
touch /etc/sysconfig/clock
cat <<EOT >> /etc/sysconfig/clock
ZONE="America/Toronto"
UTC=false
ARC=false
EOT
hwclock --systohc --localtime
echo Set basic vim style
touch /etc/vimrc
cat <<EOT > /etc/vimrc
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set nowrap
set number
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment