Nobody can survive in the company with an ill relationship with the boss (not the team leader type guys)
Try to change yourself and you attitude. Try to talk with boss again and admit you made terrible mistakes by not following instructions/meeting expectations. And promise you will change in the two month. If he give you a chance, great. If not, at least he won't be so harsh on you when you look for another postion within the company.
Always tell yourself "I have to get up from where I fall". Try to get alone with the current boss is the only option to stand the challenge in life.
I have been in the same situation as you before, and somethings we learn life in a hard way.