modify the basics.sh, now it can work properly in ubuntu 12.04