The initial setup is summarized here, so you should be able to set it up if you look at this!
This solves the error that appears after reinstalling the OS!
(If you are doing something else like amazon AWS, the AWS public key is written in the same file, so you might want to keep that)
Then, after all, the final dot-installation completes the initial setup!
Dot installation is the best.