Created
October 7, 2017 22:35
-
-
Save yonglai/1f36f3c8ab7851aa706f19cb3ebfdcec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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