modified for macook air and fix putty Chinese error in bash