Modify setup.sh: make some manual operation automatic