apply for the admission of a school, get I-20 form and then go to outside of US to get a F1 visa if you did not get waiver. Most people use third country visa,see www.nvars.com.
If you got waiver, it is said can be changed within US but need some time, like months, ask the school international office